Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 409871

Summary: games-strategy/warmux-11.04.1 - In constructor ‘Action::Action(const char*, DistantComputer*)’: ./action/action.cpp:88:18: error: reinterpret_cast from type ‘const char*’ to type ‘Uint32* {aka unsigned int*}’ casts away qualifiers
Product: Gentoo Linux Reporter: Martin Jansa <Martin.Jansa>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: dirk, jorgeml
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: warmux-11.04.01-sdl-net.patch
Build log

Description Martin Jansa 2012-03-27 13:19:01 UTC
./action/action.cpp: In constructor ‘Action::Action(const char*, DistantComputer*)’:
./action/action.cpp:88:18: error: reinterpret_cast from type ‘const char*’ to type ‘Uint32* {aka unsigned int*}’ casts away qualifiers
make[3]: *** [action.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/tmp/tmpfs/portage/games-strategy/warmux-11.04.1/work/warmux-11.04/lib/warmux'

I'll attach simple patch to fix this, not sure if it is caused by newer sdl-net or gcc or even if the patch is correct, but at least it builds now.


Reproducible: Always
Comment 1 Martin Jansa 2012-03-27 13:19:34 UTC
Created attachment 306851 [details, diff]
warmux-11.04.01-sdl-net.patch
Comment 2 jorgeml 2012-04-14 16:42:25 UTC
Created attachment 308927 [details]
Build log

I have the same issue, I am attaching the build.log file.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2012-05-02 05:59:58 UTC
in portage.  I assume it fixes things for you since I'm using the stable gcc here.