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.