Multiplay Labs

tech hits and tips from Multiplay

Archive for May, 2012

LWP::Protocol::https::Socket: socket: Address family not supported by protocol

without comments

When trying to build LWP::Protocol::https to add https support to libwww the tests fail with:-

LWP::Protocol::https::Socket: socket: Address family not supported by protocol at /usr/lib/perl5/site_perl/5.10/LWP/Protocol/http.pm line 51

After some investigation it turns out there’s nothing wrong with LWP::Protocol::https but IO::Socket::INET6 was broken and trying to interpret : as an IPv6 address instead of IPv4 address + port. Updating to IO::Socket::INET6 v2.69 from the previous v2.57 fixed the issue.

This was encountered under cygwin on Windows in case this is a key factor.

Written by Dilbert

May 24th, 2012 at 7:56 pm

Posted in Code,Cygwin,Perl,Windows