Bug#1096896: kannel: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:21:53 GMT 2025


Package: src:kannel
Version: 1.4.5-20
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/kannel_1.4.5-20_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

[...]
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
gw/smsc/smsc_emi_x25.c: In function ‘emi_open_session’:
gw/smsc/smsc_emi_x25.c:1203:9: warning: ‘__builtin_strncat’ output may be truncated copying 2 bytes from a string of length 9 [-Wstringop-truncation]
 1203 |         strncat(to, buf, 2);
      |         ^
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/smsc/smsc_oisd.o -c gw/smsc/smsc_oisd.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/smsc/smsc_sema.o -c gw/smsc/smsc_sema.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/smsc/smsc_smasi.o -c gw/smsc/smsc_smasi.c
gw/smsc/smsc_sema.c: In function ‘sema_reopen’:
gw/smsc/smsc_sema.c:176:33: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
  176 |     memset(smsc->buffer,0,sizeof(smsc->buffer));
      |                                 ^
gw/smsc/smsc_sema.c: In function ‘pack_continous_byte’:
gw/smsc/smsc_sema.c:1901:9: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
 1901 |         strncpy(bin,"0110",4);
      |         ^
gw/smsc/smsc_sema.c:1899:9: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
 1899 |         strncpy(bin,"0101",4);
      |         ^
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/smsc/smsc_smpp.o -c gw/smsc/smsc_smpp.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/smsc/smsc_soap.o -c gw/smsc/smsc_soap.c
gw/smsc/smsc_sema.c: In function ‘X28_close_send_link.isra’:
gw/smsc/smsc_sema.c:573:33: warning: ‘__builtin___sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]
  573 |     sprintf(discnntbuff,"%cCLR\r",0x10);
      |                                 ^
In file included from /usr/include/stdio.h:970,
                 from gw/smsc/smsc_sema.c:81:
In function ‘sprintf’,
    inlined from ‘X28_close_send_link.isra’ at gw/smsc/smsc_sema.c:573:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 6 bytes into a destination of size 5
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/smsc/smsc_soap_parlayx.o -c gw/smsc/smsc_soap_parlayx.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/smsc/smsc_wrapper.o -c gw/smsc/smsc_wrapper.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wmlsc.o -c wmlscript/wmlsc.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wmlsdasm.o -c wmlscript/wmlsdasm.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/ws.o -c wmlscript/ws.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wsalloc.o -c wmlscript/wsalloc.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wsasm.o -c wmlscript/wsasm.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wsbc.o -c wmlscript/wsbc.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wsbuffer.o -c wmlscript/wsbuffer.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wsencode.o -c wmlscript/wsencode.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wserror.o -c wmlscript/wserror.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wsfalloc.o -c wmlscript/wsfalloc.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/  -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o wmlscript/wsgram.o -c wmlscript/wsgram.c
y.tab.c: In function ‘ws_yy_parse’:
wmlscript/wsgram.c:69:25: error: too many arguments to function ‘ws_yy_lex’; expected 0, have 2
   69 | #define yylex           ws_yy_lex
      |                         ^~~~~~~~~
y.tab.c:1766:16: note: in expansion of macro ‘yylex’
wmlscript/wsgram.c:69:25: note: declared here
   69 | #define yylex           ws_yy_lex
      |                         ^~~~~~~~~
./wmlscript/wsint.h:276:12: note: in expansion of macro ‘yylex’
  276 | extern int yylex();
      |            ^~~~~
make[2]: *** [Makefile:226: wmlscript/wsgram.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/reproducible-path/kannel-1.4.5'
dh_auto_build: error: make -j8 DOCSTARGET= returned exit code 2
make[1]: *** [debian/rules:28: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/build/reproducible-path/kannel-1.4.5'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list