Package: gtkballs
Severity: normal
Tags: patch

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

if x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl   -g -O2 -DXTHREADS 
-I/usr/include/gtk-2.0 -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   -DDATADIR=\"/usr/share\" 
-DLOCALSTATEDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" -g -O2 -MT 
gtkballs.o -MD -MP -MF ".deps/gtkballs.Tpo" \
  -c -o gtkballs.o `test -f 'gtkballs.c' || echo './'`gtkballs.c; \
then mv -f ".deps/gtkballs.Tpo" ".deps/gtkballs.Po"; \
else rm -f ".deps/gtkballs.Tpo"; exit 1; \
fi
In file included from gtkballs.c:33:
gtkballs.h:62: error: array type has incomplete element type
make[3]: *** [gtkballs.o] Error 1
make[3]: Leaving directory `/gtkballs-3.0.1/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/gtkballs-3.0.1/src/gtkballs.h ./src/gtkballs.h
--- ../tmp-orig/gtkballs-3.0.1/src/gtkballs.h   2002-08-22 15:37:27.000000000 
+0200
+++ ./src/gtkballs.h    2005-03-17 19:10:56.404200950 +0100
@@ -59,7 +59,6 @@
 extern gint *NextColors;
 extern gint *NextColorsUndo;
 
-extern struct score_board Scoreboard[10];
 extern struct score_board_full *FullScoreboard;
 extern gint FullScoreboardNumber;
 
diff -urN ../tmp-orig/gtkballs-3.0.1/src/interface.c ./src/interface.c
--- ../tmp-orig/gtkballs-3.0.1/src/interface.c  2002-04-02 16:34:12.000000000 
+0200
+++ ./src/interface.c   2005-03-17 19:10:49.723480312 +0100
@@ -39,6 +39,8 @@
 #include "preferences.h"
 #include "gfx.h"
 
+extern struct score_board Scoreboard[10];
+
 static GtkWidget *dialog       = NULL;
 static gint      saved_score   = 0;
 static gchar    *user_name     = NULL;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to