I have the same problem with a gcc-4.0 and flex 2.5.33. 2.5.4a works ok ;). I don't think it's a wine-problem but the flex-releases are as rare as a solar ecplipse so the fix must be in wine (maybe a workaround or reformatting of the code since it's a syntaxing problem). But i could also be wrong.
On 2/27/06, Elvis Pranskevichus elprans@gmail.com wrote:
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@gmail.com