Package: kobodeluxe
Version: 0.4pre10-1
Severity: normal
Tags: patch

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

if g++ -DHAVE_CONFIG_H -I. -I. -I. 
-DKOBO_DATA_DIR=\""/usr/share/games/kobo-deluxe"\" 
-DKOBO_SCORE_DIR=\""/var/games/kobo-deluxe/scores"\" 
-DKOBO_CONFIG_DIR=\""HOME>>"\" -DKOBO_CONFIG_FILE=\"".kobodlrc"\" 
-DSYSCONF_DIR=\""/etc"\" -Isound -Igraphics -Ieel -Idata     -g -O2 
-I/usr/include/SDL -D_REENTRANT -MT manage.o -MD -MP -MF ".deps/manage.Tpo" \
  -c -o manage.o `test -f 'manage.cpp' || echo './'`manage.cpp; \
then mv -f ".deps/manage.Tpo" ".deps/manage.Po"; \
else rm -f ".deps/manage.Tpo"; exit 1; \
fi
gamestate.h:32: error: ISO C++ forbids declaration of 'gamestatemanager_t' with 
no type
gamestate.h:32: error: expected ';' before '*' token
make[3]: *** [manage.o] Error 1
make[3]: Leaving directory `/kobodeluxe-0.4pre10'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/kobodeluxe-0.4pre10/gamestate.h ./gamestate.h
--- ../tmp-orig/kobodeluxe-0.4pre10/gamestate.h 2002-04-28 03:48:59.000000000 
+0200
+++ ./gamestate.h       2005-06-17 22:10:55.000000000 +0200
@@ -24,6 +24,8 @@
 
 #include "window.h"
 
+class gamestatemanager_t;
+
 class gamestate_t
 {
        friend class gamestatemanager_t;


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

Reply via email to