Source: dnsperf
Version: 2.12.0-1
Severity: serious
Tags: patch
https://buildd.debian.org/status/logs.php?pkg=dnsperf&ver=2.12.0-1
...
/usr/bin/ld: ext/hg64.o: undefined reference to symbol
'__atomic_load_8@@LIBATOMIC_1.0'
/usr/bin/ld: /usr/lib/arm-linux-gnueabi/libatomic.so.1: error adding symbols:
DSO missing from command line
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:594: resperf] Error 1
Fix/Workaround:
--- debian/rules.old 2023-06-18 20:41:47.881377188 +0000
+++ debian/rules 2023-06-18 20:43:04.742580349 +0000
@@ -1,5 +1,9 @@
#!/usr/bin/make -f
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mipsel powerpc sh4))
+ export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic
-Wl,--as-needed
+endif
+
%:
dh ${@}