Bug#286850: gnome-games: FTBFS (amd64/gcc-4.0): static declaration of 'game_server' follows non-static declaration

Andreas Jochens Andreas Jochens <aj@andaco.de>, 286850@bugs.debian.org
Wed, 22 Dec 2004 17:51:42 +0100


Package: gnome-games
Severity: normal
Tags: patch

When building 'gnome-games' on amd64 with gcc-4.0,
I get the following error:

 cc -DHAVE_CONFIG_H -I. -I. -I.. -DDATADIR=\"/usr/share\" -DGCONF_SCHEMA_CONFIG_SOURCE=\"xml::/etc/gconf/gconf.xml.defaults\" -Wall -Wmissing-prototypes -std=gnu89 -DXTHREADS -DORBIT2=1 -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/librsvg-2 -I../libgames-support -Wall -Wmissing-prototypes -g -Wall -O2 -MT games-network.lo -MD -MP -MF .deps/games-network.Tpo -c games-network.c  -fPIC -DPIC -o .libs/games-network.o
games-network.c:47: error: static declaration of 'game_server' follows non-static declaration
games-network.h:4: error: previous declaration of 'game_server' was here
make[3]: *** [games-network.lo] Error 1
make[3]: Leaving directory `/gnome-games-2.8.1/libgames-support'

With the attached patch 'gnome-games' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

?1;2cdiff -urN ../tmp-orig/gnome-games-2.8.1/libgames-support/games-network.h ./libgames-support/games-network.h
--- ../tmp-orig/gnome-games-2.8.1/libgames-support/games-network.h	2004-09-20 10:04:12.000000000 +0200
+++ ./libgames-support/games-network.h	2004-12-22 17:40:50.943855952 +0100
@@ -1,7 +1,6 @@
 #ifndef GAMES_NETWORK_H
 #define GAMES_NETWORK_H
 
-extern char *game_server;
 extern guint whose_turn;
 extern const char *player_name;
 extern const char *opponent_name;