Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sun, 11 May 2003 22:28:43 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Joshua Kwan cc: cygwin AT cygwin DOT com Subject: Re: Missing stuff in netdb.h In-Reply-To: <20030512015809.GA13325@triplehelix.org> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 11 May 2003, Joshua Kwan wrote: > Hi all, > > I got this nasty error trying to port ircd-hybrid to Cygwin: > > irc_getnameinfo.c:225: `EAI_SYSTEM' undeclared (first use in this > function) > make[1]: *** [irc_getnameinfo.o] Error 1 > > I #defined it to -11 which seems to be standard, but do you people plan > to rectify this in netdb.h? > > Regards, > Josh Josh, FYI, this doesn't seem standard at all: - The Single Unix Specification that Cygwin follows makes no mention of it () - The following comment from the Python source makes me think it's system-specific: #ifdef EAI_SYSTEM /* EAI_SYSTEM is not available on Windows XP. */ if (error == EAI_SYSTEM) return PySocket_Err(); #endif - This may be related to a bug reported here: . - The value of -11 is most likely bogus, as, for example, /usr/include/w32api/ws2tcpip.h defines EAI_NODATA as WSANO_DATA, which has a value somewhere in the 11000 range. All of the above should be taken with a grain of salt, since I know next to nothing about address resolution calls, but should serve as starting points. Most of them were matches from a google search for EAI_SYSTEM. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Knowledge is an unending adventure at the edge of uncertainty. -- Leto II -- 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/