Hello!

Since recently, several packages started to fail to build on Debian unstable 
ia64
when linking against liblzma. There error was always the same and indicates a 
problem
with the symbols exported by liblzma:

[ 36%] Linking CXX shared module ha_archive.so
cd /<<PKGBUILDDIR>>/builddir/storage/archive && /usr/bin/cmake -E 
cmake_link_script CMakeFiles/archive.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-specs=/usr/share/dpkg/pie-compile.specs -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -pie -fPIC -fstack-protector 
--param=ssp-buffer-size=4 -O2 -g -static-libgcc -fno-omit-frame-pointer 
-fno-strict-aliasing -Wno-uninitialized -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 
-DDBUG_OFF -Wall -Wenum-compare -Wenum-conversion -Wextra -Wformat-security 
-Wmissing-braces -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare 
-Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -Wvla -Wwrite-strings 
-specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro,-z,now -shared  -o ha_archive.so 
CMakeFiles/archive.dir/azio.c.o CMakeFiles/archive.dir/ha_archive.cc.o  
../../libservices/libmysqlservices.a -lz
/usr/bin/ld: warning: -z relro ignored
/usr/bin/ld: ha_archive.so: version node not found for symbol 
lzma_get_progress@@XZ_5.2
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[4]: *** [storage/archive/CMakeFiles/archive.dir/build.make:118: 
storage/archive/ha_archive.so] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/builddir'
make[3]: *** [CMakeFiles/Makefile2:4913: 
storage/archive/CMakeFiles/archive.dir/all] Error 2

Upon closer inspection, I noticed that the change 913ddc5 looked very 
suspicious and indeed
reverting the following change fixes the issue so that linking against liblzma 
works again
on Debian unstable ia64:

commit 913ddc5572b9455fa0cf299be2e35c708840e922
Author: Lasse Collin <lasse.col...@tukaani.org>
Date:   Sun Sep 4 23:23:00 2022 +0300

    liblzma: Vaccinate against an ill patch from RHEL/CentOS 7.

The relevant bug report in Debian is #1024516 [2].

Does anyone have a clue why this particular change may have broken the linking 
on ia64?

Thanks,
Adrian

[1] 
https://buildd.debian.org/status/fetch.php?pkg=mariadb-10.6&arch=ia64&ver=1%3A10.6.11-1&stamp=1669022458&raw=0
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024516

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to