From: Eric Hodel Date: 2006-09-09T03:22:39+09:00 Subject: Re: getnameinfo: ai_family not supported (SocketError) On Sep 7, 2006, at 7:04 AM, A. S. Bradbury wrote: >> and on an IPv4 only machine I get: >> >> [["AF_INET", 80, "0.0.0.0", "0.0.0.0", 2, 1, 6]] > > On my ipv4 machine I get: > SocketError: getnameinfo: ai_family not supported > from (irb):4:in `getaddrinfo' > from (irb):4 > > On the ipv4 machine with gentoo's ebuild of ruby compiled with the > ipv6 USE > flag I get similar output to yours. I wonder if this is something > broken on > my systems, a ruby issue, or a packaging issue. I suspect it is an issue on the gentoo side, as far as I can tell, getaddrinfo should not fail when given AF_UNSPEC. My IPv4 only machine (FreeBSD 4) behaves this way. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com