Okay, I've read a few posts and it would seem in previous versions of Cygwin (at least pre v1.5.20) - no getaddrinfo was included. Apparently it is distributed with http://www.sra.co.jp/people/m-kasahr/getaddrinfo/ <http://www.sra.co.jp/people/m-kasahr/getaddrinfo/> . I didn't try this so cannot vouch for it I found routines called 'getaddrinfo', 'freeaddrinfo' and 'getnameinfo' on my Cygwin directory (I'm running v1.5.25, the latest at the time of this writing) in the following header file /usr/include/w32api/ws2tcpip.h So, I added the following line to "test/regress_http.c" (and I tried it in "http.c" with similar results) #include <w32api/ws2tcpip.h> but during the check, we still cannot find the routines checking for getaddrinfo... no checking for getnameinfo... no And I get errors. So, I seem to have a header file but I'm not sure what to do with it.
________________________________ From: Nick Mathewson [mailto:ni...@freehaven.net] Sent: Mon 26/01/2009 15:34 To: Richard Brice Cc: libevent-users@monkey.org Subject: Re: [Libevent-users] Compile error in regress_http.c on Cygwin On Sun, Jan 25, 2009 at 01:56:22PM -0000, Richard Brice wrote: > I am getting the following compile error in regress_http.c on a Cygwin > platform > > make[4]: Entering directory > `/home/rbrice/curl-loader-0.47/build/libevent/libevent-1.4.4-stable/test' > gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../compat -g -Wall -c regress_http.c > regress_http.c: In function `http_connect': > regress_http.c:113: error: storage size of 'ai' isn't known > regress_http.c:133: warning: implicit declaration of function `getaddrinfo' > regress_http.c:137: error: dereferencing pointer to incomplete type > regress_http.c:138: error: dereferencing pointer to incomplete type > regress_http.c:149: warning: implicit declaration of function `freeaddrinfo' > regress_http.c:113: warning: unused variable `ai' Hm. I don't have Cygwin installed anywhere at the moment, but this looks like a missing #include in regress_http.c. Can you find out which header is supposed defines getaddrinfo in Cygwin, and make sure it does? -- Nick ______________________________________________________________________ Reg Office: SELEX Systems Integration Ltd, Broad Oak Business Park, Portsmouth, PO3 5PQ, UK. Registered in England - Number 05321115 This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users