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!

In reply to SSL Servers and Socket6 by withnail_jet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.