Bug#1075193: libnet-nis-perl: ftbfs with GCC-14
Matthias Klose
doko at debian.org
Wed Jul 3 13:33:59 BST 2024
Package: src:libnet-nis-perl
Version: 0.44-3
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-nis-perl_0.44-3_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_ALIAS_NAME=unstable
SCHROOT_CHROOT_NAME=sid-amd64-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-a7f7f1ab-ba73-4678-8585-c8c376f1f841
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-nis-perl
dpkg-buildpackage: info: source version 0.44-3
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by gregor herrmann <gregoa 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
dh_auto_configure
/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"
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Net::NIS
Writing MYMETA.yml and MYMETA.json
dh_auto_build
make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Running Mkbootstrap for NIS ()
"/usr/bin/perl" "/usr/share/perl/5.38/ExtUtils/xsubpp" -typemap '/usr/share/perl/5.38/ExtUtils/typemap' NIS.xs > NIS.xsc
chmod 644 "NIS.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- NIS.bs blib/arch/auto/Net/NIS/NIS.bs 644
cp NIS.pm blib/lib/Net/NIS.pm
AutoSplitting blib/lib/Net/NIS.pm (blib/lib/auto/Net/NIS)
cp NIS/Table.pm blib/lib/Net/NIS/Table.pm
cp NISTable.pod blib/lib/Net/NISTable.pod
cp NIS.pod blib/lib/Net/NIS.pod
Please specify prototyping behavior for NIS.xs (see perlxs manual)
mv NIS.xsc NIS.c
x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -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=\"0.44\" -DXS_VERSION=\"0.44\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.38/CORE" NIS.c
NIS.xs: In function ‘XS_Net__NIS_yp_order’:
NIS.xs:448:39: error: passing argument 3 of ‘yp_order’ from incompatible pointer type [-Wincompatible-pointer-types]
448 | yp_status = yp_order(domain, map, &order);
| ^~~~~~
| |
| long unsigned int *
In file included from /usr/include/rpcsvc/yp_prot.h:11,
from NIS.xs:10:
/usr/include/rpcsvc/ypclnt.h:71:50: note: expected ‘unsigned int *’ but argument is of type ‘long unsigned int *’
71 | extern int yp_order (const char *, const char *, unsigned int *);
| ^~~~~~~~~~~~~~
NIS.c: In function ‘XS_Net__NIS_yperr_string’:
NIS.c:772:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
772 | RETVAL = yperr_string(code);
| ^
make[1]: *** [Makefile:343: NIS.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