Source: xbill
Version: 2.1-9
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):
> x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I. -c OS.c -o OS.o
> Game.c: In function ‘parse_args’:
> Game.c:258:21: error: implicit declaration of function ‘strncasecmp’ 
> [-Werror=implicit-function-declaration]
>   258 |                 if (strncasecmp(argv[i], "-l", 2) == 0) {
>       |                     ^~~~~~~~~~~
> Game.c:258:48: warning: ‘strncasecmp’ argument 3 type is ‘int’ where ‘long 
> unsigned int’ is expected in a call to built-in function declared without 
> prototype [-Wbuiltin-declaration-mismatch]
>   258 |                 if (strncasecmp(argv[i], "-l", 2) == 0) {
>       |                                                ^
> <built-in>: note: built-in ‘strncasecmp’ declared here
> x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I. -DSCOREFILE=\"/var/games/xbill.scores\" 
> -c Scorelist.c -o Scorelist.o
> x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I. -c Spark.c -o Spark.o
> Scorelist.c: In function ‘Scorelist_read’:
> Scorelist.c:26:25: warning: ignoring return value of ‘fscanf’ declared with 
> attribute ‘warn_unused_result’ [-Wunused-result]
>    26 |                         fscanf(scorefile, "%20s%d%d\n", 
> scores[i].name,
>       |                         
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    27 |                                &scores[i].level, &scores[i].score);
>       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I. -c UI.c -o UI.o
> x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I. -c util.c -o util.o
> x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I.  -c x11-athena.c -o x11-athena.o
> x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I.  -DIMAGES=\"/usr/share/xbill\" -c x11.c 
> -o x11.o
> Scorelist.c: In function ‘Scorelist_update’:
> Scorelist.c:88:25: warning: ‘%-*s’ directive writing 20 bytes into a region 
> of size between 1 and 500 [-Wformat-overflow=]
>    88 |         sprintf(str, "%s%-*s %6s %7s\n", str, NAMELEN,
>       |                         ^~~~
>    89 |                 "Name", "Level", "Score");
>       |                 ~~~~~~   
> In file included from /usr/include/stdio.h:906,
>                  from Scorelist.c:1:
> In function ‘sprintf’,
>     inlined from ‘Scorelist_update’ at Scorelist.c:88:2:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
> ‘__builtin___sprintf_chk’ output between 37 and 536 bytes into a destination 
> of size 500
>    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    31 |                                   __glibc_objsize (__s), __fmt,
>       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    32 |                                   __va_arg_pack ());
>       |                                   ~~~~~~~~~~~~~~~~~
> Scorelist.c: In function ‘Scorelist_update’:
> Scorelist.c:91:33: warning: ‘%-*s’ directive writing between 20 and 319 bytes 
> into a region of size between 1 and 500 [-Wformat-overflow=]
>    91 |                 sprintf(str, "%s%-*s %6d %7d\n", str, NAMELEN,
>       |                                 ^~~~
> In function ‘sprintf’,
>     inlined from ‘Scorelist_update’ at Scorelist.c:91:3:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: 
> ‘__builtin___sprintf_chk’ output between 37 and 844 bytes into a destination 
> of size 500
>    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    31 |                                   __glibc_objsize (__s), __fmt,
>       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    32 |                                   __va_arg_pack ());
>       |                                   ~~~~~~~~~~~~~~~~~
> UI.c: In function ‘UI_initialize’:
> UI.c:91:29: error: implicit declaration of function ‘strcasecmp’ 
> [-Werror=implicit-function-declaration]
>    91 |                         if (strcasecmp(gui, map->name) == 0)
>       |                             ^~~~~~~~~~
> x11-athena.c: In function ‘popup’:
> x11-athena.c:34:33: warning: cast from pointer to integer of different size 
> [-Wpointer-to-int-cast]
>    34 |         x11_athena_popup_dialog((int)client_data);
>       |                                 ^
> x11-athena.c: In function ‘new_menu_item’:
> x11-athena.c:42:54: warning: cast to pointer from integer of different size 
> [-Wint-to-pointer-cast]
>    42 |         XtAddCallback(menu_item, XtNcallback, popup, (void *) dialog);
>       |                                                      ^
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:66: Game.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/xbill_2.1-9_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