#1146145 libt3widget: FTBFS: collect2: error: ld returned 1 exit status

#1146145#5
Date:
2026-08-30 09:50:53 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:libt3widget, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
libtool: compile:  x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAS_SELECT_H -DHAS_STRDUP -DWITH_X11 -DHAS_DLFCN -DHAS_GPM -DHAS_STRING_SHRINK_TO_FIT -I/usr/include/t3/config -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DUSE_GETTEXT -DLOCALEDIR=\"/usr/share/locale\" -Isrc -DT3_WIDGET_BUILD_DSO -D_T3_WIDGET_INTERNAL -DX11_MOD_NAME=\"/usr/lib/x86_64-linux-gnu/libt3widget/libt3widget2-x11.mod\" -c src/widgets/expandergroup.cc  -fPIC -DPIC -o src/widgets/.libs/expandergroup.o
libtool  --mode=compile --tag=CXX x86_64-linux-gnu-g++ -shared -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAS_SELECT_H -DHAS_STRDUP -DWITH_X11 -DHAS_DLFCN -DHAS_GPM -DHAS_STRING_SHRINK_TO_FIT `pkg-config --cflags libtranscript` 		`pkg-config --cflags libt3key` `pkg-config --cflags libt3window` `pkg-config --cflags libpcre2-8`  \
	-DUSE_GETTEXT -DLOCALEDIR=\"/usr/share/locale\" -Isrc -DT3_WIDGET_BUILD_DSO -D_T3_WIDGET_INTERNAL \
	`pkg-config --cflags xcb` -c -o src/x11.lo src/x11.cc
libtool: compile:  x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAS_SELECT_H -DHAS_STRDUP -DWITH_X11 -DHAS_DLFCN -DHAS_GPM -DHAS_STRING_SHRINK_TO_FIT -I/usr/include/t3/config -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DUSE_GETTEXT -DLOCALEDIR=\"/usr/share/locale\" -Isrc -DT3_WIDGET_BUILD_DSO -D_T3_WIDGET_INTERNAL -c src/x11.cc  -fPIC -DPIC -o src/.libs/x11.o
libtool  --mode=link --tag=CXX x86_64-linux-gnu-g++ -shared -version-info 2:0:0 \
	-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protect [too-long-redacted] rpath /usr/lib/x86_64-linux-gnu
libtool: link: g++  -fPIC -DPIC -shared -nostdlib   src/.lib [too-long-redacted]  src/.libs/libt3widget.so.2.0.0
/usr/bin/x86_64-linux-gnu-ld.bfd: src/widgets/.libs/split.o: in function `_GLOBAL__sub_I_split.cc':
./src/t3widget/key_binding_def.h:17:(.text.startup+0x144): undefined reference to `__dso_handle'
/usr/bin/x86_64-linux-gnu-ld.bfd: src/widgets/.libs/split.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:101: src/libt3widget.la] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------