Thanks. I thought I am all set to announce that my application now supports Dual stack IP. But, the issue is still seen in Perl 5.16 32 bit. I am all set for 64 bit Perl. In case of Perl 32 bit, even after doing the "force install Socket", the below line is giving me error.

my $sock = IO::Socket::IP->new( Family => Socket->AF_INET6, PeerHost => $ipv61, PeerPort => "22", Timeout => 3 ) or die "Cannot construct socket - $@";

Error: Nodename nor servname provided"

Clearly, the above error is thrown by getaddrinfo. when I debugged further, I see the Socket library is reporting that getaddrinfo is not defined. When I studied the Socket.pm code, I found that there is a different function called "fake_getaddrinfo" which will be used in case if getaddrinfo is not defined. And going through fake_getaddrinfo code tells me that this function doesn't support IPv6 family.

My only hope is to find out why in Perl 5.16(32 bit) the socket library reports that getaddrinfo is undefined.

Any suggestions would help me close this issue. I also feel that this issue could only be fixed in the Socket library itself. In this case, what is the probability that the library author would be willing to fix? given that we are dealing with an older version of Perl altogether.

A small note: I cannot really go for latest version of Perl like 5.20/5.22 since I have dependencies on other components in my environment.


In reply to Re^4: Activeperl 5.16.1 Ipv6 support by rama133101
in thread Activeperl 5.16.1 Ipv6 support by rama133101

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.