From: | stephen@isc.org |
Subject: | BIND fails to build on 32-bit systems |
Date: | Wed, 18 Oct 2017 21:14:38 +0000 |
To: | bind9-public@isc.org |
Trying to build BIND on FreeBSD/i386 gave the following error:
gcc -pthread -I/home/stephen/bind9 -I../.. -I./include -I../dns/include -I/home/stephen/bind9/lib/dns/include -I../../lib/dns/include -I/home/stephen/bind9/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include -I../../lib/irs/include -I../../lib/irs/include -D_REENTRANT -DOPENSSL -DVERSION=\"9.12.0b1\" -DSYSCONFDIR=\"/etc\" -D_THREAD_SAFE -g -O2 -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c resolve.c
gcc -pthread -g -O2 -fPIC -Wl,-E -o resolve resolve.o ../irs/libirs.a ../dns/libdns.a -lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err ../isccfg/libisccfg.a ../isc/libisc.a -lcrypto -lz
../isc/libisc.a(stats.o): In function `incrementcounter':
/usr/home/stephen/bind9/lib/isc/stats.c:280: undefined reference to `__atomic_fetch_add_8'
../isc/libisc.a(stats.o): In function `decrementcounter':
/usr/home/stephen/bind9/lib/isc/stats.c:322: undefined reference to `__atomic_fetch_sub_8'
../isc/libisc.a(stats.o): In function `copy_counters':
/usr/home/stephen/bind9/lib/isc/stats.c:357: undefined reference to `__atomic_load_8'
../isc/libisc.a(stats.o): In function `isc_stats_set':
/usr/home/stephen/bind9/lib/isc/stats.c:435: undefined reference to `__atomic_store_8'
collect2: error: ld returned 1 exit status
*** Error code 1
The link operation doesn't appear to be picking up libatomic