Bug#1066198: gbatnav: FTBFS: gbnserver.c:411:24: error: implicit declaration of function ‘net_listen’ [-Werror=implicit-function-declaration]
Fixed. Patch as attachment. Description: Fix FTBFS due to -Werror=implicit-function-declaration Bug-Debian: https://bugs.debian.org/1066198 Author: Ying-Chun Liu (PaulLiu) Last-Update: 2024-03-25 Index: gbatnav-1.0.4cvs20051004/gbnserver/gbnserver.c === --- gbatnav-1.0.4cvs20051004.orig/gbnserver/gbnserver.c +++ gbatnav-1.0.4cvs20051004/gbnserver/gbnserver.c @@ -44,6 +44,7 @@ #include "bnwrite.h" #include "batnavggz.h" #include "common.h" +#include "net.h" struct st_datos usuario; Index: gbatnav-1.0.4cvs20051004/gbnclient/sendmsg.c === --- gbatnav-1.0.4cvs20051004.orig/gbnclient/sendmsg.c +++ gbatnav-1.0.4cvs20051004/gbnclient/sendmsg.c @@ -6,6 +6,7 @@ #include "pantalla.h" #include "gbnclient.h" #include "bnwrite.h" +#include "net.h" void inputline_return(GtkWidget *w, gpointer data) { Index: gbatnav-1.0.4cvs20051004/gbnclient/gbnclient.c === --- gbatnav-1.0.4cvs20051004.orig/gbnclient/gbnclient.c +++ gbatnav-1.0.4cvs20051004/gbnclient/gbnclient.c @@ -39,6 +39,8 @@ #include "bnwrite.h" #include "version.h" #include "g_connect.h" +#include "common.h" +#include "net.h" struct usuario usuario; GSettings *settings; OpenPGP_0x44173FA13D05.asc Description: OpenPGP public key OpenPGP_signature.asc Description: OpenPGP digital signature
Bug#1066198: gbatnav: FTBFS: gbnserver.c:411:24: error: implicit declaration of function ‘net_listen’ [-Werror=implicit-function-declaration]
Source: gbatnav Version: 1.0.4cvs20051004-6 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 -DHAVE_CONFIG_H -I. -I.. -I./../common -I./../intl > -DGNOMELOCALEDIR=\""/usr/share/locale"\" -I/usr/include > -I./../gbnclient/pixmaps -DBINDIR=\"/usr/games\" -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=/<>=. -fstack-protector-strong > -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c > -o batnavggz.o batnavggz.c > /usr/lib/x86_64-linux-gnu/glib-2.0/glib-compile-schemas --strict --dry-run > --schema-file=net.sf.batnav.gbnserver.gschema.xml && mkdir -p . && touch > net.sf.batnav.gbnserver.gschema.valid > gbnserver.c: In function ‘main_loop’: > gbnserver.c:411:24: error: implicit declaration of function ‘net_listen’ > [-Werror=implicit-function-declaration] > 411 | usuario.sock = net_listen(usuario.server_name,usuario.port); > |^~ > cc1: some warnings being treated as errors > make[3]: *** [Makefile:537: gbnserver.o] Error 1 The full build log is available from: http://qa-logs.debian.net/2024/03/13/gbatnav_1.0.4cvs20051004-6_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=ign=7=7=only=ftbfs-20240313=lu...@debian.org=1=1=1=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.