bind-9.12.2-P2 fails to compile with baffling undefined symbol issues

Dennis Clarke dclarke at blastwave.org
Thu Oct 18 02:55:52 UTC 2018


This has me baffled :


/opt/developerstudio12.6/bin/c99 -mt -errfmt=error -erroff=%none 
-errshort=full -xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xc 
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -ftrap=%none -xbuiltin=%none 
-xdebugformat=dwarf -xunroll=1 -xarch=sparc -I/usr/include/libxml2 -I 
/usr/local/include -KPIC  -o resolve \
resolve.o ../irs/libirs.a ../dns/libdns.a  -lgss -lkrb5 
../isccfg/libisccfg.a ../isc/libisc.a  -L/usr/local/lib -R/usr/local/lib 
-R/usr/local/lib -lcrypto -ldl -lnsl -lsocket -lscf -lrt -lpthread 
-L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl 
-L/usr/local/lib -latomic
Undefined                       first referenced
  symbol                             in file
_TG_atomic_fetch_add                ../dns/libdns.a(tsig.o)
_TG_atomic_fetch_sub                ../dns/libdns.a(tsig.o)
_TG_atomic_load                     ../dns/libdns.a(tsig.o)
_TG_atomic_compare_exchange_strong  ../isc/libisc.a(rwlock.o)
_TG_atomic_store                    ../isc/libisc.a(stats.o)
ld: fatal: symbol referencing errors. No output written to resolve
gmake[2]: *** [Makefile:464: resolve] Error 2
gmake[2]: Leaving directory 
'/usr/local/build/bind-9.12.2-P2_SunOS5.10_sparc64vii+.001/lib/samples'
gmake[1]: *** [Makefile:82: subdirs] Error 1
gmake[1]: Leaving directory 
'/usr/local/build/bind-9.12.2-P2_SunOS5.10_sparc64vii+.001/lib'
gmake: *** [Makefile:88: subdirs] Error 1

There is no such thing as TG_atomic anywhere in any sources and there is 
a small reference to it in the config.log :

"conftest.c", line 105: warning: implicit function declaration: 
_TG_atomic_fetch_add
"conftest.c", line 101: warning: implicit function declaration: 
_TG_atomic_fetch_add
_TG_atomic_fetch_add                conftest.o


Something obvious here ??

Dennis


More information about the bind-users mailing list