On Wed, Jun 06, 2007 at 10:57:00PM +0300, Lucian Adrian Grijincu wrote: > This is the output: > getaddrinfo AF_UNSPEC/SOCK_STREAM/AI_ADDRCONFIG failed > so, yes: hints.ai_flags = AI_ADDRCONFIG; makes getaddrinfo fail.
Just so I can understand the precise nuances of this, can you post the output of: wget http://people.apache.org/~jorton/gai.c make gai ./gai ::1 ./gai ::1 null inet6 ./gai -a ::1 ./gai -a ::1 null inet6 But yes, testsockets.c will need some tweaking to cope with this getaddrinfo implementation. I think it's caused by an Ubuntu patch, if I read https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/24828 correctly. It might break some applications in fun ways too, but there's not much APR can do about that. joe