https://bugs.winehq.org/show_bug.cgi?id=47959
Bug ID: 47959 Summary: WINE fails to configure on CYGWIN Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env Assignee: wine-bugs@winehq.org Reporter: carlo.bramix@libero.it Distribution: ---
This bug has been splitted from bug #47951.
Assuming that you have installed all dependencies required by WINE, if you try to configure the sources with CYGWIN, you will get some strange messages on the console:
checking krb5/krb5.h usability... no checking krb5/krb5.h presence... yes configure: WARNING: krb5/krb5.h: present but cannot be compiled configure: WARNING: krb5/krb5.h: check for missing prerequisite headers? configure: WARNING: krb5/krb5.h: see the Autoconf documentation configure: WARNING: krb5/krb5.h: section "Present But Cannot Be Compiled" configure: WARNING: krb5/krb5.h: proceeding with the compiler's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to wine-devel@winehq.org ## configure: WARNING: ## ------------------------------------ ## checking for krb5/krb5.h... no checking gssapi/gssapi.h usability... no checking gssapi/gssapi.h presence... yes configure: WARNING: gssapi/gssapi.h: present but cannot be compiled configure: WARNING: gssapi/gssapi.h: check for missing prerequisite headers? configure: WARNING: gssapi/gssapi.h: see the Autoconf documentation configure: WARNING: gssapi/gssapi.h: section "Present But Cannot Be Compiled" configure: WARNING: gssapi/gssapi.h: proceeding with the compiler's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to wine-devel@winehq.org ## configure: WARNING: ## ------------------------------------ ## checking for gssapi/gssapi.h... no checking gssapi/gssapi_ext.h usability... no checking gssapi/gssapi_ext.h presence... yes configure: WARNING: gssapi/gssapi_ext.h: present but cannot be compiled configure: WARNING: gssapi/gssapi_ext.h: check for missing prerequisite headers? configure: WARNING: gssapi/gssapi_ext.h: see the Autoconf documentation configure: WARNING: gssapi/gssapi_ext.h: section "Present But Cannot Be Compiled" configure: WARNING: gssapi/gssapi_ext.h: proceeding with the compiler's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to wine-devel@winehq.org ## configure: WARNING: ## ------------------------------------ ## checking for gssapi/gssapi_ext.h... no
Later, the configure scripts exits with this error:
In file included from ../wine/tools/makedep.c:23:0: ../wine/include/wine/port.h:52:20: fatal error: direct.h: No such file or directory compilation terminated.
The cause of these troubles is the addition of _WIN32 macro. By adding it, some sources think to be under a pure Windows environment and they try to include some files that do not exist inside a POSIX platform.
The solution is to remove this line from configure.ac:
https://github.com/wine-mirror/wine/blob/0fe003435e90dc32dd405a62af8fbcc20af...
After that, at least the configuration could be completed, although with some restrictions. Tested with latest sources from the repository at the time of writing.
Sincerely.
https://bugs.winehq.org/show_bug.cgi?id=47959
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=47959
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|Linux |other Keywords| |download, source
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- Are you compiling the latest version?
https://bugs.winehq.org/show_bug.cgi?id=47959
--- Comment #2 from Carlo Bramini carlo.bramix@libero.it --- (In reply to Ken Sharp from comment #1)
Are you compiling the latest version?
As I have already written in my post: "Tested with latest sources from the repository at the time of writing."
https://bugs.winehq.org/show_bug.cgi?id=47959
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |4.19
https://bugs.winehq.org/show_bug.cgi?id=47959
Carlo Bramini carlo.bramix@libero.it changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|other |Windows
https://bugs.winehq.org/show_bug.cgi?id=47959
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |802803a028ba754267f7be2ea67 | |7a7186ac871b9 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- It should be fixed by 802803a028ba754267f7be2ea677a7186ac871b9.
https://bugs.winehq.org/show_bug.cgi?id=47959
--- Comment #4 from Carlo Bramini carlo.bramix@libero.it --- The configuration now completes, but it seems wrong because it still fails to detect files like "krb5/krb5.h". If I can say my opinion, I still think that removing _WIN32 would be a better solution and it should be replaced with another macro, for example WINE_ON_WINDOWS but you can call it as you want, to be used in other parts of the code. This is needed because the compilation will also fail when you run "make", but this will be a different bug. Thank you very much for your time.
Sincerely.
https://bugs.winehq.org/show_bug.cgi?id=47959
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.0-rc2.