Package: src:checkpw Version: 1.02-5 Severity: important Tags: sid forky User: [email protected] 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/checkpw_1.02-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 [...] 13 | /*@null@*//*@out@*/char *alloc(n) | ^~~~~ alloc.c:15:1: error: number of arguments doesn’t match prototype 15 | { | ^ In file included from alloc.c:1: alloc.h:4:33: error: prototype declaration 4 | extern /*@null@*//*@out@*/char *alloc(); | ^~~~~ install.c:80:22: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types] 80 | buffer_init(&ssout,write,fdout,outbuf,sizeof outbuf); | ^~~~~ | | | ssize_t (*)(int, const void *, size_t) {aka long int (*)(int, const void *, long unsigned int)} buffer.h:18:34: note: expected ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} but argument is of type ‘ssize_t (*)(int, const void *, size_t)’ {aka ‘long int (*)(int, const void *, long unsigned int)’} 18 | extern void buffer_init(buffer *,ssize_t (*)(),int,char *,unsigned int); | ^~~~~~~~~~~~~ /usr/include/unistd.h:378:16: note: ‘write’ declared here 378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur | ^~~~~ alloc.c: In function ‘alloc_free’: alloc.c:24:6: warning: old-style function definition [-Wold-style-definition] 24 | void alloc_free(x) | ^~~~~~~~~~ alloc.c:26:1: error: number of arguments doesn’t match prototype 26 | { | ^ alloc.h:5:13: error: prototype declaration 5 | extern void alloc_free(); | ^~~~~~~~~~ install.c: In function ‘z’: install.c:103:6: warning: old-style function definition [-Wold-style-definition] 103 | void z(home,subdir,file,len,uid,gid,mode) | ^ install.c:122:22: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types] 122 | buffer_init(&ssout,write,fdout,outbuf,sizeof outbuf); | ^~~~~ | | | ssize_t (*)(int, const void *, size_t) {aka long int (*)(int, const void *, long unsigned int)} buffer.h:18:34: note: expected ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} but argument is of type ‘ssize_t (*)(int, const void *, size_t)’ {aka ‘long int (*)(int, const void *, long unsigned int)’} 18 | extern void buffer_init(buffer *,ssize_t (*)(),int,char *,unsigned int); | ^~~~~~~~~~~~~ /usr/include/unistd.h:378:16: note: ‘write’ declared here 378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur | ^~~~~ make[1]: *** [Makefile:329: alloc.o] Error 1 make[1]: *** [Makefile:388: install.o] Error 1 In file included from auto-str.c:1: buffer.h:14:61: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, const void *, size_t)’ {aka ‘long int (*)(int, const void *, long unsigned int)’} [-Wincompatible-pointer-types] 14 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) } | ^ auto-str.c:7:12: note: in expansion of macro ‘BUFFER_INIT’ 7 | buffer b = BUFFER_INIT(write,1,bspace,sizeof bspace); | ^~~~~~~~~~~ buffer.h:14:61: note: (near initialization for ‘b.op’) 14 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) } | ^ auto-str.c:7:12: note: in expansion of macro ‘BUFFER_INIT’ 7 | buffer b = BUFFER_INIT(write,1,bspace,sizeof bspace); | ^~~~~~~~~~~ In file included from readwrite.h:4, from auto-str.c:2: /usr/include/unistd.h:378:16: note: ‘write’ declared here 378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur | ^~~~~ make[1]: *** [Makefile:292: auto-str.o] Error 1 make[1]: Leaving directory '/build/reproducible-path/checkpw-1.02' 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

