[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1066344: fastforward: FTBFS: slurpclose.c:13:44: error: implicit declaration of function ‘close’ [-Werror=implicit-function-declaration]



Source: fastforward
Version: 1:0.51-8
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> ( cat warn-auto.sh; \
> echo CC=\'`head -1 conf-cc`\'; \
> echo LD=\'`head -1 conf-ld`\' \
> ) > auto-ccld.sh
> nroff -man fastforward.1 > fastforward.0
> nroff -man printforward.1 > printforward.0
> nroff -man setforward.1 > setforward.0
> nroff -man newaliases.1 > newaliases.0
> nroff -man printmaillist.1 > printmaillist.0
> nroff -man setmaillist.1 > setmaillist.0
> nroff -man newinclude.1 > newinclude.0
> cat auto-ccld.sh make-load.sh > make-load
> cat auto-ccld.sh find-systype.sh > find-systype
> cat auto-ccld.sh make-compile.sh > make-compile
> cat auto-ccld.sh make-makelib.sh > make-makelib
> chmod 755 make-load
> chmod 755 find-systype
> chmod 755 make-compile
> chmod 755 make-makelib
> ./find-systype > systype
> ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
> ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
> compile
> ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
> makelib
> chmod 755 compile
> chmod 755 load
> chmod 755 makelib
> ./compile slurpclose.c
> ./compile coe.c
> ./compile auto-str.c
> ./compile substdio.c
> ./compile substdi.c
> ./compile substdo.c
> ./compile subfderr.c
> ./compile subfdouts.c
> auto-str.c:8:6: warning: conflicting types for built-in function ‘puts’; expected ‘int(const char *)’ [-Wbuiltin-declaration-mismatch]
>     8 | void puts(s)
>       |      ^~~~
> auto-str.c:4:1: note: ‘puts’ is declared in header ‘<stdio.h>’
>     3 | #include "exit.h"
>   +++ |+#include <stdio.h>
>     4 | 
> ./compile subfdins.c
> slurpclose.c: In function ‘slurpclose’:
> slurpclose.c:13:44: error: implicit declaration of function ‘close’ [-Werror=implicit-function-declaration]
>    13 |     if (!stralloc_readyplus(sa,bufsize)) { close(fd); return -1; }
>       |                                            ^~~~~
> ./compile substdio_copy.c
> ./compile error.c
> ./compile error_str.c
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:437: slurpclose.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/fastforward_0.51-8_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.


Reply to: