Bug#1096529: dmitry: ftbfs with GCC-15
Package: src:dmitry
Version: 1.3a-6
Severity: important
Tags: sid forky
User: debian-gcc@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/dmitry_1.3a-6_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
[...]
| ^~~~~~~~~~~~~~~~~
src/includes/nwhois.h:10:5: note: previous declaration of ‘nic_string_search’ with type ‘int(void)’
10 | int nic_string_search();
| ^~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:495: iwhois.o] Error 1
src/nwhois.c: In function ‘nic_string_search’:
make[1]: *** [Makefile:523: netcraft.o] Error 1
src/nwhois.c:54:9: error: too many arguments to function ‘sendData’; expected 0, have 2
54 | sendData(query, strlen(query));
| ^~~~~~~~ ~~~~~
src/includes/nwhois.h:9:13: note: declared here
9 | extern void sendData();
| ^~~~~~~~
src/nwhois.c:57:17: error: too many arguments to function ‘readData’; expected 0, have 2
57 | readData(buff, 500);
| ^~~~~~~~ ~~~~
src/includes/nwhois.h:7:13: note: declared here
7 | extern void readData();
| ^~~~~~~~
src/nwhois.c:60:33: error: too many arguments to function ‘print_line’; expected 0, have 2
60 | print_line("ERROR: Unable to locate Name Whois data on %s\n", host);
| ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/includes/nwhois.h:8:13: note: declared here
8 | extern void print_line();
| ^~~~~~~~~~
src/nwhois.c:66:38: error: too many arguments to function ‘nic_format_buff’; expected 0, have 2
66 | if ( nic_format_buff(buff, listn) ) return 0;
| ^~~~~~~~~~~~~~~ ~~~~
src/includes/nwhois.h:13:5: note: declared here
13 | int nic_format_buff();
| ^~~~~~~~~~~~~~~
src/tcp_sock.c: In function ‘readData’:
src/tcp_sock.c:74:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
74 | read((int) tcp_sock, (char *) readbuff, (int) readsize);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/nwhois.c: At top level:
src/nwhois.c:76:5: error: conflicting types for ‘get_td’; have ‘int(char *)’
76 | int get_td(char *host)
| ^~~~~~
src/includes/nwhois.h:11:5: note: previous declaration of ‘get_td’ with type ‘int(void)’
11 | int get_td();
| ^~~~~~
src/nwhois.c:120:5: error: conflicting types for ‘nic_format_buff’; have ‘int(char *, int)’
120 | int nic_format_buff(char *buff, int listn)
| ^~~~~~~~~~~~~~~
src/includes/nwhois.h:13:5: note: previous declaration of ‘nic_format_buff’ with type ‘int(void)’
13 | int nic_format_buff();
| ^~~~~~~~~~~~~~~
src/tcp_sock.c: In function ‘sendData’:
src/tcp_sock.c:82:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
82 | write((int) tcp_sock, (char *) sendbuff, (int) sendsize);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/nwhois.c: In function ‘nic_format_buff’:
src/nwhois.c:130:33: error: too many arguments to function ‘print_line’; expected 0, have 2
130 | print_line("%s\n", frmtdbuff);
| ^~~~~~~~~~ ~~~~~~
src/includes/nwhois.h:8:13: note: declared here
8 | extern void print_line();
| ^~~~~~~~~~
src/nwhois.c:142:25: error: too many arguments to function ‘print_line’; expected 0, have 2
142 | print_line("%s", frmtdbuff);
| ^~~~~~~~~~ ~~~~
src/includes/nwhois.h:8:13: note: declared here
8 | extern void print_line();
| ^~~~~~~~~~
make[1]: *** [Makefile:565: nwhois.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/dmitry-1.3a'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: