cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Solaris 5.9 (intel)

From: Tor Arntsen <tor_at_spacetec.no>
Date: Tue, 9 Mar 2004 17:36:34 +0100

On Mar 9, 17:16, Joe Halpin wrote:
>Actually I think the problem may be more obvious. I'm not sure IPv6 is
>enabled on my machine (I thought it was):
>
>solaris$ ifconfig -a
>lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
> inet 127.0.0.1 netmask ff000000
>elx0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
> inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
>
>I'm not sure why the autobuild is trying to use it though. The only
>configure flag I'm using is --enable-debug. I'll look into that.

configure probably runs the equivalent of the following (something I extracted
from configure, only adding a couple of printf's). It seems to determine if
you have to explicitly enable ipv6 for ./configure or not. Funny thing is
that socket(AF_INET6..) isn't enabled by default on IRIX, however ipv6 *does*
work there if you give the configure script --enable-ipv6.

-Tor

#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>

int
main(void)
{
        if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
        {
                printf ("No ipv6\n");
                return(1);
        }
        else
        {
                printf ("ipv6 ok\n");
                return(0);
        }
}
Received on 2004-03-09