Bug#956400: pdf: FTBFS on multiple 32-bit architectures, needs libatomic

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <158653847025.3242306.7360172797370478457.reportbug__40798.7437954702$1586538581$gmane$org@z6.physik.fu-berlin.de>
Source: qpdf
Version: 10.0.1-1
Severity: serious
Justification: ftbfs
User: [email protected]
Usertags: armel

Hi!

qpdf fails to build from source on multiple architectures due to
missing symbols from libatomic [1]:

/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [libtests/build.mk:52: libtests/build/aes] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [libtests/build.mk:52: libtests/build/bits] Error 1
make[1]: *** [zlib-flate/build.mk:22: zlib-flate/build/zlib-flate] Error 1
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [libtests/build.mk:52: libtests/build/buffer] Error 1
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status

This is a known issue with gcc [2] and can be fixed by linking against
libatomic, similar to apt-cacher-ng [3] and [4]. Please apply such
a fix for armel, mipsel, m68k, powerpc and sh4.

Thanks,
Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=qpdf&arch=armel&ver=10.0.1-1&stamp=1586486160&raw=0 
> [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
> [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862002
> [4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859689
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.