This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missing stuff in netdb.h


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]