[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/cacti-spine_1.2.27-1_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
[...]
inlined from ‘php_init’ at php.c:369:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 11 and 21 bytes into a destination of size 16
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
php.c: In function ‘php_init’:
php.c:353:69: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 7 [-Wformat-truncation=]
353 | snprintf(poller_id, TINY_BUFSIZE, "--poller=%d", set.poller_id);
| ^~
php.c:353:59: note: directive argument in the range [2, 2147483647]
353 | snprintf(poller_id, TINY_BUFSIZE, "--poller=%d", set.poller_id);
| ^~~~~~~~~~~~~
In function ‘snprintf’,
inlined from ‘php_init’ at php.c:353:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 11 and 20 bytes into a destination of size 16
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
mv -f .deps/sql.Tpo .deps/sql.Po
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./config -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cacti-spine-1.2.27=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/php.Tpo .deps/php.Po
mv -f .deps/keywords.Tpo .deps/keywords.Po
error.c: In function ‘spine_signal_handler’:
error.c:84:49: error: too many arguments to function ‘backtrace’; expected 0, have 2
84 | set.exit_size = backtrace(set.exit_stack, set.exit_size);
| ^~~~~~~~~ ~~~~~~~~~~~~~~
In file included from spine.h:623,
from error.c:40:
error.h:38:12: note: declared here
38 | extern int backtrace();
| ^~~~~~~~~
error.c:85:49: error: too many arguments to function ‘backtrace_symbols’; expected 0, have 2
85 | exit_strings = backtrace_symbols(set.exit_stack, set.exit_size);
| ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
error.h:37:16: note: declared here
37 | extern char ** backtrace_symbols();
| ^~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:525: error.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/snmp.Tpo .deps/snmp.Po
mv -f .deps/spine.Tpo .deps/spine.Po
util.c: In function ‘read_config_options’:
util.c:712:25: warning: ‘%s’ directive writing up to 65534 bytes into a region of size 182 [-Wformat-overflow=]
712 | sqlp += sprintf(sqlp, " AND host_id IN(%s)", set.host_id_list);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
from common.h:93,
from util.c:34:
In function ‘sprintf’,
inlined from ‘read_config_options’ at util.c:712:11:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 18 and 65552 bytes into a destination of size 198
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
mv -f .deps/ping.Tpo .deps/ping.Po
mv -f .deps/util.Tpo .deps/util.Po
mv -f .deps/poller.Tpo .deps/poller.Po
make[1]: Leaving directory '/build/reproducible-path/cacti-spine-1.2.27'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2