#5 compile error on wine/winbase.h

open
nobody
None
5
2010-01-01
2010-01-01
Anonymous
No

The compilation fails on a Linux 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009 x86_64 GNU/Linux with

gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../lib -I../client -D_REENTRANT -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/alsa -g -O2 -Wall -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:30:
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:30:
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:30:
wine/winbase.h:544: warning: ‘packed’ attribute ignored for field of type ‘CHAR[8]’
In file included from afl.c:30:
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:52: warning: cast to pointer from integer of different size
afl.c: In function ‘acmDriverAddA’:
afl.c:79: warning: cast from pointer to integer of different size
afl.c: In function ‘acmDriverEnum’:
afl.c:140: warning: cast from pointer to integer of different size
afl.c: In function ‘acmDriverID’:
afl.c:163: warning: cast from pointer to integer of different size
afl.c: In function ‘acmDriverOpen’:
afl.c:238: warning: cast from pointer to integer of different size
afl.c: At top level:
afl.c:266: warning: cast from pointer to integer of different size
afl.c: In function ‘MSACM_UnregisterDriver’:
afl.c:309: warning: cast from pointer to integer of different size
afl.c: In function ‘MSACM_GetDriverID’:
afl.c:348: warning: cast to pointer from integer of different size
afl.c: In function ‘MSACM_GetDriver’:
afl.c:356: warning: cast to pointer from integer of different size
afl.c: In function ‘MSACM_GetObj’:
afl.c:364: warning: cast to pointer from integer of different size
afl.c: In function ‘acmStreamOpen’:
afl.c:420: warning: cast from pointer to integer of different size
afl.c:432: warning: cast from pointer to integer of different size
afl.c:470: warning: cast from pointer to integer of different size
afl.c:477: warning: cast from pointer to integer of different size
afl.c:499: warning: cast from pointer to integer of different size
afl.c: In function ‘acmStreamClose’:
afl.c:523: warning: cast from pointer to integer of different size
afl.c: In function ‘acmStreamConvert’:
afl.c:570: warning: cast from pointer to integer of different size
afl.c:570: warning: cast from pointer to integer of different size
afl.c: In function ‘acmStreamPrepareHeader’:
afl.c:618: warning: cast from pointer to integer of different size
afl.c:618: warning: cast from pointer to integer of different size
afl.c: In function ‘acmStreamReset’:
afl.c:656: warning: cast from pointer to integer of different size
afl.c: In function ‘acmStreamSize’:
afl.c:699: warning: cast from pointer to integer of different size
afl.c:699: warning: cast from pointer to integer of different size
afl.c: In function ‘acmStreamUnprepareHeader’:
afl.c:750: warning: cast from pointer to integer of different size
afl.c:750: warning: cast from pointer to integer of different size
make[2]: *** [afl.o] Error 1
make[2]: Leaving directory `/home/dogt/gyachi-1.2.2/gyvoice'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dogt/gyachi-1.2.2'
make: *** [all] Error 2

Discussion

  • Si9OJo I think this is a real great blog.Really looking forward to read more. Great.

     
  • Say, you got a nice blog article.Really thank you! Cool.

     
  • I really enjoy the blog post.Thanks Again. Really Great.

     
  • Very good blog post.Much thanks again. Want more.

     
  • Great, thanks for sharing this blog article.Really looking forward to read more. Fantastic.

     
  • Thanks so much for the blog article.Really looking forward to read more. Fantastic.