--- Begin Message ---
Package: src:tcpreplay
Version: 4.3.2-1
Severity: normal
Tags: sid bullseye
User: [email protected]
Usertags: ftbfs-gcc-10
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-10/g++-10, but succeeds to build with gcc-9/g++-9. 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/gcc10-20200225/tcpreplay_4.3.2-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.
To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html
[...]
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -I./tcpedit -DTCPREPLAY -DTCPREPLAY_EDIT
-DHAVE_CACHEFILE_SUPPORT -D_U_="__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpreplay_edit-tcpreplay_api.o `test -f 'tcpreplay_api.c' || echo
'./'`tcpreplay_api.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -I./tcpedit -DTCPREPLAY -DTCPREPLAY_EDIT
-DHAVE_CACHEFILE_SUPPORT -D_U_="__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpreplay_edit-sleep.o `test -f 'sleep.c' || echo './'`sleep.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -I./tcpedit -DTCPREPLAY -DTCPREPLAY_EDIT
-DHAVE_CACHEFILE_SUPPORT -D_U_="__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpreplay_edit-replay.o `test -f 'replay.c' || echo './'`replay.c
In file included from sleep.c:22:
sleep.h: In function ‘gettimeofday_sleep’:
sleep.h:77:35: warning: unused parameter ‘flush’ [-Wunused-parameter]
77 | struct timeval *now, bool flush)
| ^
sleep.h: In function ‘select_sleep’:
sleep.h:119:36: warning: unused parameter ‘flush’ [-Wunused-parameter]
119 | struct timeval *now, bool flush)
| ^
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -DTCPCAPINFO -D_U_="__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpcapinfo-tcpcapinfo_opts.o `test -f 'tcpcapinfo_opts.c' || echo
'./'`tcpcapinfo_opts.c
tcpreplay_api.c: In function ‘__tcpreplay_seterr’:
tcpreplay_api.c:933:78: warning: ‘%s’ directive output may be truncated writing
up to 1023 bytes into a region of size 1006 [-Wformat-truncation=]
933 | snprintf(ctx->errstr, (TCPREPLAY_ERRSTR_LEN -1), "From %s:%s() line
%d:\n%s",
|
^~
934 | file, func, line, errormsg);
| ~~~~~~~~
tcpreplay_api.c:933:5: note: ‘snprintf’ output 18 or more bytes (assuming 1041)
into a destination of size 1023
933 | snprintf(ctx->errstr, (TCPREPLAY_ERRSTR_LEN -1), "From %s:%s() line
%d:\n%s",
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
934 | file, func, line, errormsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -DTCPCAPINFO -D_U_="__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpcapinfo-tcpcapinfo.o `test -f 'tcpcapinfo.c' || echo './'`tcpcapinfo.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -I./tcpedit -DTCPBRIDGE -D_U_="__attribute__((unused))"
-g -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpbridge-tcpbridge_opts.o `test -f 'tcpbridge_opts.c' || echo
'./'`tcpbridge_opts.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -I./tcpedit -DTCPBRIDGE -D_U_="__attribute__((unused))"
-g -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpbridge-tcpbridge.o `test -f 'tcpbridge.c' || echo './'`tcpbridge.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -I./tcpedit -DTCPBRIDGE -D_U_="__attribute__((unused))"
-g -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpbridge-bridge.o `test -f 'bridge.c' || echo './'`bridge.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -DTCPREPLAY -DTCPLIVEPLAY -D_U_="__attribute__((unused))"
-g -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpliveplay-tcpliveplay_opts.o `test -f 'tcpliveplay_opts.c' || echo
'./'`tcpliveplay_opts.c
bridge.c: In function ‘do_bridge_unidirectional’:
bridge.c:110:13: warning: cast between incompatible function types from ‘int
(*)(struct live_data_t *, struct pcap_pkthdr *, const u_char *)’ {aka ‘int
(*)(struct live_data_t *, struct pcap_pkthdr *, const unsigned char *)’} to
‘void (*)(u_char *, const struct pcap_pkthdr *, const u_char *)’ {aka ‘void
(*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’}
[-Wcast-function-type]
110 | (pcap_handler)live_callback, (u_char *) &livedata)) < 0) {
| ^
bridge.c: In function ‘do_bridge_bidirectional’:
bridge.c:169:51: warning: cast between incompatible function types from ‘int
(*)(struct live_data_t *, struct pcap_pkthdr *, const u_char *)’ {aka ‘int
(*)(struct live_data_t *, struct pcap_pkthdr *, const unsigned char *)’} to
‘void (*)(u_char *, const struct pcap_pkthdr *, const u_char *)’ {aka ‘void
(*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’}
[-Wcast-function-type]
169 | pcap_dispatch(options->pcap1, -1, (pcap_handler)
live_callback,
| ^
bridge.c:178:51: warning: cast between incompatible function types from ‘int
(*)(struct live_data_t *, struct pcap_pkthdr *, const u_char *)’ {aka ‘int
(*)(struct live_data_t *, struct pcap_pkthdr *, const unsigned char *)’} to
‘void (*)(u_char *, const struct pcap_pkthdr *, const u_char *)’ {aka ‘void
(*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’}
[-Wcast-function-type]
178 | pcap_dispatch(options->pcap2, -1, (pcap_handler)
live_callback,
| ^
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2
-I../libopts -I./.. -DTCPREPLAY -DTCPLIVEPLAY -D_U_="__attribute__((unused))"
-g -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -c -o
tcpliveplay-tcpliveplay.o `test -f 'tcpliveplay.c' || echo './'`tcpliveplay.c
/bin/bash ../libtool --tag=CC --mode=link x86_64-linux-gnu-gcc -I../libopts
-I./.. -DTCPREPLAY -D_U_="__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -Wl,-z,relro
-Wl,-z,now -o tcpreplay tcpreplay-tcpreplay_opts.o tcpreplay-send_packets.o
tcpreplay-signal_handler.o tcpreplay-tcpreplay.o tcpreplay-tcpreplay_api.o
tcpreplay-sleep.o tcpreplay-replay.o ./common/libcommon.a ../lib/libstrl.a
-L/usr/lib/x86_64-linux-gnu -lpcap ../libopts/libopts.la -lrt -lnsl
/bin/bash ../libtool --tag=CC --mode=link x86_64-linux-gnu-gcc -I../libopts
-I./.. -DTCPPREP -D_U_="__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -Wl,-z,relro
-Wl,-z,now -o tcpprep tcpprep-tcpprep_opts.o tcpprep-tcpprep.o tcpprep-tree.o
tcpprep-tcpprep_api.o ./common/libcommon.a ../lib/libstrl.a
-L/usr/lib/x86_64-linux-gnu -lpcap ../libopts/libopts.la -lrt -lnsl
/bin/bash ../libtool --tag=CC --mode=link x86_64-linux-gnu-gcc -I../libopts
-I./.. -I./tcpedit -DTCPREWRITE -DHAVE_CACHEFILE_SUPPORT
-D_U_="__attribute__((unused))" -g -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wextra
-Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul -g -O0 -Wall
-Wextra -Wfatal-errors -Wno-variadic-macros -Wno-format-contains-nul
-I/usr/include -Wl,-z,relro -Wl,-z,now -o tcprewrite
tcprewrite-tcprewrite_opts.o tcprewrite-tcprewrite.o ./tcpedit/libtcpedit.a
./common/libcommon.a ../lib/libstrl.a -L/usr/lib/x86_64-linux-gnu -lpcap
../libopts/libopts.la -lrt -lnsl
libtool: link: x86_64-linux-gnu-gcc -I../libopts -I./.. -DTCPREPLAY
"-D_U_=__attribute__((unused))" -g -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wextra
-Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul -g -O0 -Wall
-Wextra -Wfatal-errors -Wno-variadic-macros -Wno-format-contains-nul
-I/usr/include -Wl,-z -Wl,relro -Wl,-z -Wl,now -o tcpreplay
tcpreplay-tcpreplay_opts.o tcpreplay-send_packets.o tcpreplay-signal_handler.o
tcpreplay-tcpreplay.o tcpreplay-tcpreplay_api.o tcpreplay-sleep.o
tcpreplay-replay.o ./common/libcommon.a ../lib/libstrl.a
-L/usr/lib/x86_64-linux-gnu -lpcap ../libopts/.libs/libopts.a -lrt -lnsl
libtool: link: x86_64-linux-gnu-gcc -I../libopts -I./.. -DTCPPREP
"-D_U_=__attribute__((unused))" -g -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wextra
-Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul -g -O0 -Wall
-Wextra -Wfatal-errors -Wno-variadic-macros -Wno-format-contains-nul
-I/usr/include -Wl,-z -Wl,relro -Wl,-z -Wl,now -o tcpprep
tcpprep-tcpprep_opts.o tcpprep-tcpprep.o tcpprep-tree.o tcpprep-tcpprep_api.o
./common/libcommon.a ../lib/libstrl.a -L/usr/lib/x86_64-linux-gnu -lpcap
../libopts/.libs/libopts.a -lrt -lnsl
/bin/bash ../libtool --tag=CC --mode=link x86_64-linux-gnu-gcc -I../libopts
-I./.. -I./tcpedit -DTCPREPLAY -DTCPREPLAY_EDIT -DHAVE_CACHEFILE_SUPPORT
-D_U_="__attribute__((unused))" -g -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wextra
-Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul -g -O0 -Wall
-Wextra -Wfatal-errors -Wno-variadic-macros -Wno-format-contains-nul
-I/usr/include -Wl,-z,relro -Wl,-z,now -o tcpreplay-edit
tcpreplay_edit-tcpreplay_edit_opts.o tcpreplay_edit-send_packets.o
tcpreplay_edit-signal_handler.o tcpreplay_edit-tcpreplay.o
tcpreplay_edit-tcpreplay_api.o tcpreplay_edit-sleep.o tcpreplay_edit-replay.o
./tcpedit/libtcpedit.a ./common/libcommon.a ../lib/libstrl.a
-L/usr/lib/x86_64-linux-gnu -lpcap ../libopts/libopts.la -lrt -lnsl
/usr/bin/ld: tcpreplay-tcpreplay.o:./src/timestamp_trace.h:28: multiple
definition of `trace_num'; tcpreplay-send_packets.o:./src/timestamp_trace.h:28:
first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:717: tcpreplay] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: x86_64-linux-gnu-gcc -I../libopts -I./.. -I./tcpedit
-DTCPREWRITE -DHAVE_CACHEFILE_SUPPORT "-D_U_=__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o tcprewrite tcprewrite-tcprewrite_opts.o
tcprewrite-tcprewrite.o ./tcpedit/libtcpedit.a ./common/libcommon.a
../lib/libstrl.a -L/usr/lib/x86_64-linux-gnu -lpcap ../libopts/.libs/libopts.a
-lrt -lnsl
/usr/bin/ld: ./tcpedit/libtcpedit.a(tcpedit.o):(.rodata+0x0): multiple
definition of `tcpedit_tcpedit_optDesc_p';
tcprewrite-tcprewrite_opts.o:./src/tcprewrite_opts.c:1616: first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:725: tcprewrite] Error 1
libtool: link: x86_64-linux-gnu-gcc -I../libopts -I./.. -I./tcpedit -DTCPREPLAY
-DTCPREPLAY_EDIT -DHAVE_CACHEFILE_SUPPORT "-D_U_=__attribute__((unused))" -g
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wextra -Wno-variadic-macros -Wfatal-errors
-Wno-format-contains-nul -g -O0 -Wall -Wextra -Wfatal-errors
-Wno-variadic-macros -Wno-format-contains-nul -I/usr/include -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o tcpreplay-edit tcpreplay_edit-tcpreplay_edit_opts.o
tcpreplay_edit-send_packets.o tcpreplay_edit-signal_handler.o
tcpreplay_edit-tcpreplay.o tcpreplay_edit-tcpreplay_api.o
tcpreplay_edit-sleep.o tcpreplay_edit-replay.o ./tcpedit/libtcpedit.a
./common/libcommon.a ../lib/libstrl.a -L/usr/lib/x86_64-linux-gnu -lpcap
../libopts/.libs/libopts.a -lrt -lnsl
/usr/bin/ld: tcpreplay_edit-tcpreplay.o:./src/timestamp_trace.h:28: multiple
definition of `trace_num';
tcpreplay_edit-send_packets.o:./src/timestamp_trace.h:28: first defined here
/usr/bin/ld: ./tcpedit/libtcpedit.a(tcpedit.o):(.rodata+0x0): multiple
definition of `tcpedit_tcpedit_optDesc_p';
tcpreplay_edit-tcpreplay_edit_opts.o:./src/tcpreplay_edit_opts.c:2316: first
defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:721: tcpreplay-edit] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:1225: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:599: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:449: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:6: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--- End Message ---