Bug#1097232: libnet-interface-perl: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:32:38 GMT 2025


Package: src:libnet-interface-perl
Version: 1.016-3
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/libnet-interface-perl_1.016-3_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
checking for LOCAL_SIZEOF_SOCKADDR_STORAGE... is 128
checking for LOCAL_SIZEOF_SOCKADDR_IN... is 16
checking for LOCAL_SIZEOF_SOCKADDR_AT... is 16
checking for LOCAL_SIZEOF_SOCKADDR_ASH... not defined
checking for LOCAL_SIZEOF_SOCKADDR_AX25... is 16
checking for LOCAL_SIZEOF_SOCKADDR_X25... is 18
checking for LOCAL_SIZEOF_SOCKADDR_EC... is 16
checking for LOCAL_SIZEOF_SOCKADDR_IN6... is 28
checking for LOCAL_SIZEOF_SOCKADDR_IPX... is 16
checking for LOCAL_SIZEOF_SOCKADDR_UN... is 110
checking for LOCAL_SIZEOF_SOCKADDR_LL... is 20
checking for LOCAL_SIZEOF_SOCKADDR_ROSE... not defined
checking for LOCAL_SIZEOF_SOCKADDR_DL... not defined
checking for LOCAL_SIZEOF_SOCKADDR_EON... not defined
checking for LOCAL_SIZEOF_SOCKADDR_INARP... not defined
checking for LOCAL_SIZEOF_SOCKADDR_ISO... not defined
checking for LOCAL_SIZEOF_SOCKADDR_NS... not defined
checking for LOCAL_SIZEOF_SOCKADDR_ATM... not defined
checking for LOCAL_SIZEOF_SOCKADDR_DECnet... not defined
checking for LOCAL_SIZEOF_SOCKADDR_TP... not defined
checking for LOCAL_SIZEOF_SOCKADDR_OSITP... not defined
configure: creating ./config.status
config.status: creating config.h
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Net::Interface
Writing MYMETA.yml and MYMETA.json
make[1]: Leaving directory '/build/reproducible-path/libnet-interface-perl-1.016'
   dh_auto_build -O--buildsystem=perl_makemaker
	make -j8
make[1]: Entering directory '/build/reproducible-path/libnet-interface-perl-1.016'
Running Mkbootstrap for Interface ()
"/usr/bin/perl" "/usr/share/perl/5.40/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.40/ExtUtils/typemap' -typemap '/build/reproducible-path/libnet-interface-perl-1.016/typemap'  Interface.xs > Interface.xsc
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_getifaddrs.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_ifreq.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_in6_ifreq.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_lifreq.c
cp lib/Net/Interface/Developer.pm blib/lib/Net/Interface/Developer.pm
cp lib/Net/Interface/NetSymbols.pm blib/lib/Net/Interface/NetSymbols.pm
cp Interface.pm blib/lib/Net/Interface.pm
chmod 644 "Interface.bs"
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_strlcpy.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_util.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_malloc.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_linuxproc.c
mv Interface.xsc Interface.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_af_inetcommon.c
x86_64-linux-gnu-gcc -c  -I/usr/local/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=/build/reproducible-path/libnet-interface-perl-1.016=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_FORTIFY_SOURCE=0 -Wdate-time   -DVERSION=\"1.016\" -DXS_VERSION=\"1.016\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   ni_memcmp.c
ni_getifaddrs.c: In function ‘ni_getifaddrs_dump’:
ni_getifaddrs.c:262:31: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=]
  262 |             printf("flags=%0llx<",flags);
      |                           ~~~~^   ~~~~~
      |                               |   |
      |                               |   u_int64_t {aka long unsigned int}
      |                               long long unsigned int
      |                           %0lx
ni_linuxproc.c:384:27: error: initialization of ‘void * (*)(int,  void *)’ from incompatible pointer type ‘void * (*)(void)’ [-Wincompatible-pointer-types]
  384 |     .getifreqs          = returnull,
      |                           ^~~~~~~~~
ni_linuxproc.c:384:27: note: (near initialization for ‘ni_flavor_linuxproc.getifreqs’)
ni_linuxproc.c:351:15: note: ‘returnull’ declared here
  351 | static void * returnull() { return NULL; }
      |               ^~~~~~~~~
make[1]: *** [Makefile:388: ni_linuxproc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/reproducible-path/libnet-interface-perl-1.016'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-perl-maintainers mailing list