Mail Archives: cygwin/2006/02/15/14:18:23
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 -