https://bugs.winehq.org/show_bug.cgi?id=42132
--- Comment #5 from nvinson234@gmail.com --- (In reply to Alexandre Julliard from comment #4)
The fix isn't quite enough:
flex -omacro.lex.yy.c macro.lex.l gcc -m32 -c -o macro.lex.yy.o macro.lex.yy.c -I. -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \ -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \ -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer \ -Werror -g -O2 -fno-diagnostics-show-caret macro.lex.yy.c:398:0: error: "yywrap" redefined [-Werror] macro.lex.yy.c:74:0: note: this is the location of the previous definition cc1: all warnings being treated as errors
The yywrap macro redefinition error is a known issue. See https://github.com/wested/flex/issues/155
The workaround is to remove the -Werror flag. An alternate fix would be to define the yywrap function without the yywrap macro guard.
Makefile:280: recipe for target 'macro.lex.yy.o' failed
That's really a flex bug: https://github.com/westes/flex/issues/160
We could add a workaround, but let's see if we can't get it fixed first.
I personally doubt anything will be charged with respect to issue 160 given issue 113 and the reasons behind it.