Package: crossfire-client
Severity: normal
Tags: patch
When building 'crossfire-client' on amd64 with gcc-4.0,
I get the following error:
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I../pixmaps
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-DDATADIR=\"/usr/share\" -DBINDIR=\"/usr/games\" -g -Wall -O2 -MT
gcfclient-config.o -MD -MP -MF ".deps/gcfclient-config.Tpo" -c -o
gcfclient-config.o `test -f 'config.c' || echo './'`config.c; \
then mv -f ".deps/gcfclient-config.Tpo" ".deps/gcfclient-config.Po"; else rm -f
".deps/gcfclient-config.Tpo"; exit 1; fi
config.c:120: error: static declaration of 'gtkwin_config' follows non-static
declaration
gx11.h:66: error: previous declaration of 'gtkwin_config' was here
make[3]: *** [gcfclient-config.o] Error 1
make[3]: Leaving directory `/crossfire-client-1.7.0/gtk'
With the attached patch 'crossfire-client' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/crossfire-client-1.7.0/gtk/config.c ./gtk/config.c
--- ../tmp-orig/crossfire-client-1.7.0/gtk/config.c 2004-04-19
08:35:11.000000000 +0200
+++ ./gtk/config.c 2005-03-07 16:38:06.582593724 +0100
@@ -117,6 +117,7 @@
char *label;
} CButtons;
+#define gtkwin_config gtkwin_config_local
static GtkWidget *gtkwin_config = NULL, /* main window */
*faceset_combo; /* Combo box for faceset selection
*/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]