[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/acct_6.6.4-5_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
[...]
| ^~~~~~~~~~~~~~~~
In function ‘snprintf’,
inlined from ‘print_record’ at last.c:701:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 10 and 27 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 ());
| ~~~~~~~~~~~~~~~~~
last.c: In function ‘print_record’:
last.c:698:67: warning: ‘%02d’ directive output may be truncated writing between 2 and 9 bytes into a region of size between 0 and 10 [-Wformat-truncation=]
698 | (void)snprintf (temp_str, sizeof(temp_str), "(%d+%02d:%02d:%02d)",
| ^~~~
last.c:698:57: note: directive argument in the range [-35791394, 35791394]
698 | (void)snprintf (temp_str, sizeof(temp_str), "(%d+%02d:%02d:%02d)",
| ^~~~~~~~~~~~~~~~~~~~~
In function ‘snprintf’,
inlined from ‘print_record’ at last.c:698:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 13 and 39 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 ());
| ~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I./lib -I./lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/acct-6.6.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-prototypes -c -o accton.o accton.c
gcc -DHAVE_CONFIG_H -I. -I./lib -I./lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/acct-6.6.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-prototypes -c -o sa.o sa.c
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/acct-6.6.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-prototypes -Wl,-z,relro -Wl,-z,now -o dump-utmp dump-utmp.o common.o dev_hash.o file_rd.o hashtab.o utmp_rd.o lib/libgnu.la
sa.c: In function ‘print_user_list’:
sa.c:1509:42: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
1509 | sizeof (struct hashtab_elem *), (int (*)()) compare_user_entry);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void)
In file included from ./lib/stdlib.h:36,
from sa.c:47:
/usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’
971 | __compar_fn_t __compar) __nonnull ((1, 4));
| ~~~~~~~~~~~~~~^~~~~~~~
/usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here
948 | typedef int (*__compar_fn_t) (const void *, const void *);
| ^~~~~~~~~~~~~
sa.c: In function ‘print_command_list’:
sa.c:1689:43: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
1689 | sizeof (struct hashtab_entry *), (int (*)()) compare_sum_entry);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void)
/usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’
971 | __compar_fn_t __compar) __nonnull ((1, 4));
| ~~~~~~~~~~~~~~^~~~~~~~
/usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here
948 | typedef int (*__compar_fn_t) (const void *, const void *);
| ^~~~~~~~~~~~~
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/acct-6.6.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-prototypes -Wl,-z,relro -Wl,-z,now -o ac ac.o common.o file_rd.o hashtab.o utmp_rd.o lib/libgnu.la
libtool: link: gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/acct-6.6.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-prototypes -Wl,-z -Wl,relro -Wl,-z -Wl,now -o dump-utmp dump-utmp.o common.o dev_hash.o file_rd.o hashtab.o utmp_rd.o lib/.libs/libgnu.a
make[4]: *** [Makefile:1345: sa.o] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/acct-6.6.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-prototypes -Wl,-z -Wl,relro -Wl,-z -Wl,now -o ac ac.o common.o file_rd.o hashtab.o utmp_rd.o lib/.libs/libgnu.a
make[4]: Leaving directory '/build/reproducible-path/acct-6.6.4'
make[3]: *** [Makefile:1625: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/acct-6.6.4'
make[2]: *** [Makefile:1107: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/acct-6.6.4'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:23: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/acct-6.6.4'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2