Source: kbuild
Version: 1:0.1.9998svn3589+dfsg-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@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):
> gcc -DHAVE_CONFIG_H -I. -I/<<PKGBUILDDIR>>/src/sed/lib -I..  
> -I/<<PKGBUILDDIR>>/src/sed/lib -I/<<PKGBUILDDIR>>/src/sed/intl 
> -I/<<PKGBUILDDIR>>/src/sed -I../lib -I../intl -Wdate-time -D_FORTIFY_SOURCE=2 
>  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MT 
> utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o 
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c: In function ‘panic’:
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:107:75: error: implicit declaration of 
> function ‘strerror’; did you mean ‘perror’? 
> [-Werror=implicit-function-declaration]
>   107 |             fprintf (stderr, _("cannot remove %s: %s"), 
> open_files->name, strerror (errno));
>       |                                                                       
>     ^~~~~~~~
>       |                                                                       
>     perror
> In file included from /<<PKGBUILDDIR>>/src/sed/lib/utils.h:21,
>                  from /<<PKGBUILDDIR>>/src/sed/lib/utils.c:42:
> /<<PKGBUILDDIR>>/src/sed/basicdefs.h:70:25: warning: format ‘%s’ expects 
> argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
>    70 | # define gettext(msgid) (msgid)
>       |                         ^~~~~~~
> /<<PKGBUILDDIR>>/src/sed/basicdefs.h:73:19: note: in expansion of macro 
> ‘gettext’
>    73 | #define _(String) gettext(String)
>       |                   ^~~~~~~
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:107:30: note: in expansion of macro ‘_’
>   107 |             fprintf (stderr, _("cannot remove %s: %s"), 
> open_files->name, strerror (errno));
>       |                              ^
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c: In function ‘ck_mkstemp’:
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:200:23: error: implicit declaration of 
> function ‘strlen’ [-Werror=implicit-function-declaration]
>   200 |   template = xmalloc (strlen (tmpdir) + strlen (base) + 8);
>       |                       ^~~~~~
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:76:1: note: include ‘<string.h>’ or 
> provide a declaration of ‘strlen’
>    75 | # include <stdarg.h>
>   +++ |+#include <string.h>
>    76 | # define VSTART(l,a)    va_start(l, a)
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:200:23: warning: incompatible implicit 
> declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
>   200 |   template = xmalloc (strlen (tmpdir) + strlen (base) + 8);
>       |                       ^~~~~~
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:200:23: note: include ‘<string.h>’ or 
> provide a declaration of ‘strlen’
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c: In function ‘ck_strdup’:
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:401:22: warning: incompatible implicit 
> declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
>   401 |   char *ret = MALLOC(strlen(str)+1, char);
>       |                      ^~~~~~
> /<<PKGBUILDDIR>>/src/sed/basicdefs.h:123:48: note: in definition of macro 
> ‘MALLOC’
>   123 | #define MALLOC(n,t)      (VCAST(t *)ck_malloc((n)*sizeof(t)))
>       |                                                ^
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:401:22: note: include ‘<string.h>’ or 
> provide a declaration of ‘strlen’
>   401 |   char *ret = MALLOC(strlen(str)+1, char);
>       |                      ^~~~~~
> /<<PKGBUILDDIR>>/src/sed/basicdefs.h:123:48: note: in definition of macro 
> ‘MALLOC’
>   123 | #define MALLOC(n,t)      (VCAST(t *)ck_malloc((n)*sizeof(t)))
>       |                                                ^
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:402:10: error: implicit declaration of 
> function ‘strcpy’ [-Werror=implicit-function-declaration]
>   402 |   return strcpy(ret, str);
>       |          ^~~~~~
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:402:10: note: include ‘<string.h>’ or 
> provide a declaration of ‘strcpy’
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:402:10: warning: incompatible implicit 
> declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:402:10: note: include ‘<string.h>’ or 
> provide a declaration of ‘strcpy’
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c: In function ‘ck_memdup’:
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:412:10: error: implicit declaration of 
> function ‘memcpy’ [-Werror=implicit-function-declaration]
>   412 |   return memcpy(ret, buf, len);
>       |          ^~~~~~
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:412:10: note: include ‘<string.h>’ or 
> provide a declaration of ‘memcpy’
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:412:10: warning: incompatible implicit 
> declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:412:10: note: include ‘<string.h>’ or 
> provide a declaration of ‘memcpy’
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c: In function ‘add_buffer’:
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:493:12: warning: incompatible implicit 
> declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
>   493 |   result = memcpy(b->b + b->length, p, n);
>       |            ^~~~~~
> /<<PKGBUILDDIR>>/src/sed/lib/utils.c:493:12: note: include ‘<string.h>’ or 
> provide a declaration of ‘memcpy’
> cc1: some warnings being treated as errors
> make[5]: *** [Makefile:418: utils.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/kbuild_0.1.9998svn3589+dfsg-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lu...@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 via email to