• Bug#1066349: ace-of-penguins: FTBFS: ./make-imglib.c:207:20: error: imp

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:00:07 2024
    Source: ace-of-penguins
    Version: 1.5~rc2-5
    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):
    /bin/bash ../libtool --tag=CC --mode=compile 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 -
    Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" -DPACKAGE_STRING=\"ace\ 1.4\" -DPACKAGE_BUGREPORT=\"\" -
    DPACKAGE_URL=\"\" -DPACKAGE=\"ace\" -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_
    UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c -o table_rn.lo table_rn.c
    ./make-imglib.c: In function ‘scan_image_directory’: ./make-imglib.c:61:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    61 | while (de = readdir(dir)) {
    | ^~
    ./make-imglib.c: In function ‘tokenize’:
    ./make-imglib.c:207:20: error: implicit declaration of function ‘isgraph’ [-Werror=implicit-function-declaration]
    207 | while (*next && !isgraph(*next)) next++;
    | ^~~~~~~
    ./make-imglib.c:10:1: note: include ‘<ctype.h>’ or provide a declaration of ‘isgraph’
    9 | #include <png.h>
    +++ |+#include <ctype.h>
    10 |
    ./make-imglib.c: In function ‘main’:
    ./make-imglib.c:240:15: warning: unused variable ‘down’ [-Wunused-variable]
    240 | int across, down;
    | ^~~~
    ./make-imglib.c:240:7: warning: unused variable ‘across’ [-Wunused-variable]
    240 | int across, down;
    | ^~~~~~
    ./make-imglib.c:236:13: warning: unused variable ‘o’ [-Wunused-variable]
    236 | int x, y, o;
    | ^
    ./make-imglib.c:236:10: warning: unused variable ‘y’ [-Wunused-variable]
    236 | int x, y, o;
    | ^
    ./make-imglib.c:236:7: warning: unused variable ‘x’ [-Wunused-variable]
    236 | int x, y, o;
    | ^
    libtool: compile: 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 -Wall -D_FILE_OFFSET_BITS=64 -
    Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
    -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_
    H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c table_rn.c -fPIC -DPIC -o .libs/table_rn.o
    libtool: compile: 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 -Wall -D_FILE_OFFSET_BITS=64 -
    Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
    -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_
    H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c xwin.c -fPIC -DPIC -o .libs/xwin.o
    libtool: compile: 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 -Wall -D_FILE_OFFSET_BITS=64 -
    Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
    -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_
    H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c help.c -fPIC -DPIC -o .libs/help.o
    libtool: compile: 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 -Wall -D_FILE_OFFSET_BITS=64 -
    Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
    -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_
    H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c imagelib.c -fPIC -DPIC -o .libs/imagelib.o
    libtool: compile: 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 -Wall -D_FILE_OFFSET_BITS=64 -
    Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
    -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_
    H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c table.c -fPIC -DPIC -o .libs/table.o
    /bin/bash ../libtool --tag=CC --mode=compile 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 -
    Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" -DPACKAGE_STRING=\"ace\ 1.4\" -DPACKAGE_BUGREPORT=\"\" -
    DPACKAGE_URL=\"\" -DPACKAGE=\"ace\" -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_
    UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c -o funcs.lo funcs.c
    libtool: compile: 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 -Wall -D_FILE_OFFSET_BITS=64 -
    Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
    -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_
    H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c stack.c -fPIC -DPIC -o .libs/stack.o
    imagelib.c: In function ‘alloc_synth_image’:
    imagelib.c:109:17: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
    109 | rv = (image *)malloc (sizeof(image));
    | ^~~~~~
    imagelib.c:5:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
    4 | #include "table.h"
    +++ |+#include <stdlib.h>
    5 |
    imagelib.c:109:17: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
    109 | rv = (image *)malloc (sizeof(image));
    | ^~~~~~
    imagelib.c:109:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
    imagelib.c: In function ‘register_imagelib’:
    imagelib.c:28:1: warning: control reaches end of non-void function [-Wreturn-type]
    28 | }
    | ^
    libtool: compile: 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 -Wall -D_FILE_OFFSET_BITS=64 -
    Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
    -DVERSION=\"1.4\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UTIME_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_
    H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UTIME_NULL=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -I. -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 -Wall -D_FILE_OFFSET_BITS=64 -c table_rn.c -o table_rn.o >/dev/null 2>&1
    help.c: In function ‘my_help_click’:
    help.c:337:43: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    337 | if (!w || ! (words[0].flags & HEADER) && x+mx > w->x+w->width+2*thin_space[MENU_FONT])
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    help.c: In function ‘help’:
    help.c:409:23: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    409 | || *cp == '>' && !isspace(cp[1])
    | ^
    help.c:410:25: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    410 | || isspace(*cp) && !isspace(cp[1]))
    | ^
    In file included from help.c:29:
    cards.h: At top level:
    cards.h:41:13: warning: ‘init’ declared ‘static’ but never defined [-Wunused-function]
    41 | static void init();
    | ^~~~
    cards.h:42:13: warning: ‘redraw’ declared ‘static’ but never defined [-Wunused-function]
    42 | static void redraw();
    | ^~~~~~
    cards.h:43:13: warning: ‘resize’ declared ‘static’ but never defined [-Wunused-function]
    43 | static void resize(int width, int height);
    | ^~~~~~
    cards.h:44:13: warning: ‘key’ declared ‘static’ but never defined [-Wunused-function]
    44 | static void key(int k, int x, int y);
    | ^~~
    cards.h:45:13: warning: ‘click’ declared ‘static’ but never defined [-Wunused-function]
    45 | static void click(int x, int y, int b);
    | ^~~~~
    cards.h:46:13: warning: ‘double_click’ declared ‘static’ but never defined [-Wunused-function]
    46 | static void double_click(int x, int y, int b);
    | ^~~~~~~~~~~~
    cards.h:47:13: warning: ‘drag’ declared ‘static’ but never defined [-Wunused-function]
    47 | static void drag(int x, int y, int b);
    | ^~~~
    cards.h:48:13: warning: ‘drop’ declared ‘static’ but never defined [-Wunused-function]
    48 | static void drop(int x, int y, int b);
    | ^~~~
    help.c: In function ‘help’:
    help.c:401:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    401 | fread(file, 1, st.st_size, f);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    stack.c: In function ‘stack_show_change’:
    stack.c:118:10: warning: unused variable ‘h’ [-Wunused-variable]
    118 | int w, h, num_cards;
    | ^
    table.c: In function ‘table_loop’:
    stack.c: In function ‘stack_set_card_size’:
    stack.c:223:13: warning: unused variable ‘t’ [-Wunused-variable]
    223 | int s, v, t;
    | ^
    table.c:340:5: warning: enumeration value ‘ev_none’ not handled in switch [-Wswitch]
    340 | switch (event.type)
    | ^~~~~~
    table.c: In function ‘clip_more’:
    table.c:511:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    511 | save[0] = (int)clip_saves;
    | ^
    table.c: In function ‘unclip’:
    table.c:544:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    544 | clip_saves = (int *)clip_saves[0];
    | ^
    table.c: In function ‘snap_one’:
    table.c:714:7: warning: unused variable ‘offset’ [-Wunused-variable]
    714 | int offset, dx;
    | ^~~~~~
    stack.c: In function ‘stack_continue_drag’:
    stack.c:700:28: warning: unused variable ‘new_h’ [-Wunused-variable]
    700 | int new_x, new_y, new_w, new_h;
    | ^~~~~
    stack.c:700:21: warning: unused variable ‘new_w’ [-Wunused-variable]
    700 | int new_x, new_y, new_w, new_h;
    | ^~~~~
    stack.c:700:14: warning: unused variable ‘new_y’ [-Wunused-variable]
    700 | int new_x, new_y, new_w, new_h;
    | ^~~~~
    stack.c:700:7: warning: unused variable ‘new_x’ [-Wunused-variable]
    700 | int new_x, new_y, new_w, new_h;
    | ^~~~~
    In file included from stack.c:42:
    cards.h: At top level:
    cards.h:41:13: warning: ‘init’ declared ‘static’ but never defined [-Wunused-function]
    41 | static void init();
    | ^~~~
    cards.h:42:13: warning: ‘redraw’ declared ‘static’ but never defined [-Wunused-function]
    42 | static void redraw();
    | ^~~~~~
    cards.h:43:13: warning: ‘resize’ declared ‘static’ but never defined [-Wunused-function]
    43 | static void resize(int width, int height);
    | ^~~~~~
    cards.h:44:13: warning: ‘key’ declared ‘static’ but never defined [-Wunused-function]
    44 | static void key(int k, int x, int y);
    | ^~~
    cards.h:45:13: warning: ‘click’ declared ‘static’ but never defined [-Wunused-function]
    45 | static void click(int x, int y, int b);
    | ^~~~~
    cards.h:46:13: warning: ‘double_click’ declared ‘static’ but never defined [-Wunused-function]
    46 | static void double_click(int x, int y, int b);
    | ^~~~~~~~~~~~
    cards.h:47:13: warning: ‘drag’ declared ‘static’ but never defined [-Wunused-function]
    47 | static void drag(int x, int y, int b);
    | ^~~~
    cards.h:48:13: warning: ‘drop’ declared ‘static’ but never defined [-Wunused-function]
    48 | static void drop(int x, int y, int b);
    | ^~~~
    table.c: In function ‘card_synth2’:
    table.c:767:27: warning: unused variable ‘w’ [-Wunused-variable]
    767 | int subw, subh, face_w, w;
    | ^
    table.c: In function ‘empty_synth’:
    table.c:923:15: warning: unused variable ‘img’ [-Wunused-variable]
    923 | image *rv, *img;
    | ^~~
    xwin.c: In function ‘xwin_init’:
    xwin.c:133:10: warning: unused variable ‘color’ [-Wunused-variable]
    133 | XColor color;
    | ^~~~~
    xwin.c: In function ‘xwin_fixed_size’:
    table.c: In function ‘back_synth’:
    xwin.c:324:19: warning: pointer targets in passing argument 7 of ‘XChangeProperty’ differ in signedness [-Wpointer-sign]
    324 | (char *)&mwm_hints, PROP_MWM_HINTS_ELEMENTS);
    | ^~~~~~~~~~~~~~~~~~
    | |
    | char *
    In file included from /usr/include/X11/Xlib.h:47,
    from xwin.c:26:
    /usr/include/X11/Xlib.h:2089:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
    2089 | _Xconst unsigned char* /* data */,
    | ^
    table.c:989:15: warning: unused variable ‘img’ [-Wunused-variable]
    989 | image *rv, *img;
    | ^~~
    In file included from table.c:34:
    cards.h: At top level:
    cards.h:41:13: warning: ‘init’ declared ‘static’ but never defined [-Wunused-function]
    41 | static void init();
    | ^~~~
    cards.h:42:13: warning: ‘redraw’ declared ‘static’ but never defined [-Wunused-function]
    42 | static void redraw();
    | ^~~~~~
    cards.h:43:13: warning: ‘resize’ declared ‘static’ but never defined [-Wunused-function]
    43 | static void resize(int width, int height);
    | ^~~~~~
    cards.h:44:13: warning: ‘key’ declared ‘static’ but never defined [-Wunused-function]
    44 | static void key(int k, int x, int y);
    | ^~~
    cards.h:45:13: warning: ‘click’ declared ‘static’ but never defined [-Wunused-function]
    45 | static void click(int x, int y, int b);
    | ^~~~~
    cards.h:46:13: warning: ‘double_click’ declared ‘static’ but never defined [-Wunused-function]
    46 | static void double_click(int x, int y, int b);
    | ^~~~~~~~~~~~
    cards.h:47:13: warning: ‘drag’ declared ‘static’ but never defined [-Wunused-function]
    47 | static void drag(int x, int y, int b);
    | ^~~~
    cards.h:48:13: warning: ‘drop’ declared ‘static’ but never defined [-Wunused-function]
    48 | static void drop(int x, int y, int b);
    | ^~~~
    xwin.c: In function ‘cvt_cpt’:
    xwin.c:735:15: warning: unused variable ‘bs’ [-Wunused-variable]
    735 | int rs, gs, bs, i, x, y;
    | ^~
    xwin.c:735:11: warning: unused variable ‘gs’ [-Wunused-variable]
    735 | int rs, gs, bs, i, x, y;
    | ^~
    xwin.c:735:7: warning: unused variable ‘rs’ [-Wunused-variable]
    735 | int rs, gs, bs, i, x, y;
    | ^~
    xwin.c: In function ‘cvt_gt’:
    xwin.c:780:15: warning: unused variable ‘bs’ [-Wunused-variable]
    780 | int rs, gs, bs, i, x, y;
    | ^~
    xwin.c:780:11: warning: unused variable ‘gs’ [-Wunused-variable]
    780 | int rs, gs, bs, i, x, y;
    | ^~
    xwin.c:780:7: warning: unused variable ‘rs’ [-Wunused-variable]
    780 | int rs, gs, bs, i, x, y;
    | ^~
    xwin.c: In function ‘build_image’:
    xwin.c:849:14: warning: pointer targets in assignment from ‘const unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign]
    849 | file_bytes = src->file_data;
    | ^
    xwin.c:903:16: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign]
    903 | ximage->data = (unsigned char *)malloc(ximage->bytes_per_line * (xrotate ? width : height));
    | ^
    xwin.c:916:19: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign]
    916 | xmask->data = (unsigned char *)malloc(xmask->bytes_per_line * (xrotate ? width : height));
    | ^
    xwin.c:961:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    961 | if (xmask) XDestroyImage (xmask); xmask = 0;
    | ^~
    cc1: some warnings being treated as errors
    xwin.c:961:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
    961 | if (xmask) XDestroyImage (xmask); xmask = 0;
    | ^~~~~
    xwin.c:816:28: warning: unused variable ‘num_trans’ [-Wunused-variable]
    816 | int i, number_of_passes, num_trans;
    | ^~~~~~~~~
    xwin.c: In function ‘put_image’:
    xwin.c:972:19: warning: variable ‘dh’ set but not used [-Wunused-but-set-variable]
    972 | int sw, sh, dw, dh;
    | ^~
    xwin.c:972:15: warning: variable ‘dw’ set but not used [-Wunused-but-set-variable]
    972 | int sw, sh, dw, dh;
    | ^~
    make[3]: *** [Makefile:481: imagelib.lo] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/ace-of-penguins_1.5~rc2-5_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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)