Wine compilation error (flex related)

Elvis Pranskevichus elprans at gmail.com
Mon Feb 27 01:13:46 CST 2006


Hello!

Both emerge =wine-0.9.8 and the latest git workdir fail to compile on current 
Gentoo with:

gcc -c -I. -I. -I../../include -I../../include  
-DINCLUDEDIR="\"/usr/local/include/wine\""  -Wall -pipe -fno-strict-aliasing 
-gstabs+ -Wdeclaration-after-statement -Wpointer-arith  -g -O2  -o lex.yy.o 
lex.yy.c
lex.yy.c:2610: error: parse error before numeric constant
lex.yy.c: In function `yy_scan_string':
lex.yy.c:2611: error: number of arguments doesn't match prototype
lex.yy.c:305: error: prototype declaration
lex.yy.c:2613: warning: passing arg 1 of `strlen' makes pointer from integer 
without a cast
lex.yy.c:2613: warning: passing arg 1 of `yy_scan_bytes' makes pointer from 
integer without a cast
make[2]: *** [lex.yy.o] Error 1
make[2]: Leaving directory `/home/el/projects/wine/wine-git/tools/wrc'
make[1]: *** [wrc] Error 2
make[1]: Leaving directory `/home/el/projects/wine/wine-git/tools'
make: *** [tools] Error 2

The flex --version is flex 2.5.33 (the latest one, released on February 21, 
2006).
gcc --version is gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)

widl and wmc lexers compiled fine.

Downgrading to flex 2.5.4a makes everything compile again.
Is this a flex issue or is a Wine problem?

Thanks,
-- 
Elvis Pranskevichus - elprans at gmail.com



More information about the wine-devel mailing list