Bug#978018: libapr1: Please add 64-bit atomics workaround for m68k and sh4
Source: apr
Version: 1.7.0-4
Severity: normal
User: debian-68k@lists.debian.org
Usertags: m68k
X-Debbugs-Cc: debian-68k@lists.debian.org
Hello!
subversion currently FTBFS on m68k and sh4 because the configure process fails
to properly link against libserf [1]:
configure:5604: gcc -o conftest -g -O2 -fdebug-prefix-map=/build/subversion-5EzMph/subversion-1.14.0=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -I/usr/include/serf-1 -specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro -Wl,-z,now conftest.c -lserf-1 -L/usr/lib/m68k-linux-gnu -laprutil-1 -L/usr/lib/m68k-linux-gnu -lapr-1 -lz >&5
/usr/bin/ld: /usr/lib/m68k-linux-gnu/libapr-1.so: undefined reference to `__sync_fetch_and_sub_8'
/usr/bin/ld: /usr/lib/m68k-linux-gnu/libapr-1.so: undefined reference to `__sync_sub_and_fetch_8'
/usr/bin/ld: /usr/lib/m68k-linux-gnu/libapr-1.so: undefined reference to `__sync_fetch_and_add_8'
/usr/bin/ld: /usr/lib/m68k-linux-gnu/libapr-1.so: undefined reference to `__sync_lock_test_and_set_8'
/usr/bin/ld: /usr/lib/m68k-linux-gnu/libapr-1.so: undefined reference to `__sync_val_compare_and_swap_8'
collect2: error: ld returned 1 exit status
This should be fixable using the same approach as for 32-bit MIPS and PowerPC [2].
Could you therefore apply the fix for m68k and sh4 as well so that subversions builds on these targets?
Thanks,
Adrian
> [1] https://buildd.debian.org/status/fetch.php?pkg=subversion&arch=m68k&ver=1.14.0-3&stamp=1608803200&raw=0
> [2] https://salsa.debian.org/apache-team/apr/-/commit/2df4f34a2fa3474806f89a15148afa7121c642bf
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: