When trying to compile it I get the following error: ====================================================== if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -DKOBO_DATA_DIR=\""/usr/share/games/kobodeluxe"\" -DKOBO_SCORE_DIR=\""/var/games/kobodeluxe"\" -DKOBO_CONFIG_DIR=\""HOME>>"\" -DKOBO_CONFIG_FILE=\"".kobodlrc"\" -DSYSCONF_DIR=\""/etc/games"\" -Isound -Igraphics -Ieel -Idata -march=athlon64 -O2 -pipe -I/usr/include/SDL -D_REENTRANT -DHAVE_OPENGL -MT scenes.o -MD -MP -MF ".deps/scenes.Tpo" \ -c -o scenes.o `test -f 'scenes.cpp' || echo './'`scenes.cpp; \ then mv ".deps/scenes.Tpo" ".deps/scenes.Po"; \ else rm -f ".deps/scenes.Tpo"; exit 1; \ fi scenes.h:58: warning: non-local variable 'const _scene scene []' uses anonymous type scenes.h:56: warning: 'typedef const struct<anonymous> _scene' does not refer to the unqualified type, so it is not used for linkage gamestate.h:32: error: ISO C++ forbids declaration of 'gamestatemanager_t' with no type gamestate.h:32: error: expected ';' before '*' token make[2]: *** [manage.o] Error 1 make[2]: *** Waiting for unfinished jobs.... scenes.h:58: warning: non-local variable 'const _scene scene []' uses anonymous type scenes.h:56: warning: 'typedef const struct<anonymous> _scene' does not refer to the unqualified type, so it is not used for linkage make[2]: Leaving directory `/var/tmp/portage/kobodeluxe-0.4_pre10/work/KoboDeluxe-0.4pre10' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kobodeluxe-0.4_pre10/work/KoboDeluxe-0.4pre10' make: *** [all] Error 2 !!! ERROR: games-arcade/kobodeluxe-0.4_pre10 failed. Call stack: ebuild.sh, line 1933: Called dyn_compile ebuild.sh, line 971: Called src_compile !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. =======================================
I don't think this is related to amd64, I've just hit the same error on x86 while recompiling my system to gcc-4.1 (from 3.4). I will attach a patch which fixed it for me (not sure it is the "right" fix tho, i don't know much about C++, and this was more a lucky random shot). CCing gcc-porting@g.o since i think they are the ones for gcc-4 build fixes.
Created attachment 82555 [details, diff] kobodeluxe-0.4_pre10-gcc41.patch
Yup, that's fine. Have you sent this upstream?
(In reply to comment #3) > Have you sent this upstream? > Nope, but i will do it now. Thanks.
Fixed, thanks.