curl-users
Re: debian sid, ipv6 and configure
Date: Tue, 29 Jan 2002 14:57:29 +0100
On Tue, Jan 29, 2002 at 01:22:47PM +0100, Daniel Stenberg wrote:
> Hello configure hackers, have a look at this little thing:
>
> This is plain Redhat 7.2 installation:
>
> $ which curl
> /usr/bin/curl
> $ curl -V
> curl 7.8 (i386-redhat-linux-gnu) libcurl 7.8 (OpenSSL 0.9.6b) (ipv6 enabled)
>
> Aha! An IPv6 enabled libcurl is installed by default. Neato!
>
and this is a plain debian (unstable-which-should-be-really-ipv6-aware) installation:
$ curl -V
curl 7.9.3 (i586-pc-linux-gnu) libcurl 7.9.3 (OpenSSL 0.9.6c) (ipv6 enabled)
Aha! An IPv6 enabled libcurl is installed by default. Neato! :)))
> But then...
>
> $ cd curl-7.9.3
> $ ./configure
> ...
> checking whether to enable ipv6... no
> ...
>
> ;-(
>
...
checking whether to enable ipv6... no
...
;-((
> When I do the exact same operation on my 2.4.16 IPv6-enabled box it says:
>
> checking whether to enable ipv6... yes
> checking for working getaddrinfo... yes
>
which is your distribution?
> Now, why does configure say this on the redhat 7.2-box? I can still make the
> 7.2 use ipv6 if I pass the --enable-ipv6 option to configure.
>
same here
> config.log on the failing machine says this:
>
> configure:7840: checking whether to enable ipv6
> configure:7879: gcc -o conftest -g -O2 conftest.c >&5
> configure:7882: $? = 0
> configure:7884: ./conftest
> configure:7887: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> #line 7864 "configure"
> #include "confdefs.h"
> /* is AF_INET6 available? */
> #include <sys/types.h>
> #include <sys/socket.h>
> main()
> {
> if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
> exit(1);
> else
> exit(0);
> }
>
> configure:7896: result: no
>
configure:7879: gcc -o conftest -g -O2 conftest.c >&5
configure:7882: $? = 0
configure:7884: ./conftest
configure:7887: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 7864 "configure"
#include "confdefs.h"
/* is AF_INET6 available? */
#include <sys/types.h>
#include <sys/socket.h>
main()
{
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
exit(1);
else
exit(0);
}
configure:7896: result: no
> The question is of course: why doesn't this tiny program work?
>
same question...
> The same piece of log on my 2.4.16-box says:
>
> configure:7840: checking whether to enable ipv6
> configure:7879: gcc -o conftest -g -O2 conftest.c >&5
> configure:7882: $? = 0
> configure:7884: ./conftest
> configure:7887: $? = 0
> configure:7889: result: yes
>
>
same here
regards
-----[ Domenico Andreoli, aka cavok
--[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
Received on 2002-01-29