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

Danny Mayer mayer at gis.net
Fri Jun 18 13:28:12 UTC 2004


At 04:00 AM 6/15/2004, won seok wrote:
>Dear Danny
>
>Then, I had better use an old version of bind that didn't contain ipv6 fu=
>nction.=20
>Can you recommend the old bind sw for me?=20
>
>Thanks in advance.=20

No. I don't remember the last time that BIND didn't support IPv6. You should
figure out what macro should be defined and define it.

Danny






>Danny Mayer <mayer at gis.net> wrote in message news:<cajagi$16on$1 at sf1.isc.=
>org>...
> > At 01:51 AM 6/11/2004, won seok wrote:
> > >Dear Edvard.
> > >
> > >In fact, I have to port the Bind9 to mips board.=3D20
> > >The Bind9 is compiled very well when I used gcc.=3D20
> > >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.
> >=20
> > 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 structur=
>es
> > and functions.
> >=20
> > >If you can give more advice to me, please read the following current
> > >status.
> > >1) ./configure --with-openssl=3D3D/root/openssl-0.9.7d =3D20
> > >         <--- the openssl is compiled by cross compiler.=3D20
> > >2) gmake CC=3D3D... mipsel-uclibc-gcc=3D20
> > >         <--- cross compiling
> > >     ..........
> > >     ./gen: cannot execute binary file.=3D20
> > >         <--- now the gen file is built with cross comipler so it can'=
>t
> > >run on x86 machine. so returns error.
> > >3) gmake=3D20
> > >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)=3D20
> > >      <--- I commented all ipv6 check lines. ( more 300 lines )=3D20
> >=20
> > Don't. Leave them there or you will get compile errors.
> >=20
> > >7) gmake CC=3D3D... 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
> >=20
> > 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.
> >=20
> > Danny
> >=20
> > >[~/bind-9.3.0beta4]_
> > >
> > >Thak you for your kind advice.=3D20



More information about the bind-users mailing list