[Bug 42208] New: Error when compiling winhlp32.
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Jan 14 08:13:12 CST 2017
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 at winehq.org
Reporter: carlo.bramix at 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.
--
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