Source: 389-ds-base
Version: 1.4.0.18-1
Severity: serious
Tags: patch ftbfs

https://buildd.debian.org/status/package.php?p=389-ds-base&suite=sid

...
/usr/bin/ld: 
src/nunc-stans/test/test_nuncstans_stress_small-test_nuncstans_stress_core.o: 
in function `client_initiate_connection_cb':
./build/../src/nunc-stans/test/test_nuncstans_stress_core.c:374: undefined 
reference to `__atomic_fetch_add_8'
/usr/bin/ld: ./build/../src/nunc-stans/test/test_nuncstans_stress_core.c:360: 
undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: 
src/nunc-stans/test/test_nuncstans_stress_small-test_nuncstans_stress_core.o: 
in function `client_response_cb':
./build/../src/nunc-stans/test/test_nuncstans_stress_core.c:339: undefined 
reference to `__atomic_fetch_add_8'
/usr/bin/ld: ./build/../src/nunc-stans/test/test_nuncstans_stress_core.c:325: 
undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: 
src/nunc-stans/test/test_nuncstans_stress_small-test_nuncstans_stress_core.o: 
in function `server_conn_read':
./build/../src/nunc-stans/test/test_nuncstans_stress_core.c:221: undefined 
reference to `__atomic_fetch_add_8'
/usr/bin/ld: 
src/nunc-stans/test/test_nuncstans_stress_small-test_nuncstans_stress_core.o:./build/../src/nunc-stans/test/test_nuncstans_stress_core.c:176:
 more undefined references to `__atomic_fetch_add_8' follow
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:6801: test_nuncstans_stress_small] Error 1


The following patch also fixes it for some ports architectures
that currently don't FTBFS due to building with nocheck.

--- debian/rules.old    2018-10-14 07:59:39.722984897 +0000
+++ debian/rules        2018-10-14 08:04:53.094937417 +0000
@@ -3,6 +3,10 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+pie
 
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerpc powerpcspe 
sh4))
+      export DEB_LDFLAGS_MAINT_APPEND=-latomic
+endif
+
 # Keep track of files we don't install
 NOT_INSTALLED := \
        usr/share/cockpit/389-console/static/bootstrap.min.js \

Reply via email to