Compiling bind 9 (9.1.1rc5) on Solaris 7, 64 bit static binaries (doens't work)

Alec.Barea at sita.int Alec.Barea at sita.int
Fri Mar 16 16:27:36 UTC 2001






Hello There,

First I've tried to compile bind 9.1.1rc5 with static binaries. I had to figure
out how to do that, and went for the modification of the configure srcipt that
creates the Makefiles. I just added the flag "-dn" ( SUN Workshop alias Forte,
not gcc) in the CFLAGS variable . When i compile i can see that the flag is
used, but the compilation fails miserably. Here's the output (this one is with
libtool, i've tried without with the same result)

/bin/sh /var/home/rabarea/bind-9.1.1rc5/libtool /opt/SUNWspro/bin/cc -g -dn -o
named aclconf.lo client.lo interfacemgr.lo listenlist.lo  log.lo logconf.lo
main.lo notify.lo omapi.lo  omapiconf.lo query.lo server.lo sortlist.lo
tkeyconf.lo tsigconf.lo update.lo xfrout.lo  zoneconf.lo  lwaddr.lo lwresd.lo
lwdclient.lo lwderror.lo lwdgabn.lo  lwdgnba.lo lwdgrbn.lo lwdnoop.lo
lwsearch.lo   unix/os.lo ../../lib/lwres/liblwres.la ../../lib/omapi/libomapi.la
../../lib/dns/libdns.la ../../lib/isc/libisc.la   -lnsl
mkdir .libs
/opt/SUNWspro/bin/cc -g -dn -o named aclconf.o client.o interfacemgr.o
listenlist.o log.o logconf.o main.o notify.o omapi.o omapiconf.o query.o
server.o sortlist.o tkeyconf.o tsigconf.o update.o xfrout.o zoneconf.o lwaddr.o
lwresd.o lwdclient.o lwderror.o lwdgabn.o lwdgnba.o lwdgrbn.o lwdnoop.o
lwsearch.o unix/os.o ../../lib/lwres/.libs/liblwres.a -lnsl
../../lib/omapi/.libs/libomapi.a -lnsl ../../lib/dns/.libs/libdns.a -lnsl
../../lib/isc/.libs/libisc.a -lnsl -lnsl
ild: (undefined symbol) socket -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) socket -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(net.o)
ild: (undefined symbol) socket -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(interfaceiter.o)
ild: (undefined symbol) socket -- referenced in the text segment of
../../lib/lwres/.libs/liblwres.a(context.o)
ild: (undefined symbol) getsockopt -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) getprotobyname -- referenced in the text segment of
../../lib/dns/.libs/libdns.a(rdata.o)
ild: (undefined symbol) bind -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) recvfrom -- referenced in the text segment of
../../lib/lwres/.libs/liblwres.a(context.o)
ild: (undefined symbol) dlclose -- referenced in the text segment of
/usr/lib/libc.a(nss_deffinder.o)
ild: (undefined symbol) dlclose -- referenced in the text segment of
/usr/lib/libnsl.a(netdir.o)
ild: (undefined symbol) accept -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) getsockname -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) listen -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) dlerror -- referenced in the text segment of
/usr/lib/libnsl.a(netdir.o)
ild: (undefined symbol) recvmsg -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) dlsym -- referenced in the text segment of
/usr/lib/libc.a(nss_deffinder.o)
ild: (undefined symbol) dlsym -- referenced in the text segment of
/usr/lib/libnsl.a(netdir.o)
ild: (undefined symbol) getservbyname -- referenced in the text segment of
../../lib/dns/.libs/libdns.a(rdata.o)
ild: (undefined symbol) sendto -- referenced in the text segment of
../../lib/lwres/.libs/liblwres.a(context.o)
ild: (undefined symbol) dlopen -- referenced in the text segment of
/usr/lib/libc.a(nss_deffinder.o)
ild: (undefined symbol) dlopen -- referenced in the text segment of
/usr/lib/libnsl.a(netdir.o)
ild: (undefined symbol) connect -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) connect -- referenced in the text segment of
../../lib/lwres/.libs/liblwres.a(context.o)
ild: (undefined symbol) setsockopt -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
ild: (undefined symbol) sendmsg -- referenced in the text segment of
../../lib/isc/.libs/libisc.a(socket.o)
*** Error code 5
make: Fatal error: Command failed for target `named'
Current working directory /var/home/rabarea/bind-9.1.1rc5/bin/named
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
Current working directory /var/home/rabarea/bind-9.1.1rc5/bin
*** Error code 1
make: Fatal error: Command failed for target `subdirs'


Then, after several failed attempts i went on trying to compile it in 64 bit
(shared libraries). Here again i changed the configure script and added
"-xarch=v9" in the CFLAGS variable (remember that i use the SUN CC), it failed
too...
Here's the ouput :

making all in /var/home/rabarea/bind-9.1.1rc5/bin/named/unix
/opt/SUNWspro/bin/cc -mt -g -xarch=v9 -o named aclconf.o client.o interfacemgr.o
 listenlist.o  log.o logconf.o main.o notify.o omapi.o  omapiconf.o query.o
server.o sortlist.o  tkeyconf.o tsigconf.o update.o xfrout.o  zoneconf.o
lwaddr.o lwresd.o lwdclient.o lwderror.o lwdgabn.o  lwdgnba.o lwdgrbn.o
lwdnoop.o lwsearch.o   unix/os.o ../../lib/lwres/liblwres.a
../../lib/omapi/libomapi.a ../../lib/dns/libdns.a ../../lib/isc/libisc.a   -lnsl
 -lsocket -lpthread
ild: (bad file) Input file aclconf.o contains 32-bit relocatable, but producing
a 64-bit file.
*** Error code 1
make: Fatal error: Command failed for target `named'
Current working directory /var/home/rabarea/bind-9.1.1rc5/bin/named
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
Current working directory /var/home/rabarea/bind-9.1.1rc5/bin
*** Error code 1
make: Fatal error: Command failed for target `subdirs'


So...if someone can give me hints i would very appreciate. Please if you answer
send a copy to my email too (not only to the mailing list) thanks.

Alec Barea

--------------------------------------------------------------------------------------------

Alec Barea
UNIX System Administrator / DNS specialist
SITA / EQUANT
alec.barea at sita.int
Tel:  +1 514 847-3436
Fax: +1 514 847-3400




More information about the bind-users mailing list