Report information
The Basics
Id:
46324
Status:
resolved
Priority:
Low/Low
Queue:

People
Requestors:
Stephen Morris <stephen@isc.org>(email delivery suspended)
Cc:
AdminCc:

BugTracker
Version Fixed:
9.12.0, 9.11.3, 9.10.7, 9.9.12
Version Found:
9.12.0b1
Versions Affected:
(no value)
Versions Planned:
9.12.0
Priority:
P2 Normal
Severity:
S2 Normal
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
BIND Infrastructure
Area:
bug

Dates
Created:Wed, 18 Oct 2017 17:14:38 -0400
Updated:Tue, 07 Nov 2017 17:02:17 -0500
Closed:Tue, 07 Nov 2017 17:02:16 -0500



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

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
Date: Fri, 27 Oct 2017 19:55:37 +0530
Subject: Re: [ISC-Bugs #46324] BIND fails to build on 32-bit systems
To: "Stephen Morris via RT" <bind9-public@isc.org>
From: "Mukund Sivaraman" <muks@isc.org>
rt46324 is written. It passes build on 64-bit Fedora (it doesn't use -latomic on it). (If I force -latomic, it fails build so it seems it's better to not use -latomic on 64-bit platforms. The branch doesn't use -latomic on 64-bit platforms.) I haven't yet tried it on 32-bit platforms.. I've asked Stephen to try it on the machine he had a problem on, and I'll also try it o a 32-bit platform once I set a VM). Mukund
I've successfully built this branch on a 32-bit FreeBSD 11 virtual machine, so it looks as if the problem has been solved. I'll check it against 32-bit Ubuntu next week.
This looks fine on inspection, and built on both ubuntu 32 and 64 bit systems - 14.04 and 16.04, respectively. It's not in the review queue yet, so I don't know if there was more work you wanted to do? If not, I'd say go ahead and merge it.
Merged at Mukund's request. 4809. [port] Check at configure time whether -latomic is needed for stdatomic.h. [RT #46324] 9.12.0, 9.11.3, 9.10.7, 9.9.12