Subject: Re: Windows compilation help

Re: Windows compilation help

From: Milind Gupta <milind.gupta_at_gmail.com>
Date: Thu, 19 Jul 2018 23:34:14 -0700

Thanks for the tip. I looked at config.log and here is a portion from that
error in there:

In file included from conftest.c:79:0:
/usr/include/w32api/winsock2.h:1004:34: error: conflicting types for
'gethostname'
   WINSOCK_API_LINKAGE int WSAAPI gethostname(char *name,int namelen);

I have attached the config.log file. I found a similar error reported for
imagemagick and I think they did a patch for it.

On Thu, Jul 19, 2018 at 11:50 AM Dan Fandrich <dan_at_coneharvesters.com>
wrote:

> On Thu, Jul 19, 2018 at 11:18:40AM -0700, Milind Gupta wrote:
> > When I run configure using MinGW I see the following warning:
> >
> > checking winsock2.h usability... no
> > checking winsock2.h presence... yes
> > configure: WARNING: winsock2.h: present but cannot be compiled
> > configure: WARNING: winsock2.h: check for missing prerequisite
> headers?
> > configure: WARNING: winsock2.h: see the Autoconf documentation
> > configure: WARNING: winsock2.h: section "Present But Cannot Be
> Compiled"
> > configure: WARNING: winsock2.h: proceeding with the compiler's result
> > configure: WARNING: ## ----------------------------------------- ##
> > configure: WARNING: ## Report this to libssh2-devel_at_cool.haxx.se ##
> > configure: WARNING: ## ----------------------------------------- ##
> > checking for winsock2.h... no
> > 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 libssh2-devel_at_cool.haxx.se ##
> > configure: WARNING: ## ----------------------------------------- ##
> > checking for ws2tcpip.h... no
> >
> > Subsequent make shows error like undefined type SOCKET etc.
> > Please let me know how should I proceed to get around these errors.
>
> Did you check for missing prerequisite headers? Take a look in config.log
> for
> the sections showing these warnings and you'll probably see some errors
> regarding missing header files.
>
> Dan
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2018-07-20