Bug#1075074: hunt: ftbfs with GCC-14
Package: src:hunt
Version: 1.5-9
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14
[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/hunt_1.5-9_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 14, either set CC=gcc-14 CXX=g++-14 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-14/porting_to.html
[...]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
cc -Wl,-z,relro -Wl,-z,now -o hunt hunt.o main.o c/list.o c/hash.o c/array.o util.o net.o rst.o menu.o hijack.o rstd.o sniff.o macdisc.o tap.o arphijack.o tty.o synchijack.o arpspoof.o hostup.o addpolicy.o options.o resolv.o timer.o pktrelay.o -lpthread
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build --sourcedirectory=tpserv
cd tpserv && make -j8 "INSTALL=install --strip-program=true"
make[2]: Entering directory '/<<PKGBUILDDIR>>/tpserv'
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -g -ffile-prefix-map=/<<PKGBUILDDIR>>/tpserv=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tpserv.o tpserv.c
tpserv.c:58:13: warning: conflicting types for built-in function ‘log’; expected ‘double(double)’ [-Wbuiltin-declaration-mismatch]
58 | static void log(int level, int pid, char *format, ...)
| ^~~
tpserv.c:23:1: note: ‘log’ is declared in header ‘<math.h>’
22 | #include <syslog.h>
+++ |+#include <math.h>
23 |
tpserv.c: In function ‘process_request_connect’:
tpserv.c:161:32: error: passing argument 2 of ‘connect’ from incompatible pointer type [-Wincompatible-pointer-types]
161 | if (connect(fd_remote, to_addr, to_addr_len) < 0) {
| ^~~~~~~
| |
| struct sockaddr_in *
In file included from tpserv.c:11:
/usr/include/x86_64-linux-gnu/sys/socket.h:126:52: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’
126 | extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
| ^
tpserv.c:166:69: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign]
166 | if (getsockname(fd_remote, (struct sockaddr *) &local_addr, &local_addr_len) < 0) {
| ^~~~~~~~~~~~~~~
| |
| int *
/usr/include/x86_64-linux-gnu/sys/socket.h:117:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
117 | socklen_t *__restrict __len) __THROW;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
tpserv.c: In function ‘serv_slave’:
tpserv.c:216:59: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign]
216 | if (getsockname(fd, (struct sockaddr *) &to_addr, &to_addr_len) < 0) {
| ^~~~~~~~~~~~
| |
| int *
/usr/include/x86_64-linux-gnu/sys/socket.h:117:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
117 | socklen_t *__restrict __len) __THROW;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
tpserv.c:222:61: warning: pointer targets in passing argument 3 of ‘getpeername’ differ in signedness [-Wpointer-sign]
222 | if (getpeername(fd, (struct sockaddr *) &from_addr, &from_addr_len) < 0) {
| ^~~~~~~~~~~~~~
| |
| int *
/usr/include/x86_64-linux-gnu/sys/socket.h:131:47: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
131 | socklen_t *__restrict __len) __THROW;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
tpserv.c: In function ‘main’:
tpserv.c:336:75: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign]
336 | clifd = accept(lfd, (struct sockaddr *) &cliaddr, &clilen);
| ^~~~~~~
| |
| int *
/usr/include/x86_64-linux-gnu/sys/socket.h:307:42: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
307 | socklen_t *__restrict __addr_len);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
tpserv.c:327:17: warning: ignoring return value of ‘daemon’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
327 | daemon(0, 0);
| ^~~~~~~~~~~~
make[2]: *** [<builtin>: tpserv.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/tpserv'
dh_auto_build: error: cd tpserv && make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: