• Bug#1066564: gamazons: FTBFS: moves.c:100:10: error: implicit declarati

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:50:03 2024
    Source: gamazons
    Version: 0.83-11
    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):
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -I/usr/include/goocanvas-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/
    include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-
    gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -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 -c moves.c
    moves.c: In function ‘obst_heval’:
    moves.c:100:10: error: implicit declaration of function ‘countobst’; did you mean ‘count_bits’? [-Werror=implicit-function-declaration]
    100 | t1 = countobst(s);
    | ^~~~~~~~~
    | count_bits
    moves.c: In function ‘init_engine’:
    moves.c:1734:17: error: implicit declaration of function ‘create_hash’ [-Werror=implicit-function-declaration]
    1734 | state_hash = create_hash(s);
    | ^~~~~~~~~~~
    moves.c: In function ‘load_values_from_file’:
    moves.c:1810:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1810 | fscanf(rc_fd, "%d", &value);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1815:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1815 | fscanf(rc_fd, "%d", &value);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1820:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1820 | fscanf(rc_fd, "%d", &value);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1828:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1828 | fscanf(rc_fd, "%d", &value);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1836:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1836 | fscanf(rc_fd, "%d", &value);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1844:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1844 | fscanf(rc_fd, "%d", &value);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1852:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1852 | fscanf(rc_fd, "%d", &value);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1860:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1860 | fscanf(rc_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1865:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1865 | fscanf(rc_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1870:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1870 | fscanf(rc_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1875:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1875 | fscanf(rc_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1880:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1880 | fscanf(rc_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1885:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1885 | fscanf(rc_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:1890:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1890 | fscanf(rc_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c: In function ‘load_images_from_theme’:
    moves.c:2019:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    2019 | fscanf(theme_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:2025:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    2025 | fscanf(theme_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:2031:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    2031 | fscanf(theme_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:2037:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    2037 | fscanf(theme_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:2043:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    2043 | fscanf(theme_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    moves.c:2049:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    2049 | fscanf(theme_fd, "%s", buffer);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    bstate.c: In function ‘bstate_set_just_finished’:
    bstate.c:359:4: error: implicit declaration of function ‘update_status_bar’ [-Werror=implicit-function-declaration]
    359 | update_status_bar();
    | ^~~~~~~~~~~~~~~~~
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -I/usr/include/goocanvas-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/
    include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-
    gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -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 -c unit-test.c
    cc1: some warnings being treated as errors
    make[3]: *** [Makefile:290: bstate.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/gamazons_0.83-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=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)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Apr 21 18:00:01 2024
    This is a multi-part message in MIME format...

    Your message dated Sun, 21 Apr 2024 15:49:05 +0000
    with message-id <E1ryZRB-0002Cu-Ep@fasolo.debian.org>
    and subject line Bug#1066564: fixed in gamazons 0.83-12
    has caused the Debian Bug report #1066564,
    regarding gamazons: FTBFS: moves.c:100:10: error: implicit declaration of function ‘countobst’; did you mean ‘count_bits’? [-Werror=implicit-function-declaration]
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1066564: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066564
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 13 Mar 2024 12:45:15 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-106.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 28; hammy, 150; neutral, 206; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:108, 0.000-+--H*RT:311
    Return-path: <lucas@debian.org>
    Received: from stravinsky.debian.org ([2001:41b8:2