Bug#1143719: xml-security-c: FTBFS: tools/xtest/xtest.cpp:2481:38: error: use of deleted function 'std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char16_t*) [with _Traits = char_traits<char>]'
Santiago Vila <[email protected]> Wed, 05 Aug 2026 11:25:56 +0000
| Newsgroups | gmane.linux.debian.devel.bugs.rc |
|---|---|
| Message-ID | <E1wrZky-00Gxpn-0t__15651.1659313523$1785929471$gmane$org@paradis.debian.org> |
Package: src:xml-security-c
Version: 3.0.0-2
Severity: serious
Tags: ftbfs forky sid
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:xml-security-c, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: no obvious need to run autopoint
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: configure.ac: no need to run autopoint (confirmed)
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:27: installing 'build-aux/compile'
configure.ac:24: installing 'build-aux/missing'
xsec/Makefile.am: installing 'build-aux/depcomp'
autoreconf: configure.ac: not running make: --make not given
autoreconf: Leaving directory '.'
dh_auto_configure
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether UID '995' is supported by ustar format... yes
checking whether GID '995' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports the include directive... yes (GNU style)
checking for gcc... x86_64-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-linux-gnu-gcc accepts -g... yes
checking for x86_64-linux-gnu-gcc option to enable C23 features... none needed
checking whether x86_64-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of x86_64-linux-gnu-gcc... none
checking for x86_64-linux-gnu-gcc option to support large files... none needed
checking whether the compiler supports GNU C... (cached) yes
checking whether x86_64-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-linux-gnu-gcc option to enable C23 features... (cached) none needed
checking whether x86_64-linux-gnu-gcc understands -c and -o together... (cached) yes
checking dependency style of x86_64-linux-gnu-gcc... (cached) none
checking whether the compiler supports GNU C++... yes
checking whether x86_64-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-linux-gnu-g++... none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by x86_64-linux-gnu-gcc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking command to parse /usr/bin/nm -B output from x86_64-linux-gnu-gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-linux-gnu-gcc static flag -static works... yes
checking if x86_64-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-linux-gnu-gcc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... x86_64-linux-gnu-g++ -E
checking for ld used by x86_64-linux-gnu-g++... /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64
checking if the linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-linux-gnu-g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if x86_64-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if x86_64-linux-gnu-g++ static flag -static works... yes
checking if x86_64-linux-gnu-g++ supports -c -o file.o... yes
checking if x86_64-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the x86_64-linux-gnu-g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether ln -s works... yes
checking for gawk... (cached) mawk
checking for autoconf... ${SHELL} '/<<PKGBUILDDIR>>/build-aux/missing' autoconf
checking how to run the C preprocessor... x86_64-linux-gnu-gcc -E
checking for egrep -e... (cached) /usr/bin/grep -E
checking whether x86_64-linux-gnu-gcc is Clang... no
checking whether pthreads work with "-pthread" and "-lpthread"... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for unistd.h... (cached) yes
checking for direct.h... no
checking for strcasecmp... yes
checking whether getcwd(NULL, 0) works... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for xerces-c >= 3.2... yes
checking for x86_64-linux-gnu-gcc options to detect undeclared functions... none needed
checking for x86_64-linux-gnu-gcc options to ignore future-version functions... none needed
checking for libcrypto... yes
checking for const input buffers in OpenSSL... no
checking whether EVP_PKEY_id is declared... yes
checking for non-broken AES support... yes
checking for GCM support... yes
checking whether PKCS1_MGF1 is declared... yes
checking whether EVP_PKEY_set1_EC_KEY is declared... yes
checking whether EVP_sha512 is declared... yes
checking whether EVP_CIPHER_CTX_set_padding is declared... yes
checking whether CRYPTO_cleanup_all_ex_data is declared... yes
checking for const input buffer in loadX509Base64Bin... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xsec/Makefile
config.status: creating xml-security-c.pc
config.status: creating config.h
config.status: creating xsec/framework/XSECConfig.hpp
config.status: executing depfiles commands
config.status: executing libtool commands
dh_auto_build
make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in xsec
make[3]: Entering directory '/<<PKGBUILDDIR>>/xsec'
/bin/bash ../libtool --tag=CXX --mode=compile x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o enc/libxml_security_c_la-XSECCryptoException.lo `test -f 'enc/XSECCryptoException.cpp' || echo './'`enc/XSECCryptoException.cpp
libtool: compile: x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c enc/XSECCryptoException.cpp -fPIC -DPIC -o enc/.libs/libxml_security_c_la-XSECCryptoException.o
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_TOOLS -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tools/xtest/xsec_xtest-xtest.o `test -f 'tools/xtest/xtest.cpp' || echo './'`tools/xtest/xtest.cpp
/bin/bash ../libtool --tag=CXX --mode=compile x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o canon/libxml_security_c_la-XSECC14n20010315.lo `test -f 'canon/XSECC14n20010315.cpp' || echo './'`canon/XSECC14n20010315.cpp
libtool: compile: x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_LIBRARY -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c canon/XSECC14n20010315.cpp -fPIC -DPIC -o canon/.libs/libxml_security_c_la-XSECC14n20010315.o
In file included from ../xsec/utils/XSECNameSpaceExpander.hpp:36,
from ../xsec/transformers/TXFMBase.hpp:35,
from ../xsec/transformers/TXFMOutputFile.hpp:33,
from tools/xtest/xtest.cpp:53:
../xsec/utils/XSECSafeBufferFormatter.hpp: In member function ‘virtual void sbFormatTarget::writeChars(const XMLByte*, XMLSize_t, xercesc_3_2::XMLFormatter*)’:
../xsec/utils/XSECSafeBufferFormatter.hpp:63:73: warning: unused parameter ‘formatter’ [-Wunused-parameter]
63 | XERCES_CPP_NAMESPACE_QUALIFIER XMLFormatter * const formatter)
| ^
tools/xtest/xtest.cpp: In function ‘int main(int, char**)’:
tools/xtest/xtest.cpp:2481:38: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char16_t*) [with _Traits = char_traits<char>]’
2481 | << e.getMessage() << endl;
| ^
In file included from /usr/include/c++/16/ostream:42,
from /usr/include/c++/16/iostream:43,
from tools/xtest/xtest.cpp:37:
/usr/include/c++/16/bits/ostream.h:772:5: note: declared here
772 | operator<<(basic_ostream<char, _Traits>&, const char16_t*) = delete;
| ^~~~~~~~
tools/xtest/xtest.cpp:2481:38: note: use ‘-fdiagnostics-all-candidates’ to display considered candidates
2481 | << e.getMessage() << endl;
| ^
make[3]: *** [Makefile:2621: tools/xtest/xsec_xtest-xtest.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/xsec'
make[2]: *** [Makefile:525: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:426: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------