Problem building BIND 9.11.23 on SPARC Solaris 10 w/ isc_atomic_xadd

Jeff Wieland wieland at purdue.edu
Thu Sep 17 03:12:21 UTC 2020


Compiling with Solaris Studio 12.4 on Solaris 10 for SPARC, I'm
getting the following error messages:

libtool: compile:  /opt/solarisstudio12.4/bin/cc -m32 -std=c99 -mt 
-I/opt/src/sys/bind/sun4u/bind-9.11.23 -I../.. -I./include 
-I../dns/include -I/opt/src/sys/bind/sun4u/bind-9.11.23/lib/dns/include 
-I../../lib/dns/include 
-I/opt/src/sys/bind/sun4u/bind-9.11.23/lib/isc/include -I../../lib/isc 
-I../../lib/isc/include -I../../lib/isc/unix/include 
-I../../lib/isc/pthreads/include -I../../lib/isc/noatomic/include 
-I../../lib/irs/include -I../../lib/irs/include 
-I/opt/openssl-1.1/include -D_REENTRANT -DOPENSSL -DVERSION=\"9.11.23\" 
-DSYSCONFDIR=\"/etc\" -D_XPG4_2 -D__EXTENSIONS__ -m32 -fast 
-xtarget=ultra -xarch=sparcvis -xO4 -I/usr/include/libxml2 -KPIC -c 
resolve.c  -KPIC -DPIC -o .libs/resolve.o
/bin/bash /opt/src/sys/bind/sun4u/bind-9.11.23/libtool --mode=link 
--tag=CC  /opt/solarisstudio12.4/bin/cc -m32 -std=c99 -mt -m32 -fast 
-xtarget=ultra -xarch=sparcvis -xO4 -I/usr/include/libxml2    -KPIC -s 
-o resolve \
resolve.lo ../irs/libirs.la ../dns/libdns.la   -lgss -lkrb5 
-L/opt/openssl-1.1/lib -R/opt/openssl-1.1/lib -R/opt/openssl-1.1/lib 
-lcrypto ../isccfg/libisccfg.la ../isc/libisc.la -lnsl -lsocket -lscf 
-lz -lrt -lpthread  -lxml2
libtool: link: /opt/solarisstudio12.4/bin/cc -m32 -std=c99 -mt -m32 
-fast -xtarget=ultra -xarch=sparcvis -xO4 -I/usr/include/libxml2 -KPIC 
-s -o .libs/resolve .libs/resolve.o ../irs/.libs/libirs.so 
../dns/.libs/libdns.so -L/opt/openssl-1.1/lib 
../isccfg/.libs/libisccfg.so 
/opt/src/sys/bind/sun4u/bind-9.11.23/lib/dns/.libs/libdns.so 
/opt/src/sys/bind/sun4u/bind-9.11.23/lib/isc/.libs/libisc.so -lgss 
-lkrb5 ../isc/.libs/libisc.so -lcrypto -lnsl -lsocket -lscf -lz -lrt 
-lpthread -lxml2 -mt -R/opt/bind-9.11.23-sun4u/lib -R/opt/openssl-1.1/lib
ld: warning: file 
/opt/src/sys/bind/sun4u/bind-9.11.23/lib/dns/.libs/libdns.so: linked to 
../dns/.libs/libdns.so: attempted multiple inclusion of file
ld: warning: file ../isc/.libs/libisc.so: linked to 
/opt/src/sys/bind/sun4u/bind-9.11.23/lib/isc/.libs/libisc.so: attempted 
multiple inclusion of file
Undefined                       first referenced
  symbol                             in file
isc_atomic_xadd                     ../dns/.libs/libdns.so
ld: fatal: symbol referencing errors. No output written to .libs/resolve
gmake[2]: *** [resolve] Error 2
gmake[2]: Leaving directory 
`/opt/src/sys/bind/sun4u/bind-9.11.23/lib/samples'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/opt/src/sys/bind/sun4u/bind-9.11.23/lib'
gmake: *** [subdirs] Error 1

We build BIND 9.11.22 with the same configuration.
We had this same problem with BIND 9.11.14, which was fixed with a patch.

-- 
Jeff Wieland, UNIX Systems Administrator
Purdue University IT Infrastructure Services UNIX Platforms



More information about the bind-users mailing list