Error configuring ws2tcpip.h under Cygwin

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
CapnPort
Posts: 1
Joined: Sun Aug 13, 2017 10:45 pm

Error configuring ws2tcpip.h under Cygwin

Postby CapnPort » Sun Aug 13, 2017 11:34 pm

As far as I can tell, I've installed everything needed, and I can find all of the (immediate) dependencies of ws2tcpip.h, but I get this error consistently when running autoconf or configure.

checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... yes
configure: WARNING: ws2tcpip.h: present but cannot be compiled
configure: WARNING: ws2tcpip.h: check for missing prerequisite headers?
configure: WARNING: ws2tcpip.h: see the Autoconf documentation
configure: WARNING: ws2tcpip.h: section "Present But Cannot Be Compiled"
configure: WARNING: ws2tcpip.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------- ##
configure: WARNING: ## Report this to https://www.hostedredmine.com/projects/freeciv ##
configure: WARNING: ## ------------------------------------------------------------- ##
checking for ws2tcpip.h... no

At a guess I figure it might be trying to #include from the wrong directory tree.
I've got copies of the file in these directories:
C:\cygwin64\usr\include\w32api
C:\cygwin64\usr\i686-w64-mingw32\sys-root\mingw\include
C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\include

Any ideas?

cazfi
Elite
Posts: 1459
Joined: Tue Jan 29, 2013 6:54 pm

Re: Error configuring ws2tcpip.h under Cygwin

Postby cazfi » Mon Aug 14, 2017 3:41 am

See config.log for the exact error it gets when making the ws2tcpip.h test.

cazfi
Elite
Posts: 1459
Joined: Tue Jan 29, 2013 6:54 pm

Re: Error configuring ws2tcpip.h under Cygwin

Postby cazfi » Mon Aug 14, 2017 5:28 am

It's years since I built freeciv on cygwin myself. For Windows builds I've been mainly using msys2
viewtopic.php?f=14&t=75398