Package: src:checkpw
Version: 1.02-4
Severity: important
Tags: sid trixie
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/checkpw_1.02-4_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

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-14/porting_to.html

[...]
  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:16:34: note: expected ‘int (*)()’ but argument is of type ‘ssize_t 
(*)(int,  const void *, size_t)’ {aka ‘long int (*)(int,  const void *, long 
unsigned int)’}
   16 | extern void buffer_init(buffer *,int (*)(),int,char *,unsigned int);
      |                                  ^~~~~~~~~
install.c: At top level:
install.c:141:1: error: return type defaults to ‘int’ [-Wimplicit-int]
  141 | main()
      | ^~~~
make[1]: *** [Makefile:388: install.o] Error 1
make[1]: *** Waiting for unfinished jobs....
hier.c: In function ‘hier’:
hier.c:7:5: warning: passing argument 1 of ‘c’ discards ‘const’ qualifier from 
pointer target type [-Wdiscarded-qualifiers]
    7 |   c(auto_home,"bin","checkpw",-1,-1,0700);
      |     ^~~~~~~~~
hier.c:3:21: note: expected ‘char *’ but argument is of type ‘const char *’
    3 | extern void c(char *home, char *subdir, char *file, int uid, int gid, 
int mode);
      |               ~~~~~~^~~~
hier.c:8:5: warning: passing argument 1 of ‘c’ discards ‘const’ qualifier from 
pointer target type [-Wdiscarded-qualifiers]
    8 |   c(auto_home,"bin","checkapoppw",-1,-1,0700);
      |     ^~~~~~~~~
hier.c:3:21: note: expected ‘char *’ but argument is of type ‘const char *’
    3 | extern void c(char *home, char *subdir, char *file, int uid, int gid, 
int mode);
      |               ~~~~~~^~~~
hier.c:9:5: warning: passing argument 1 of ‘c’ discards ‘const’ qualifier from 
pointer target type [-Wdiscarded-qualifiers]
    9 |   c(auto_home,"bin","selectcheckpw",-1,-1,0700);
      |     ^~~~~~~~~
hier.c:3:21: note: expected ‘char *’ but argument is of type ‘const char *’
    3 | extern void c(char *home, char *subdir, char *file, int uid, int gid, 
int mode);
      |               ~~~~~~^~~~
hier.c:10:5: warning: passing argument 1 of ‘c’ discards ‘const’ qualifier from 
pointer target type [-Wdiscarded-qualifiers]
   10 |   c(auto_home,"bin","loginlog",-1,-1,0755);
      |     ^~~~~~~~~
hier.c:3:21: note: expected ‘char *’ but argument is of type ‘const char *’
    3 | extern void c(char *home, char *subdir, char *file, int uid, int gid, 
int mode);
      |               ~~~~~~^~~~
In file included from auto-str.c:1:
buffer.h:12:61: error: initialization of ‘int (*)()’ from incompatible pointer 
type ‘ssize_t (*)(int,  const void *, size_t)’ {aka ‘long int (*)(int,  const 
void *, long unsigned int)’} [-Wincompatible-pointer-types]
   12 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
      |                                                             ^
auto-str.c:6:12: note: in expansion of macro ‘BUFFER_INIT’
    6 | buffer b = BUFFER_INIT(write,1,bspace,sizeof bspace);
      |            ^~~~~~~~~~~
buffer.h:12:61: note: (near initialization for ‘b.op’)
   12 | #define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
      |                                                             ^
auto-str.c:6:12: note: in expansion of macro ‘BUFFER_INIT’
    6 | buffer b = BUFFER_INIT(write,1,bspace,sizeof bspace);
      |            ^~~~~~~~~~~
auto-str.c:8:6: warning: conflicting types for built-in function ‘puts’; 
expected ‘int(const char *)’ [-Wbuiltin-declaration-mismatch]
    8 | void puts(char *s)
      |      ^~~~
auto-str.c:4:1: note: ‘puts’ is declared in header ‘<stdio.h>’
    3 | #include "exit.h"
  +++ |+#include <stdio.h>
    4 | 
auto-str.c:13:1: error: return type defaults to ‘int’ [-Wimplicit-int]
   13 | main(int argc,char **argv)
      | ^~~~
make[1]: *** [Makefile:292: auto-str.o] Error 1
instcheck.c:104:1: error: return type defaults to ‘int’ [-Wimplicit-int]
  104 | main()
      | ^~~~
make[1]: *** [Makefile:155: instcheck.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
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

Reply via email to