Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126015 - games-arcade/kobodeluxe-0.4_pre10 fails to build with gcc4.x
Summary: games-arcade/kobodeluxe-0.4_pre10 fails to build with gcc4.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-12 21:05 UTC by Gustavo Ribeiro Alves
Modified: 2006-04-13 21:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kobodeluxe-0.4_pre10-gcc41.patch (kobodeluxe-0.4_pre10-gcc41.patch,278 bytes, patch)
2006-03-19 07:19 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Ribeiro Alves 2006-03-12 21:05:11 UTC
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.
=======================================
Comment 1 TGL 2006-03-19 07:18:41 UTC
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.
Comment 2 TGL 2006-03-19 07:19:02 UTC
Created attachment 82555 [details, diff]
kobodeluxe-0.4_pre10-gcc41.patch
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2006-03-19 12:01:07 UTC
Yup, that's fine.  Have you sent this upstream?
Comment 4 TGL 2006-03-19 12:18:54 UTC
(In reply to comment #3)
> Have you sent this upstream?
> 

Nope, but i will do it now.
Thanks.
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2006-04-13 21:02:43 UTC
Fixed, thanks.