building 9.2.5 on solaris 9 (intel)

Jason Walton Jason.Walton at nomadsoft.com
Mon Apr 25 17:05:59 UTC 2005


Hello World,
I'm having a great deal of trouble building the latest BIND on solaris 9
intel.
All my previous builds work out of the box but the latest seems to want
to use ipv6 and this causes the build to fail each and every time.

I have tried multiple attempts to doctor the configure script but each
attempt cures one problem, only to throw up another.
The 'out of the box' build comes up with this:

gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D_XPG4_2
-D__EXTENSIONS__ -W -Wall -Wmissing-prototypes -Wcast-qual
-Wwrite-strings -Wformat -c app.c=20
In file included from /usr/include/sys/reg.h:13,=20
from /usr/include/sys/regset.h:24,=20
from /usr/include/sys/ucontext.h:21,=20
from
/opt/bin/../lib/gcc/i386-pc-solaris2.9/3.4.2/include/sys/signal.h:249,=20
from /usr/include/signal.h:27,=20
from app.c:29:=20
/usr/include/ia32/sys/reg.h:300: error: parse error before "upad128_t"=20
/usr/include/ia32/sys/reg.h:302: error: parse error before '}' token=20
/usr/include/ia32/sys/reg.h:309: error: field `kfpu_fx' has incomplete
type=20
/usr/include/ia32/sys/reg.h:331: error: parse error before "upad128_t"=20
/usr/include/ia32/sys/reg.h:338: error: parse error before '}' token=20
/usr/include/ia32/sys/reg.h:339: error: parse error before '}' token=20
/usr/include/ia32/sys/reg.h:376: error: parse error before "fpregset_t"=20
In file included from
/opt/bin/../lib/gcc/i386-pc-solaris2.9/3.4.2/include/sys/signal.h:249,=20
from /usr/include/signal.h:27,=20
from app.c:29:=20
/usr/include/sys/ucontext.h:69: error: parse error before "mcontext_t"=20
/usr/include/sys/ucontext.h:71: error: parse error before '}' token=20
make[3]: *** [app.o] Error 1=20
make[3]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/unix'=20
make[2]: *** [subdirs] Error 1=20
make[2]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc'=20
make[1]: *** [subdirs] Error 1=20
make[1]: Leaving directory `/opt/src/bind/v9_2_5/lib'=20
make: *** [subdirs] Error 1=20

By taking out the XPG4_2 flag, I get it to compile further:

making all in /opt/src/bind/v9_2_5/make=20
make[1]: Entering directory `/opt/src/bind/v9_2_5/make'=20
make[1]: Leaving directory `/opt/src/bind/v9_2_5/make'=20
making all in /opt/src/bind/v9_2_5/lib=20
make[1]: Entering directory `/opt/src/bind/v9_2_5/lib'=20
making all in /opt/src/bind/v9_2_5/lib/isc=20
make[2]: Entering directory `/opt/src/bind/v9_2_5/lib/isc'=20
making all in /opt/src/bind/v9_2_5/lib/isc/include=20
make[3]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/include'=20
making all in /opt/src/bind/v9_2_5/lib/isc/include/isc=20
make[4]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/include/isc'=20
make[4]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/include/isc'=20
make[3]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/include'=20
making all in /opt/src/bind/v9_2_5/lib/isc/unix=20
make[3]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/unix'=20
making all in /opt/src/bind/v9_2_5/lib/isc/unix/include=20
make[4]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/unix/include'=20
making all in /opt/src/bind/v9_2_5/lib/isc/unix/include/isc=20
make[5]: Entering directory
`/opt/src/bind/v9_2_5/lib/isc/unix/include/isc'=20
make[5]: Leaving directory
`/opt/src/bind/v9_2_5/lib/isc/unix/include/isc'=20
make[4]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/unix/include'=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c app.c

gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c dir.c

gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
entropy.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
errno2result.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
file.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
fsaccess.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
interfaceiter.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
keyboard.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c net.c

gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c os.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
resource.c=20
gcc -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./.. -D_REENTRANT -D__EXTENSIONS__ -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -c
socket.c=20
socket.c: In function `cmsg_len':=20
socket.c:464: warning: implicit declaration of function `CMSG_DATA'=20
socket.c: In function `cmsg_space':=20
socket.c:483: error: structure has no member named `msg_control'=20
socket.c:484: error: structure has no member named `msg_controllen'=20
socket.c:489: warning: implicit declaration of function `CMSG_NXTHDR'=20
socket.c:489: warning: assignment makes pointer from integer without a
cast=20
socket.c:491: error: structure has no member named `msg_control'=20
socket.c: In function `process_cmsg':=20
socket.c:526: error: structure has no member named `msg_flags'=20
socket.c:531: error: structure has no member named `msg_flags'=20
socket.c:538: error: structure has no member named `msg_controllen'=20
socket.c:538: error: structure has no member named `msg_control'=20
socket.c:548: warning: implicit declaration of function `CMSG_FIRSTHDR'=20
socket.c:548: warning: assignment makes pointer from integer without a
cast=20
socket.c:585: warning: assignment makes pointer from integer without a
cast=20
socket.c: In function `build_msghdr_send':=20
socket.c:676: error: structure has no member named `msg_control'=20
socket.c:677: error: structure has no member named `msg_controllen'=20
socket.c:678: error: structure has no member named `msg_flags'=20
socket.c:690: error: structure has no member named `msg_controllen'=20
socket.c:691: error: structure has no member named `msg_controllen'=20
socket.c:692: error: structure has no member named `msg_control'=20
socket.c: In function `build_msghdr_recv':=20
socket.c:808: error: structure has no member named `msg_control'=20
socket.c:809: error: structure has no member named `msg_controllen'=20
socket.c:810: error: structure has no member named `msg_flags'=20
socket.c:813: error: structure has no member named `msg_control'=20
socket.c:814: error: structure has no member named `msg_controllen'=20
make[3]: *** [socket.o] Error 1=20
make[3]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/unix'=20
make[2]: *** [subdirs] Error 1=20
make[2]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc'=20
make[1]: *** [subdirs] Error 1=20
make[1]: Leaving directory `/opt/src/bind/v9_2_5/lib'=20
make: *** [subdirs] Error 1=20


I've now gone to upsetting the configure script by forcing the ipv6
stuff to be NO but it still fails:

making all in /opt/src/bind/v9_2_5/make
make[1]: Entering directory `/opt/src/bind/v9_2_5/make'
make[1]: Leaving directory `/opt/src/bind/v9_2_5/make'
making all in /opt/src/bind/v9_2_5/lib
make[1]: Entering directory `/opt/src/bind/v9_2_5/lib'
making all in /opt/src/bind/v9_2_5/lib/isc
make[2]: Entering directory `/opt/src/bind/v9_2_5/lib/isc'
making all in /opt/src/bind/v9_2_5/lib/isc/include
make[3]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/include'
making all in /opt/src/bind/v9_2_5/lib/isc/include/isc
make[4]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/include/isc'
make[4]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/include/isc'
make[3]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/include'
making all in /opt/src/bind/v9_2_5/lib/isc/unix
make[3]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/unix'
making all in /opt/src/bind/v9_2_5/lib/isc/unix/include
make[4]: Entering directory `/opt/src/bind/v9_2_5/lib/isc/unix/include'
making all in /opt/src/bind/v9_2_5/lib/isc/unix/include/isc
make[5]: Entering directory
`/opt/src/bind/v9_2_5/lib/isc/unix/include/isc'
make[5]: Leaving directory
`/opt/src/bind/v9_2_5/lib/isc/unix/include/isc'
make[4]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/unix/include'
gcc  -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./..  -D_REENTRANT  -D__EXTENSIONS__  -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c
app.c
gcc  -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./..  -D_REENTRANT  -D__EXTENSIONS__  -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c
dir.c
gcc  -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./..  -D_REENTRANT  -D__EXTENSIONS__  -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c
entropy.c
gcc  -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./..  -D_REENTRANT  -D__EXTENSIONS__  -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c
errno2result.c
gcc  -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./..  -D_REENTRANT  -D__EXTENSIONS__  -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c
file.c
gcc  -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./..  -D_REENTRANT  -D__EXTENSIONS__  -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c
fsaccess.c
gcc  -g -O2 -I/opt/src/bind/v9_2_5 -I./include -I./../pthreads/include
-I../include -I./../include -I./..  -D_REENTRANT  -D__EXTENSIONS__  -W
-Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat  -c
interfaceiter.c
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:63: error: redefinition of `struct in6_addr'
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:75:1: warning: "IN6ADDR_ANY_INIT" redefined
In file included from /usr/include/sys/socket.h:203,
                 from include/isc/net.h:76,
                 from interfaceiter.c:36:
/usr/include/netinet/in.h:366:1: warning: this is the location of the
previous definition
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:76:1: warning: "IN6ADDR_LOOPBACK_INIT" redefined
In file included from /usr/include/sys/socket.h:203,
                 from include/isc/net.h:76,
                 from interfaceiter.c:36:
/usr/include/netinet/in.h:371:1: warning: this is the location of the
previous definition
../include/isc/ipv6.h:81: error: redefinition of `struct sockaddr_in6'
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:101:1: warning: "IN6_IS_ADDR_UNSPECIFIED"
redefined
In file included from /usr/include/sys/socket.h:203,
                 from include/isc/net.h:76,
                 from interfaceiter.c:36:
/usr/include/netinet/in.h:410:1: warning: this is the location of the
previous definition
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:110:1: warning: "IN6_IS_ADDR_LOOPBACK" redefined
In file included from /usr/include/sys/socket.h:203,
                 from include/isc/net.h:76,
                 from interfaceiter.c:36:
/usr/include/netinet/in.h:423:1: warning: this is the location of the
previous definition
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:119:1: warning: "IN6_IS_ADDR_V4COMPAT" redefined
In file included from /usr/include/sys/socket.h:203,
                 from include/isc/net.h:76,
                 from interfaceiter.c:36:
/usr/include/netinet/in.h:495:1: warning: this is the location of the
previous definition
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:129:1: warning: "IN6_IS_ADDR_V4MAPPED" redefined
In file included from /usr/include/sys/socket.h:203,
                 from include/isc/net.h:76,
                 from interfaceiter.c:36:
/usr/include/netinet/in.h:460:1: warning: this is the location of the
previous definition
In file included from include/isc/net.h:88,
                 from interfaceiter.c:36:
../include/isc/ipv6.h:137:1: warning: "IN6_IS_ADDR_MULTICAST" redefined
In file included from /usr/include/sys/socket.h:203,
                 from include/isc/net.h:76,
                 from interfaceiter.c:36:
/usr/include/netinet/in.h:434:1: warning: this is the location of the
previous definition
In file included from interfaceiter.c:36:
include/isc/net.h:159: error: redefinition of `struct in6_pktinfo'
make[3]: *** [interfaceiter.o] Error 1
make[3]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc/unix'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/opt/src/bind/v9_2_5/lib/isc'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/opt/src/bind/v9_2_5/lib'
make: *** [subdirs] Error 1

Any help appreciated



More information about the bind-users mailing list