[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/gdbm_1.24-2_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
[...]
../../tools/var.c:93:16: error: expected identifier before 'bool'
93 | .init = { .bool = 1 }
| ^~~~
../../tools/var.c:117:16: error: expected identifier before 'bool'
117 | .init = { .bool = 1 }
| ^~~~
../../tools/var.c:123:16: error: expected identifier before 'bool'
123 | .init = { .bool = 1 }
| ^~~~
../../tools/var.c:129:16: error: expected identifier before 'bool'
129 | .init = { .bool = 0 }
| ^~~~
../../tools/var.c:135:16: error: expected identifier before 'bool'
135 | .init = { .bool = 0 },
| ^~~~
../../tools/var.c:142:16: error: expected identifier before 'bool'
142 | .init = { .bool = 0 },
| ^~~~
../../tools/var.c: In function 's2b':
../../tools/var.c:255:13: error: expected identifier before 'bool'
255 | vp->bool = 1;
| ^~~~
../../tools/var.c:262:13: error: expected identifier before 'bool'
262 | vp->bool = 0;
| ^~~~
../../tools/var.c:269:7: error: expected identifier before 'bool'
269 | vp->bool = !!n;
| ^~~~
../../tools/var.c: In function 'b2b':
../../tools/var.c:289:7: error: expected identifier before 'bool'
289 | vp->bool = !!*(int*)val;
| ^~~~
../../tools/var.c: In function 'i2b':
../../tools/var.c:310:7: error: expected identifier before 'bool'
310 | vp->bool = *(int*)val;
| ^~~~
../../tools/var.c: In function 'variable_get':
../../tools/var.c:417:26: error: expected identifier before 'bool'
417 | *(int*)val = vp->v.bool;
| ^~~~
../../tools/var.c: In function 'variable_print_all':
../../tools/var.c:464:42: error: expected identifier before 'bool'
464 | fprintf (fp, "%s%s", vp->v.bool ? "" : "no", vp->name);
| ^~~~
../../tools/var.c: In function 'centfree_sethook':
../../tools/var.c:650:69: error: expected identifier before 'bool'
650 | return gdbmshell_setopt ("GDBM_SETCENTFREE", GDBM_SETCENTFREE, v->bool) == 0
| ^~~~
../../tools/var.c: In function 'coalesce_sethook':
../../tools/var.c:659:77: error: expected identifier before 'bool'
659 | return gdbmshell_setopt ("GDBM_SETCOALESCEBLKS", GDBM_SETCOALESCEBLKS, v->bool) == 0
| ^~~~
make[5]: *** [Makefile:576: var.o] Error 1
make[5]: *** Waiting for unfinished jobs....
../../tools/wordwrap.c: In function 'flush_line':
../../tools/wordwrap.c:298:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
298 | write (wf->fd, &c, 1);
| ^~~~~~~~~~~~~~~~~~~~~
make[5]: Leaving directory '/build/reproducible-path/gdbm-1.24/glibc-build/tools'
make[4]: *** [Makefile:425: all] Error 2
make[4]: Leaving directory '/build/reproducible-path/gdbm-1.24/glibc-build/tools'
make[3]: *** [Makefile:473: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/gdbm-1.24/glibc-build'
make[2]: *** [Makefile:405: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/gdbm-1.24/glibc-build'
dh_auto_build: error: cd glibc-build && make -j8 returned exit code 2
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/gdbm-1.24'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2