#33 make it ready for x86_64

open
nobody
None
5
2008-06-23
2008-06-23
No

Hello folks. The program does not compile on my 64bit-machine:

gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/alsa -march=x86-64 -mtune=generic -O2 -pipe -Wall -g -Wno-pointer-sign -funsigned-char -MT afl.o -MD -MP -MF .deps/afl.Tpo -c -o afl.o afl.c
In file included from wine/winbase.h:5,
from afl.c:24:
wine/winnt.h:625:2: error: #error You need to define a CONTEXT for your CPU
In file included from wine/winbase.h:5,
from afl.c:24:
wine/winnt.h:628: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
wine/winnt.h:754:2: error: #error You need to define DEFINE_REGS_ENTRYPOINT macros for your CPU
wine/winnt.h:765:3: error: #error You must define GET_IP for this CPU
wine/winnt.h:1021: error: expected specifier-qualifier-list before ‘PCONTEXT’
wine/winnt.h:1034: error: expected declaration specifiers or ‘...’ before ‘PCONTEXT’
In file included from afl.c:24:
wine/winbase.h:544: warning: ‘packed’ attribute ignored for field of type ‘CHAR[8]’
In file included from afl.c:24:
wine/winbase.h:1342: error: expected declaration specifiers or ‘...’ before ‘CONTEXT’
wine/winbase.h:1481: warning: type defaults to ‘int’ in declaration of ‘CONTEXT’
wine/winbase.h:1481: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
afl.c: In function ‘ACM_GetStream’:
afl.c:46: warning: cast to pointer from integer of different size
afl.c: In function ‘acmDriverAddA’:
afl.c:73: warning: cast from pointer to integer of different size
afl.c: In function ‘acmDriverEnum’:

configured with:
./configure --prefix=/usr --enable-v4l2 --disable-gtktest --disable-glibtest \ --with-x

Regards, Flavius

Discussion

  • Cornel DIACONU

    Cornel DIACONU - 2008-10-05

    The only workaround I found so far was to just delete the folder gyvoice, and then correct the files "Makefile.am" and "configure.ac.tmpl" in order to delete the references to the folder gyvoice.
    After doing that, the rest just compiles OK, and (much more important) the program works all right.
    Frankly, I don't need the voice module, so this workaround does not have any negative impact for me :))

     
  • M. B.

    M. B. - 2009-10-07

    over one year later, the instructions still apply and work with current HEAD.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks