[Bug 42132] undefined reference yywrap in winhlp32/ macro.lex.yy.c when building with flex-2.6.3
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Jan 11 10:31:43 CST 2017
https://bugs.winehq.org/show_bug.cgi?id=42132
Alexandre Julliard <julliard at winehq.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |NOTOURBUG
--- Comment #4 from Alexandre Julliard <julliard at winehq.org> ---
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
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.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list