Source: wput
Version: 0.6.2+git20130413-11
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 -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wall -pedantic -Wall  -g -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include  
> -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ftp-ls.o ftp-ls.c
> In file included from /usr/include/string.h:535,
>                  from wput.h:42:
> In function ‘memcpy’,
>     inlined from ‘bar_update’ at progress.c:387:4:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: 
> ‘__builtin_memcpy’ accessing 92 bytes at offsets 32 and 36 overlaps 88 bytes 
> at offset 36 [-Wrestrict]
>    29 |   return __builtin___memcpy_chk (__dest, __src, __len,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    30 |                                  __glibc_objsize0 (__dest));
>       |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ftp-ls.c:49:
> ftp-ls.c: In function ‘ftp_parse_unix_ls’:
> wget.h:16:17: error: implicit declaration of function ‘strdup’ 
> [-Werror=implicit-function-declaration]
>    16 | #define xstrdup strdup
>       |                 ^~~~~~
> ftp-ls.c:319:36: note: in expansion of macro ‘xstrdup’
>   319 |                       cur.linkto = xstrdup (p + 4);
>       |                                    ^~~~~~~
> wget.h:16:17: warning: incompatible implicit declaration of built-in function 
> ‘strdup’ [-Wbuiltin-declaration-mismatch]
>    16 | #define xstrdup strdup
>       |                 ^~~~~~
> ftp-ls.c:319:36: note: in expansion of macro ‘xstrdup’
>   319 |                       cur.linkto = xstrdup (p + 4);
>       |                                    ^~~~~~~
> ftp-ls.c: In function ‘ftp_parse_winnt_ls’:
> wget.h:16:17: warning: incompatible implicit declaration of built-in function 
> ‘strdup’ [-Wbuiltin-declaration-mismatch]
>    16 | #define xstrdup strdup
>       |                 ^~~~~~
> ftp-ls.c:471:18: note: in expansion of macro ‘xstrdup’
>   471 |       cur.name = xstrdup(tok);
>       |                  ^~~~~~~
> ftp-ls.c: In function ‘ftp_parse_vms_ls’:
> wget.h:16:17: warning: incompatible implicit declaration of built-in function 
> ‘strdup’ [-Wbuiltin-declaration-mismatch]
>    16 | #define xstrdup strdup
>       |                 ^~~~~~
> ftp-ls.c:698:18: note: in expansion of macro ‘xstrdup’
>   698 |       cur.name = xstrdup(tok);
>       |                  ^~~~~~~
> ftplib.c: In function ‘ftp_do_chmod’:
> ftplib.c:625:36: warning: ‘%lo’ directive output may be truncated writing 
> between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=]
>   625 |                 snprintf(mode, 7, "%lo", (unsigned long) opt.chmod);
>       |                                    ^~~
> ftplib.c:625:35: note: directive argument in the range [0, 4294967295]
>   625 |                 snprintf(mode, 7, "%lo", (unsigned long) opt.chmod);
>       |                                   ^~~~~
> In file included from /usr/include/stdio.h:906,
>                  from wput.h:41,
>                  from utils.h:4,
>                  from ftplib.c:21:
> In function ‘snprintf’,
>     inlined from ‘ftp_do_chmod’ at ftplib.c:625:3:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: 
> ‘__builtin___snprintf_chk’ output between 2 and 12 bytes into a destination 
> of size 7
>    54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    55 |                                    __glibc_objsize (__s), __fmt,
>       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    56 |                                    __va_arg_pack ());
>       |                                    ~~~~~~~~~~~~~~~~~
> ftplib.c: In function ‘ftp_do_chmod’:
> ftplib.c:623:36: warning: ‘%lo’ directive output may be truncated writing 
> between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=]
>   623 |                 snprintf(mode, 7, "%lo", (unsigned long) 
> statbuf.st_mode);
>       |                                    ^~~
> ftplib.c:623:35: note: directive argument in the range [0, 4294967295]
>   623 |                 snprintf(mode, 7, "%lo", (unsigned long) 
> statbuf.st_mode);
>       |                                   ^~~~~
> In function ‘snprintf’,
>     inlined from ‘ftp_do_chmod’ at ftplib.c:623:3:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: 
> ‘__builtin___snprintf_chk’ output between 2 and 12 bytes into a destination 
> of size 7
>    54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    55 |                                    __glibc_objsize (__s), __fmt,
>       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    56 |                                    __va_arg_pack ());
>       |                                    ~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[2]: *** [<builtin>: ftp-ls.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/wput_0.6.2+git20130413-11_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