https://bugs.winehq.org/show_bug.cgi?id=42208
Bug ID: 42208 Summary: Error when compiling winhlp32. Product: Wine Version: 2.0-rc5 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: programs Assignee: wine-bugs@winehq.org Reporter: carlo.bramix@libero.it Distribution: ---
While trying to compile wine with mingw and cygwin as shell, I got this error:
../.././../w/tools/winegcc/winegcc.exe -o winhlp32.exe -B../.././../w/tools/winebuild --sysroot=../.. -b \ i686-w64-mingw32 -fasynchronous-unwind-tables -mwindows callback.o hlpfile.o macro.o string.o \ winhelp.o macro.lex.yy.o winhlp32.res ../../dlls/shell32/libshell32.a \ ../../dlls/comctl32/libcomctl32.a ../../dlls/comdlg32/libcomdlg32.a ../../dlls/user32/libuser32.a \ ../../dlls/gdi32/libgdi32.a ../../libs/port/libwine_port.a -lwine macro.lex.yy.o: nella funzione "yylex": /home/Carlo/w2/programs/winhlp32/macro.lex.yy.c:1032: riferimento non definito a "yywrap" collect2: error: ld returned 1 exit status winegcc: i686-w64-mingw32-gcc failed make: *** [Makefile:322: winhlp32.exe] Error 2
It says that "yywrap" is an undefined reference. This probably happens because the macro.lex.l is not aware of the fact that is can be also cross compiled, which is the thing you have to do when you want to run wine natively on Windows, for example. At the end of the file there is an #ifndef yywrap ... #endif: I replaced it with an #if 1 and the program has been compiled correctly. But I guess it has to be fixed correctly.
Sincerely.
https://bugs.winehq.org/show_bug.cgi?id=42208
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Dup of bug 42132 ?
https://bugs.winehq.org/show_bug.cgi?id=42208
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- Is this still an issue?