#1146147 pystring: FTBFS: collect2: error: ld returned 1 exit status

#1146147#5
Date:
2026-08-30 09:50:57 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:pystring, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
libtool: compile:  g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c pystring.cpp  -fPIC -DPIC -o .libs/pystring.o
libtool: compile:  g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c pystring.cpp -o pystring.o >/dev/null 2>&1
libtool --mode=link --tag=CXX g++ -Wl,-z,relro -Wl,-z,now -o libpystring.la pystring.lo -rpath /usr/lib
libtool: link: g++  -fPIC -DPIC -shared -nostdlib   .libs/pystring.o   -lstdc++ -lm -lgcc_s -latomic_asneeded -lc -lgcc_s   -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libpystring.so.0 -o .libs/libpystring.so.0.0.0
/usr/bin/x86_64-linux-gnu-ld.bfd: .libs/pystring.o: in function `_GLOBAL__sub_I_pystring.cpp':
././pystring_impl.h:28:(.text.startup+0xf): undefined reference to `__dso_handle'
/usr/bin/x86_64-linux-gnu-ld.bfd: .libs/pystring.o: relocation R_X86_64_PC32 against undefined hidden symbol `__dso_handle' can not be used when making a shared object
/usr/bin/x86_64-linux-gnu-ld.bfd: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:14: libpystring.la] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 INSTALL="install --strip-program=true" returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1146147#10
Date:
2026-09-09 11:04:32 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pystring, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146147@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sébastien Noel <twolife@debian.org> (supplier of updated pystring package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 09 Sep 2026 11:06:39 +0200
Source: pystring
Architecture: source
Version: 1.1.5-2
Distribution: unstable
Urgency: medium
Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
Changed-By: Sébastien Noel <twolife@debian.org>
Closes: 1047582 1122142 1146147
Changes:
 pystring (1.1.5-2) unstable; urgency=medium
 .
   * Team upload
   * Use the meson build system instead of the handwritten makefile
     (Closes: #1122142, #1146147, #1047582)
   * Add d/p/soversion.patch
   * Remove d/p/fix-hardening-no-bindnow-Makefile.patch
Checksums-Sha1:
 1e25f7864d75cda9e029a67ac8705cd516c7e38c 1702 pystring_1.1.5-2.dsc
 6e56e49f1213b3b9ab0d1ee43cb484876b0f5c6c 3072 pystring_1.1.5-2.debian.tar.xz
 2e7b99377f9fb10aacdb7cf01aa9dddb738cfa8e 6630 pystring_1.1.5-2_amd64.buildinfo
Checksums-Sha256:
 313d2e301b5257605df93e390b4884901b08a336ced0ea19b80d5c37d37f1f1c 1702 pystring_1.1.5-2.dsc
 1b6c9cc28d4004f85afd90d195336a333aeb947c35b7b844c2db23d7c6370960 3072 pystring_1.1.5-2.debian.tar.xz
 4ef516ef585ff8f21d94c4739a7381816a3daa514373d4cbfda8ab2f7e9cf679 6630 pystring_1.1.5-2_amd64.buildinfo
Files:
 69a9f7d196cb66d92b07e11f373663da 1702 libs optional pystring_1.1.5-2.dsc
 2df3e0d0fd37d588c9d6b84d7cc209d9 3072 libs optional pystring_1.1.5-2.debian.tar.xz
 cbb26ae88fad24b0d2739b9058da2c24 6630 libs optional pystring_1.1.5-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQFHBAEBCgAxFiEEdlP6my3wO8aMe9FCrKAIuMk0p9QFAmqhN2ETHHR3b2xpZmVA
ZGViaWFuLm9yZwAKCRCsoAi4yTSn1G/8CACAydq2dD3Q+pRsk4YWQ9enthJyGtZ9
iZ2yrXz/NudbAkzPp/IyPOI6MkmqS3QjK39RKNzu++Ao5kiu4gZsFjAhqk34s2kQ
GT5lhD2aSYs7UgsXd/qV4sA+Bj2MWb4uZHgwANJoFcxnqSWKXGaT7kgLu1r9dn9Q
7Z6G3iXkYHs1SSD3/rdO5B+FlACUbNQEcgpFqYoJ4jzlvN+h3cuuXX7jP3cO2ngp
jS4kcB+ovaxS1z7tAIB8sAAAz3ojapTKKOn0nm6xvD3BosKb8NRBLQq+BETcdO6X
KrC/Vcme4jBIJd4R7v/t48VefRT+x8jx6qxWgpxMfEk3MQs3b7JJstWo
=OjOL
-----END PGP SIGNATURE-----