X-Spam-Check-By: sourceware.org Date: Wed, 15 Feb 2006 14:18:13 -0500 From: Christopher Faylor 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 /. 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/