withnail_jet has asked for the wisdom of the Perl Monks concerning the following question:

Esteemed Monks, I am trying to write an SSL Server using IO::Socket::SSL and am getting this error message, despite my best attempts:
Couldn't connect to xxxxxxxxxxxxxxxxxxx : IO::Socket::SSL: getaddrinfo +: Bad hints IO::Socket::INET6 configuration failederror:00000000:lib(0):func(0):re +ason(0) at /Users/joe/bin/tmpushd line 36.
After much flailing, I went about updating the dependent modules to see whether that would improve things. All went well until I attempted to update Socket6.pm and got these errors, among others:
In file included from Socket6.xs:85: getaddrinfo.c:53: error: conflicting types for 'gai_strerror' /usr/include/netdb.h:263: error: previous declaration of 'gai_strerror +' was here getaddrinfo.c: In function 'getaddrinfo': getaddrinfo.c:117: error: 'AI_NUMERICSERV' undeclared (first use in th +is function) getaddrinfo.c:117: error: (Each undeclared identifier is reported only + once getaddrinfo.c:117: error: for each function it appears in.) In file included from Socket6.xs:85: getaddrinfo.c:53: error: conflicting types for 'gai_strerror' /usr/include/netdb.h:263: error: previous declaration of 'gai_strerror +' was here getaddrinfo.c: In function 'getaddrinfo': getaddrinfo.c:117: error: 'AI_NUMERICSERV' undeclared (first use in th +is function) getaddrinfo.c:117: error: (Each undeclared identifier is reported only + once getaddrinfo.c:117: error: for each function it appears in.)
This is on OS X (Leopard) - does anyone have any idea of what's causing these errors and how to update Socket6.pm? I have a feeling that getaddrinfo() is responsible for at least some of my issues in getting the server to run... Thanks!

Replies are listed 'Best First'.
Re: SSL Servers and Socket6
by Anonymous Monk on Jun 03, 2009 at 07:47 UTC