delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/11/22:28:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Joshua Kwan <joshk AT triplehelix DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: Missing stuff in netdb.h
In-Reply-To: <20030512015809.GA13325@triplehelix.org>
Message-ID: <Pine.GSO.4.44.0305112208580.393-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

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
  (<http://www.opengroup.org/onlinepubs/007908799/xns/netdb.h.html>)

- 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:
  <http://sources.redhat.com/ml/bug-glibc/2000-08/msg00042.html>.

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

- Raw text -


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