delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/15/11:40:38

X-Spam-Check-By: sourceware.org
From: ericblake AT comcast DOT net (Eric Blake)
To: Cygwin List <cygwin AT cygwin DOT com>
Subject: missing getaddrinfo
Date: Wed, 15 Feb 2006 16:40:21 +0000
Message-Id: <021520061640.18237.43F35975000870440000473D22073000330A050E040D0C079D0A@comcast.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Currently, cygwin does not provide getaddrinfo, even though
SUSv3 specifies it in <sys/socket.h>/<netdb.h>.  CVS Coreutils
has been using gnulib to provide a replacement definition,
but recently gnulib was updated to work on mingw, reusing
the winsock headers/libraries to provide getaddrinfo.  As a
result, coreutils is now trying to link in -lws2_32 to get
the winsock version of getaddrinfo (and I suspect that will
not work properly).

Anyone willing to export getaddrinfo in cygwin proper?  Then
gnulib would be able to recognize getaddrinfo in the SUSv3
location, rather than trying to fall back onto winsock with
questionable results.

$ cd gnulib
$ CFLAGS='-Wall' ./gnulib-tool --test canon-host
...
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 preprocessor's result
configure: WARNING: ws2tcpip.h: in the future, the compiler will take precedence
configure: WARNING:     ## -------------------------------- ##
configure: WARNING:     ## Report this to the dummy lists.  ##
configure: WARNING:     ## -------------------------------- ##
checking for ws2tcpip.h... yes
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 preprocessor's result
configure: WARNING: winsock2.h: in the future, the compiler will take precedence
configure: WARNING:     ## -------------------------------- ##
configure: WARNING:     ## Report this to the dummy lists.  ##
configure: WARNING:     ## -------------------------------- ##
checking for winsock2.h... yes
configure: checking how to do getaddrinfo
checking for library containing getaddrinfo... no
checking for getaddrinfo... no
checking for getaddrinfo in ws2tcpip.h and -lws2_32... yes
...


--
Eric Blake

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019