Bug#1066564: gamazons: FTBFS: moves.c:100:10: error: implicit declaration of function =?UTF-8?Q?=E2=80=98countobst=E2=80=99; ?= did you mean ‘count_bits’? [-Werror=implicit-function-declaration]
Lucas Nussbaum
lucas at debian.org
Wed Mar 13 11:50:25 GMT 2024
Source: gamazons
Version: 0.83-11
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at 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.
More information about the Pkg-games-devel
mailing list