Compilation error when cross-compiling Wine to ARM.

Roger Cruz roger_r_cruz at
Sat Oct 22 13:07:37 CDT 2011

I'm attempting to cross-compile Wine for ARM and during the compilation of the first file, I get the following error about some strings.h routines not being portable.  I have tracked this down to the redefinitions for these routines in include/port.h.

How do I get around this issue?  Is there a certain #define that needs to be enabled to allow me to use the native strings.h without redefinition (namely this #define NO_LIBWINE_PORT).  What is the purpose of having these redefined?  Any insight would be most welcome.

gcc -c -I/home/rcruz/sandbox/dev-branch/tools -I. 
-I/home/rcruz/sandbox/dev-branch/include -I../include  -D__WINESRC__   
-Wall -pipe -fno-strength-reduce -fno-strict-aliasing 
-Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes 
-Wtype-limits -Wwrite-strings -Wpointer-arith -Wlogical-op  -g -O2  -o makedep.o 
In file included from /home/rcruz/sandbox/tools/toolchain9/bin/../sysroot/usr/include/stdlib.h:42,
                 from /home/rcruz/sandbox/dev-branch/tools/makedep.c:29:
 error: expected '=', ',', ';', 'asm' or '__attribute__' before 
 error: expected '=', ',', ';', 'asm' or '__attribute__' before 
 error: expected '=', ',', ';', 'asm' or '__attribute__' before 

Roger R. Cruz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the wine-devel mailing list