Package: src:dns-flood-detector
Version: 1.20-7
Severity: important
Tags: sid forky
User: [email protected]
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/dns-flood-detector_1.20-7_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
[...]
----------------
APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=user42
dpkg-buildpackage
-----------------
Command: dpkg-buildpackage --sanitize-env -us -uc -b
dpkg-buildpackage: info: source package dns-flood-detector
dpkg-buildpackage: info: source version 1.20-7
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Jan Wagner <[email protected]>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
dpkg-source: info: using options from dns-flood-detector-1.20/debian/source/options: --extend-diff-ignore=(^|/)(\.travis\.yml|\.git|\.github|\.gitgnore|config\.sub|config\.guess)
debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
rm -rf dns_flood_detector *.o *~
dh_clean
debian/rules binary
dh_testdir
# Add here commands to compile the package.
x86_64-linux-gnu-gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dns-flood-detector-1.20=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_BSD_SOURCE -Wall -g -Wl,-z,relro dns_flood_detector.c -lpcap -lpthread -lm -o dns_flood_detector
In file included from /usr/include/inttypes.h:25,
from /usr/include/pcap/pcap-inttypes.h:98,
from /usr/include/pcap/pcap.h:117,
from /usr/include/pcap.h:43,
from dns_flood_detector.c:105:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
dns_flood_detector.c: In function ‘handle_IP’:
dns_flood_detector.c:566:24: warning: variable ‘udp’ set but not used [-Wunused-but-set-variable]
566 | const struct udphdr *udp;
| ^~~
dns_flood_detector.c: In function ‘main’:
dns_flood_detector.c:893:3: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
893 | if(dev == NULL && ( (dev=pcap_lookupdev(errbuf)) == NULL ) ){
| ^~
/usr/include/pcap/pcap.h:444:18: note: declared here
444 | PCAP_API char *pcap_lookupdev(char *);
| ^~~~~~~~~~~~~~
dns_flood_detector.c:971:38: error: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
971 | if (pthread_create (&thread, NULL, run_stats, (void *)0)) {
| ^~~~~~~~~
| |
| void * (*)(void)
In file included from dns_flood_detector.c:126:
/usr/include/pthread.h:204:36: note: expected ‘void * (*)(void *)’ but argument is of type ‘void * (*)(void)’
204 | void *(*__start_routine) (void *),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
dns_flood_detector.c:169:7: note: ‘run_stats’ declared here
169 | void *run_stats () {
| ^~~~~~~~~
dns_flood_detector.c: In function ‘daemonize’:
dns_flood_detector.c:987:7: warning: variable ‘a’ set but not used [-Wunused-but-set-variable]
987 | int a;
| ^
make: *** [debian/rules:25: build-stamp] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.