http://bugs.winehq.org/show_bug.cgi?id=28519
Bug #: 28519 Summary: WINE cannot be compiled completely outside the source tree Product: Wine Version: 1.3.29 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: carlo.bramix@libero.it Classification: Unclassified
1) I unpacked the sources of wine-1.3.29.
2) I created a directory called "wine"
3) I entered into this directory with "cd wine".
4) I lauched configuration with "../wine-13.29/configure --prefix=$HOME/inst_wine"
5) Configuration completed without errors, then I typed "make".
6) At a certain point, compilation failed with:
../../tools/winegcc/winegcc -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -mconsole -municode main.o -o aspnet_regiis.exe -lwine ../../libs/port/libwine_port.a aspnet_regiis.exe-Ewrqxf.c:2:20: windef.h: No such file or directory aspnet_regiis.exe-Ewrqxf.c:3:21: winbase.h: No such file or directory aspnet_regiis.exe-Ewrqxf.c: In function `main': aspnet_regiis.exe-Ewrqxf.c:7: error: `wchar_t' undeclared (first use in this function) aspnet_regiis.exe-Ewrqxf.c:7: error: (Each undeclared identifier is reported only once aspnet_regiis.exe-Ewrqxf.c:7: error: for each function it appears in.) aspnet_regiis.exe-Ewrqxf.c:7: error: `wargv' undeclared (first use in this function) aspnet_regiis.exe-Ewrqxf.c:7: error: `wenv' undeclared (first use in this function) aspnet_regiis.exe-Ewrqxf.c:8: error: `HMODULE' undeclared (first use in this function) aspnet_regiis.exe-Ewrqxf.c:8: error: parse error before "msvcrt" aspnet_regiis.exe-Ewrqxf.c:9: error: parse error before "wchar_t" aspnet_regiis.exe-Ewrqxf.c:10: error: `msvcrt' undeclared (first use in this function) aspnet_regiis.exe-Ewrqxf.c:11: error: `NULL' undeclared (first use in this function) winegcc: gcc failed make: *** [aspnet_regiis.exe] Error 2
It looks like that WINE cannot be compiled completely if configured outside the source tree. If I copy the content of /include directory from "wine-13.29" (where sources are) to "wine" (where binaries are), so that a copy of "windef.h", "winbase.h", etc will be placed there too, compilation completes successfully.
http://bugs.winehq.org/show_bug.cgi?id=28519
--- Comment #1 from Alexandre Julliard julliard@winehq.org 2011-09-28 11:06:47 CDT --- It sounds like it detected that you are building on Windows. Is that true?
http://bugs.winehq.org/show_bug.cgi?id=28519
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28519
--- Comment #2 from Carlo Bramini carlo.bramix@libero.it 2011-09-28 17:02:45 CDT --- (In reply to comment #1)
It sounds like it detected that you are building on Windows. Is that true?
Yes, it is. I tried to compile it on latest cygwin currently available. I have not tested yet if it affects other environments.
http://bugs.winehq.org/show_bug.cgi?id=28519
--- Comment #3 from Austin English austinenglish@gmail.com 2011-09-28 17:47:32 CDT --- (In reply to comment #2)
(In reply to comment #1)
It sounds like it detected that you are building on Windows. Is that true?
Yes, it is. I tried to compile it on latest cygwin currently available. I have not tested yet if it affects other environments.
Works here on 32-bit gentoo.
http://bugs.winehq.org/show_bug.cgi?id=28519
--- Comment #4 from Carlo Bramini carlo.bramix@libero.it 2011-09-28 18:16:58 CDT ---
Works here on 32-bit gentoo.
Are you sure that you have not a copy of those include files (or similar ones) already installed somewhere, perhaps pointed by some environment variable that are taken as valid from winegcc? It seems I'm able to pass critical point by activating w32api includes too in cygwin, but I guess that's not the right way to do it.
http://bugs.winehq.org/show_bug.cgi?id=28519
--- Comment #5 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-09-29 00:32:38 CDT --- Works fine here as well (verified on 2 separate systems both 64-bit). Wine compiled with default options (as 32-bit). This bug is invalid.
http://bugs.winehq.org/show_bug.cgi?id=28519
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Linux |Windows Severity|normal |minor
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2011-09-29 03:01:43 CDT --- No, it's a valid bug, but it only affects the Windows build.
http://bugs.winehq.org/show_bug.cgi?id=28519
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kennybobs@o2.co.uk
http://bugs.winehq.org/show_bug.cgi?id=28519
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5adfd065bbcd56f1c177f85d955 | |b0d50d7ccc90d Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2011-10-27 06:45:27 CDT --- Should be fixed now.
http://bugs.winehq.org/show_bug.cgi?id=28519
--- Comment #8 from Carlo Bramini carlo.bramix@libero.it 2011-11-02 10:02:52 CDT --- I confirm that the bug is fixed in current git repository.
However, I must say that I got this problem during compilation:
PATH="../../libs/wine:$PATH" ../../tools/wrc/wrc.exe --nostdinc --po-dir=../../po -I../../../wine-da6363e/dlls/advapi32 -I. -I../../../wine-da6363e/include -I../../include -D__WINESRC__ -D_ADVAPI32_ -o version.res ../../../wine-da6363e/dlls/advapi32/version.rc ../../tools/winegcc/winegcc -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ../../../wine-da6363e/dlls/advapi32/advapi32.spec advapi.o cred.o crypt.o crypt_arc4.o crypt_des.o crypt_lmhash.o crypt_md4.o crypt_md5.o crypt_sha.o eventlog.o lsa.o registry.o security.o service.o svcctl_c.o version.res -o advapi32.dll -lrpcrt4 -Wb,-drpcrt4 ../../libs/port/libwine_port.a /usr/bin/windres: unexpected version string length 68 != 32 + 8 winebuild: /usr/bin/windres.exe failed with status 256 winegcc: ../../tools/winebuild/winebuild.exe failed make[1]: *** [advapi32.dll] Error 2 make[1]: Leaving directory `/home/Carlo/wine/dlls/advapi32' make: *** [dlls/advapi32] Error 2
It seems there is an only solution for compiling successfully WINE: you must uninstall binutils-2.22.51-1 and install the older binutils-2.21.53-2 instead. Don't ask me why. Perhaps this is an useful remark for all people who wants to try compilation in CYGWIN.
http://bugs.winehq.org/show_bug.cgi?id=28519
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2011-11-04 14:15:29 CDT --- Closing bugs fixed in 1.3.32.