Bug#1097905: snmptrapfmt: ftbfs with GCC-15
Package: src:snmptrapfmt
Version: 1.19
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/snmptrapfmt_1.19_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
[...]
905 | lg_sprint_string(stringP, cPPtr, bRemP)
| ^~~~~~~~~~~~~~~~
snmptrapfmt.c: In function ‘lg_sprint_int’:
snmptrapfmt.c:933:1: warning: old-style function definition [-Wold-style-definition]
933 | lg_sprint_int(ival, iFmt, cPPtr, bRemP)
| ^~~~~~~~~~~~~
snmptrapfmt.c: In function ‘lg_sprint_ulong’:
snmptrapfmt.c:966:1: warning: old-style function definition [-Wold-style-definition]
966 | lg_sprint_ulong(uval, uFmt, cPPtr, bRemP)
| ^~~~~~~~~~~~~~~
snmptrapfmt.c: In function ‘lg_sprint_ASNtype’:
snmptrapfmt.c:999:1: warning: old-style function definition [-Wold-style-definition]
999 | lg_sprint_ASNtype(asntype, cPPtr, bRemP)
| ^~~~~~~~~~~~~~~~~
snmptrapfmt.c: In function ‘lg_sprint_var’:
snmptrapfmt.c:1075:1: warning: old-style function definition [-Wold-style-definition]
1075 | lg_sprint_var(var, vFmt, seqno, cPPtr, bRemP)
| ^~~~~~~~~~~~~
snmptrapfmt.c:1119:13: error: too many arguments to function ‘lg_sprint_int’; expected 0, have 4
1119 | lg_sprint_int(seqno, "%d", cPPtr, bRemP);
| ^~~~~~~~~~~~~ ~~~~~
snmptrapfmt.c:933:1: note: declared here
933 | lg_sprint_int(ival, iFmt, cPPtr, bRemP)
| ^~~~~~~~~~~~~
snmptrapfmt.c:1122:13: error: too many arguments to function ‘lg_sprint_oid’; expected 0, have 4
1122 | lg_sprint_oid(var->v_oid, cfg_oidfmt, cPPtr, bRemP);
| ^~~~~~~~~~~~~ ~~~~~~~~~~
snmptrapfmt.c:864:1: note: declared here
864 | lg_sprint_oid(oidP, oidFmt, cPPtr, bRemP)
| ^~~~~~~~~~~~~
snmptrapfmt.c:1126:13: error: too many arguments to function ‘lg_sprint_ASNtype’; expected 0, have 3
1126 | lg_sprint_ASNtype(ASN_OCTET_STR, cPPtr, bRemP);
| ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
snmptrapfmt.c:999:1: note: declared here
999 | lg_sprint_ASNtype(asntype, cPPtr, bRemP)
| ^~~~~~~~~~~~~~~~~
snmptrapfmt.c:1153:15: error: too many arguments to function ‘lg_sprint_string’; expected 0, have 3
1153 | lg_sprint_string(var->v_val + 1, cPPtr, bRemP);
| ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
snmptrapfmt.c:905:1: note: declared here
905 | lg_sprint_string(stringP, cPPtr, bRemP)
| ^~~~~~~~~~~~~~~~
snmptrapfmt.c:1158:15: error: too many arguments to function ‘lg_sprint_string’; expected 0, have 3
1158 | lg_sprint_string(var->v_val, cPPtr, bRemP);
| ^~~~~~~~~~~~~~~~ ~~~~~~~~~~
snmptrapfmt.c:905:1: note: declared here
905 | lg_sprint_string(stringP, cPPtr, bRemP)
| ^~~~~~~~~~~~~~~~
snmptrapfmt.c: In function ‘main’:
snmptrapfmt.c:316:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
316 | freopen("/dev/null", "r", stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
snmptrapfmt.c:317:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
317 | freopen("/dev/null", "w", stdout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
snmptrapfmt.c:318:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
318 | freopen("/dev/null", "w", stderr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
snmptrapfmt.c: In function ‘create_pidfile’:
snmptrapfmt.c:219:7: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
219 | ftruncate(pidfile, 0);
| ^~~~~~~~~~~~~~~~~~~~~
snmptrapfmt.c:223:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
223 | write(pidfile, pid, strlen(pid));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: snmptrapfmt.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/snmptrapfmt-1.19'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: