Bug#1075194: libnet-tclink-perl: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:34:01 BST 2024


Package: src:libnet-tclink-perl
Version: 3.4.0-10
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/libnet-tclink-perl_3.4.0-10_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-1c87b31a-29a6-4a3b-a715-cf08130837d1
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package libnet-tclink-perl
dpkg-buildpackage: info: source version 3.4.0-10
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Jelmer Vernooij <jelmer at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- INSTALLDIRS=vendor
	/usr/bin/perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z,relro -Wl,-z,now" INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Net::TCLink
Writing MYMETA.yml and MYMETA.json
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Running Mkbootstrap for TCLink ()
"/usr/bin/perl" "/usr/share/perl/5.38/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.38/ExtUtils/typemap'  TCLink.xs > TCLink.xsc
chmod 644 "TCLink.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- TCLink.bs blib/arch/auto/Net/TCLink/TCLink.bs 644
cp TCLink.pm blib/lib/Net/TCLink.pm
AutoSplitting blib/lib/Net/TCLink.pm (blib/lib/auto/Net/TCLink)
Please specify prototyping behavior for TCLink.xs (see perlxs manual)
mv TCLink.xsc TCLink.c
x86_64-linux-gnu-gcc -c  -IINSTALLDIRS=vendor/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"3.4\" -DXS_VERSION=\"3.4\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.38/CORE"  -DPERL5 -DTCLINK_VERSION=\"3.4-Perl-Debian\" TCLink.c
In file included from TCLink.xs:5:
tclink.c: In function ‘Connect’:
tclink.c:542:25: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  542 |                 c->meth = SSLv23_client_method();
      |                         ^
tclink.c:553:45: error: passing argument 2 of ‘d2i_X509’ from incompatible pointer type [-Wincompatible-pointer-types]
  553 |                 c->tc_cert = d2i_X509(NULL, &cert_data_ptr, TC_CERT_SIZE);
      |                                             ^~~~~~~~~~~~~~
      |                                             |
      |                                             unsigned char **
In file included from /usr/include/openssl/objects.h:21,
                 from /usr/include/openssl/evp.h:44,
                 from /usr/include/openssl/x509.h:29,
                 from tclink.c:44:
/usr/include/openssl/x509.h:753:1: note: expected ‘const unsigned char **’ but argument is of type ‘unsigned char **’
  753 | DECLARE_ASN1_FUNCTIONS(X509)
      | ^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:341: TCLink.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-perl-maintainers mailing list