Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41235 - clanlib-0.7.7 wont compile without a patch i give
Summary: clanlib-0.7.7 wont compile without a patch i give
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 05:02 UTC by Roman Glebov
Modified: 2004-02-11 17:33 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Glebov 2004-02-11 05:02:12 UTC
When you try to compile the clanlib you get an error, that one cast is set wrongly, and then it wont compile. I corrected this cast and put it into the patch.
///////////////////////////////---------patch------------\\\\\\\\\\\\\\\

diff -r -u ClanLib-0.7.7/Sources/GL/opengl_state_generic.cpp ClanLib-0.7.7-changed/Sources/GL/opengl_state_generic.cpp
--- ClanLib-0.7.7/Sources/GL/opengl_state_generic.cpp   2004-01-09 17:58:54.000000000 +0100
+++ ClanLib-0.7.7-changed/Sources/GL/opengl_state_generic.cpp   2004-02-11 13:35:30.670299240 +0100
@@ -518,7 +518,7 @@
        functions->drawElements = &glDrawElements;
        functions->drawPixels = &glDrawPixels;
        functions->edgeFlag = &glEdgeFlag;
-       functions->edgeFlagPointer = &glEdgeFlagPointer;
+       functions->edgeFlagPointer = ( void (*)(int, const CLvoid*) )&glEdgeFlagPointer;
        functions->edgeFlagv = &glEdgeFlagv;
        functions->enable = &glEnable;
        functions->enableClientState = &glEnableClientState;

//////////////////////////////-----------end--------------\\\\\\\\\\\\\\\

Reproducible: Always
Steps to Reproduce:
1.emerge clanlib0.7.7 and you get it (with gcc 3.2.3)
2.
3.

Actual Results:  
won't merge	 

Expected Results:  
merges 

It would be good, to include this patch into the ebuild.The developers of 
clanlib wont bring new release only cause of this tiny problem.
Comment 1 Roman Glebov 2004-02-11 05:02:52 UTC
the ebuild is in /usr/portage/dev-games/clanlib
Comment 2 SpanKY gentoo-dev 2004-02-11 17:33:16 UTC
make sure your portage tree is up-to-date, i already patched this sometime ago