Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409871 - 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
Summary: games-strategy/warmux-11.04.1 - In constructor ‘Action::Action(const char*, D...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-03-27 13:19 UTC by Martin Jansa
Modified: 2012-05-02 05:59 UTC (History)
2 users (show)

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


Attachments
warmux-11.04.01-sdl-net.patch (warmux.patch,549 bytes, patch)
2012-03-27 13:19 UTC, Martin Jansa
Details | Diff
Build log (build.log,16.27 KB, text/plain)
2012-04-14 16:42 UTC, jorgeml
Details

Note You need to log in before you can comment on or make changes to this bug.
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.