Why the --disable-ipv6 option does not work?

Danny Mayer mayer at gis.net
Mon Jun 14 04:19:38 UTC 2004


At 01:51 AM 6/11/2004, won seok wrote:
>Dear Edvard.
>
>In fact, I have to port the Bind9 to mips board.=20
>The Bind9 is compiled very well when I used gcc.=20
>But there happened to appear errors about ipv6 when I tried to compile
>it using mips cross compiler.
>So I thought that the configure file of bind9 should be changed to
>ignore ipv6 functionality of my development pc.

Then you totally misunderstand why it's checking for IPv6 support.
BIND REQUIRES the structures, functions, etc. even if you don't
have IPv6 enabled on your system. It has nothing to do with running
IPv6. The configure step looks to see if your system has the support
required, otherwise it uses it's own internal version of these structures
and functions.

>If you can give more advice to me, please read the following current
>status.
>1) ./configure --with-openssl=3D/root/openssl-0.9.7d =20
>         <--- the openssl is compiled by cross compiler.=20
>2) gmake CC=3D... mipsel-uclibc-gcc=20
>         <--- cross compiling
>     ..........
>     ./gen: cannot execute binary file.=20
>         <--- now the gen file is built with cross comipler so it can't
>run on x86 machine. so returns error.
>3) gmake=20
>4) copy files which are generated by gen utility to proper locations.
>( code.h rdatastruct.h enumclass.h enumtype.h )
>5) repeat the above 2)
>      ..........
>      error  about ipv6
>6) modify the Makefile (bind9)=20
>      <--- I commented all ipv6 check lines. ( more 300 lines )=20

Don't. Leave them there or you will get compile errors.

>7) gmake CC=3D... mipsel-uclibc-gcc
>     ............
>     gmake[4]: exit `/root/bind-9.3.0beta4/lib/isc/unix/include'
>directory
>/export/ADM5120/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc  -g -O2
>-I/root/bind-9.3.0beta4 -I./include -I./../nothreads/include
>-I../include -I./../include -I./..      -W -Wall -Wmissing-prototypes
>-Wcast-qual -Wwrite-strings -Wformat  -c interfaceiter.c
>In file included from include/isc/net.h:90,
>                  from ../include/isc/netaddr.h:24,
>                  from ../include/isc/interfaceiter.h:46,
>                  from interfaceiter.c:33:
>../include/isc/ipv6.h:63: redefinition of `struct in6_addr'
>../include/isc/ipv6.h:81: redefinition of `struct sockaddr_in6'
>In file included from ../include/isc/netaddr.h:24,
>                  from ../include/isc/interfaceiter.h:46,
>                  from interfaceiter.c:33:
>include/isc/net.h:172: redefinition of `struct in6_pktinfo'
>gmake[3]: *** [interfaceiter.o] Error 1
>gmake[3]: Exit `/root/bind-9.3.0beta4/lib/isc/unix' directory
>gmake[2]: *** [subdirs] Error 1
>gmake[2]: Exit `/root/bind-9.3.0beta4/lib/isc' directory
>gmake[1]: *** [subdirs] Error 1
>gmake[1]: Exit `/root/bind-9.3.0beta4/lib' directory
>gmake: *** [subdirs] Error 1

Hardly a surprise. You removed the checks so now when it builds it
finds them in the O/S's headers as well as it's own. You need to figure out
what it's complaining about instead of focusing on removing all mention
of IPv6.

Danny

>[~/bind-9.3.0beta4]_
>
>Thak you for your kind advice.=20



More information about the bind-users mailing list