delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/15/14:18:23

X-Spam-Check-By: sourceware.org
Date: Wed, 15 Feb 2006 14:18:13 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: missing getaddrinfo
Message-ID: <20060215191813.GI4169@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <021520061640 DOT 18237 DOT 43F35975000870440000473D22073000330A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <021520061640.18237.43F35975000870440000473D22073000330A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Wed, Feb 15, 2006 at 04:40:21PM +0000, Eric Blake wrote:
>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
>...

This configury is *really* broken if it is pulling in Windows header files.
Cygwin is not Windows and should not be treated as such.

cgf

--
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