Bug#925830: sip-tester: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:48:06 GMT 2019


Package: src:sip-tester
Version: 1:3.5.2-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

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-9/g++-9, but succeeds to build with gcc-8/g++-8. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc9-20190321/sip-tester_3.5.2-1_unstable_gcc9.log
The last lines of the build log are at the end of this report.

To build with GCC 9, either set CC=gcc-9 CXX=g++-9 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-9/porting_to.html

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
                 from /usr/include/c++/9/bits/locale_classes.h:40,
                 from /usr/include/c++/9/bits/ios_base.h:41,
                 from /usr/include/c++/9/ios:42,
                 from /usr/include/c++/9/ostream:38,
                 from /usr/include/c++/9/iterator:64,
                 from src/call.cpp:41:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 18 and 2075 bytes into a destination of size 64
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/call.cpp:846:31: warning: '%s' directive output may be truncated writing up to 2048 bytes into a region of size 64 [-Wformat-truncation=]
  846 |         snprintf(tmpbuf, 64, "%s (send timeout %u)", s, send_timeout);
      |                               ^~                     ~
In file included from /usr/include/stdio.h:873,
                 from /usr/include/c++/9/cstdio:42,
                 from /usr/include/c++/9/ext/string_conversions.h:43,
                 from /usr/include/c++/9/bits/basic_string.h:6489,
                 from /usr/include/c++/9/string:55,
                 from /usr/include/c++/9/bits/locale_classes.h:40,
                 from /usr/include/c++/9/bits/ios_base.h:41,
                 from /usr/include/c++/9/ios:42,
                 from /usr/include/c++/9/ostream:38,
                 from /usr/include/c++/9/iterator:64,
                 from src/call.cpp:41:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 18 and 2075 bytes into a destination of size 64
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-deadcall.o `test -f 'src/deadcall.cpp' || echo './'`src/deadcall.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-infile.o `test -f 'src/infile.cpp' || echo './'`src/infile.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-listener.o `test -f 'src/listener.cpp' || echo './'`src/listener.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-logger.o `test -f 'src/logger.cpp' || echo './'`src/logger.cpp
gcc -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu11 -D__LINUX -c -o src/sipp-md5.o `test -f 'src/md5.c' || echo './'`src/md5.c
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-message.o `test -f 'src/message.cpp' || echo './'`src/message.cpp
gcc -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu11 -D__LINUX -c -o src/sipp-milenage.o `test -f 'src/milenage.c' || echo './'`src/milenage.c
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-call_generation_task.o `test -f 'src/call_generation_task.cpp' || echo './'`src/call_generation_task.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-ratetask.o `test -f 'src/ratetask.cpp' || echo './'`src/ratetask.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-reporttask.o `test -f 'src/reporttask.cpp' || echo './'`src/reporttask.cpp
gcc -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu11 -D__LINUX -c -o src/sipp-rijndael.o `test -f 'src/rijndael.c' || echo './'`src/rijndael.c
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-scenario.o `test -f 'src/scenario.cpp' || echo './'`src/scenario.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-sip_parser.o `test -f 'src/sip_parser.cpp' || echo './'`src/sip_parser.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-screen.o `test -f 'src/screen.cpp' || echo './'`src/screen.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-socket.o `test -f 'src/socket.cpp' || echo './'`src/socket.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-socketowner.o `test -f 'src/socketowner.cpp' || echo './'`src/socketowner.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-stat.o `test -f 'src/stat.cpp' || echo './'`src/stat.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-strings.o `test -f 'src/strings.cpp' || echo './'`src/strings.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-task.o `test -f 'src/task.cpp' || echo './'`src/task.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-time.o `test -f 'src/time.cpp' || echo './'`src/time.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-variables.o `test -f 'src/variables.cpp' || echo './'`src/variables.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-watchdog.o `test -f 'src/watchdog.cpp' || echo './'`src/watchdog.cpp
gcc -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu11 -D__LINUX -c -o src/sipp-xp_parser.o `test -f 'src/xp_parser.c' || echo './'`src/xp_parser.c
gcc -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu11 -D__LINUX -c -o src/sipp-prepare_pcap.o `test -f 'src/prepare_pcap.c' || echo './'`src/prepare_pcap.c
gcc -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu11 -D__LINUX -c -o src/sipp-send_packets.o `test -f 'src/send_packets.c' || echo './'`src/send_packets.c
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-rtpstream.o `test -f 'src/rtpstream.cpp' || echo './'`src/rtpstream.cpp
g++ -DHAVE_CONFIG_H  -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include   -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -I./include -Wall -pedantic  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/sipp-sipp.o `test -f 'src/sipp.cpp' || echo './'`src/sipp.cpp
In file included from ./include/strings.hpp:24,
                 from ./include/sipp.hpp:484,
                 from src/sipp.cpp:41:
/usr/include/c++/9/cstddef:52:8: error: expected unqualified-id before string constant
   52 | extern "C++"
      |        ^~~~~
make[2]: *** [Makefile:1854: src/sipp-sipp.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:875: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 returned exit code 2
make: *** [debian/rules:32: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list