[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/readline_8.2-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
[...]
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
/usr/bin/make -C /build/reproducible-path/readline-8.2/build/examples/rlfe \
CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/readline-8.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/ncursesw -Wno-implicit-int -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -D_GNU_SOURCE" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" \
LDFLAGS="-Wl,-z,relro -g -L/build/reproducible-path/readline-8.2/build/shlib" \
LIBS="-lreadline -ltinfo -lutil" rlfe
make[1]: Entering directory '/build/reproducible-path/readline-8.2/build/examples/rlfe'
x86_64-linux-gnu-gcc -c -I. -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/readline-8.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/ncursesw -Wno-implicit-int -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -D_GNU_SOURCE rlfe.c
rlfe.c: In function ‘get_slave_pty’:
rlfe.c:216:4: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
216 | chown(name, getuid(), gid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
rlfe.c: In function ‘main’:
rlfe.c:655:15: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
655 | write (out_to_inferior_fd, ch, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rlfe.c:693:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
693 | write (1, "\r", 1);
| ^~~~~~~~~~~~~~~~~~
rlfe.c:736:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
736 | write (1, buf + buf_count, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rlfe.c: In function ‘line_handler’:
rlfe.c:308:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
308 | write (out_to_inferior_fd, buf, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rlfe.c:345:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
345 | write (out_to_inferior_fd, line, length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rlfe.c:348:11: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
348 | write (out_to_inferior_fd, enter, sizeof(enter)-1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rlfe.c:359:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
359 | write (out_to_inferior_fd, &pending_special_char, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -c -I. -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/readline-8.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/ncursesw -Wno-implicit-int -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -D_GNU_SOURCE pty.c
pty.c: In function ‘initmaster’:
pty.c:117:1: warning: old-style function definition [-Wold-style-definition]
117 | initmaster(f)
| ^~~~~~~~~~
pty.c: In function ‘InitPTY’:
pty.c:133:1: warning: old-style function definition [-Wold-style-definition]
133 | InitPTY(f)
| ^~~~~~~
pty.c: In function ‘OpenPTY’:
pty.c:250:1: warning: old-style function definition [-Wold-style-definition]
250 | OpenPTY(ttyn)
| ^~~~~~~
pty.c:274:12: error: too many arguments to function ‘ptsname’; expected 0, have 1
274 | if ((m = ptsname(f)) == NULL || grantpt(f) || unlockpt(f))
| ^~~~~~~ ~
pty.c:254:13: note: declared here
254 | char *m, *ptsname();
| ^~~~~~~
make[1]: *** [Makefile:58: pty.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/readline-8.2/build/examples/rlfe'
make: *** [debian/rules:215: build-rlfe-stamp] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2