Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136587 - clanlib-0.6.5-r3 fails to compile after recent change wrt Lua
Summary: clanlib-0.6.5-r3 fails to compile after recent change wrt Lua
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: PMASKED
Depends on:
Blocks:
 
Reported: 2006-06-12 15:26 UTC by trefoil
Modified: 2006-09-11 15:47 UTC (History)
3 users (show)

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 trefoil 2006-06-12 15:26:37 UTC
The recent change to clanlib-0.6.5-r3 (bug 135289) broke compiling of this package on my system.

[ebuild  N    ] dev-games/clanlib-0.6.5-r3  USE="X alsa arts joystick jpeg lua mikmod opengl oss png truetype vorbis -directfb -esd" 0 kB

fails as follows:
<snip ~3000 lines of the same>
Sources/Lua/clanbindings.cpp:3270: error: `tolua_function' was not declared in this scope
Sources/Lua/clanbindings.cpp:3483: error: `tolua_tablevar' was not declared in this scope
Sources/Lua/clanbindings.cpp:3265: warning: unused variable 'tolua_open'
Sources/Lua/clanbindings.cpp: In function `void tolua_clanbindings_close(lua_State*)':
Sources/Lua/clanbindings.cpp:3499: error: `void tolua_clanbindings_close(lua_State*)' redeclared as different kind of symbol
Sources/Lua/clanbindings.cpp:10: error: previous declaration of `int tolua_clanbindings_close'
Sources/Lua/clanbindings.cpp:10: error: previous non-function declaration `int tolua_clanbindings_close'
Sources/Lua/clanbindings.cpp:3499: error: conflicts with function declaration `void tolua_clanbindings_close(lua_State*)'
make: *** [Libs/Intermediate/clanbindings.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-games/clanlib-0.6.5-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  clanlib-0.6.5-r3.ebuild, line 82:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

I noticed that the configure script seems to be looking for Lua 4 specifically. Compiling with -lua works fine.

It's annoying that "equery depends clanlib" shows me nothing, and this package continually shows up in emerge --depclean (it is in fact depended upon by Pingus), but I suppose that's got to be a well-known bug.
Comment 1 Jouni Rinne 2006-07-27 01:34:11 UTC
Same problem here, clanlib-0.6.5-r3 doesn't (re)compile with lua (using dev-lang/lua-5.0.2). With USE="-lua" everything's OK.
Comment 2 azuriel 2006-08-09 17:32:58 UTC
Same problem here, USE="-lua" fixed it.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2006-09-03 18:44:24 UTC
clanlib-0.6 and users of it have been masked for removal.
Comment 4 trefoil 2006-09-04 09:52:37 UTC
Is this bug the only reason it's being removed? The fix is to depend on Lua v4 if the lua use flag is used. I believe Lua is slotted so this isn't a problem. Pingus and Trophy are both fairly fun - it would be nice if they could stay in the tree.
Comment 5 SpanKY gentoo-dev 2006-09-04 12:55:25 UTC
search bugzilla and you'll find many others

clanlib-0.6 has been dead for a long time now and the problems just continue to compond on it

post a patch to the ebuild for this issue and i'll merge it

also, we have to hack the shit out of it to SLOT which i detest having done
Comment 6 trefoil 2006-09-04 13:47:02 UTC
I can fix this minor bug, but not compiling with GCC 4.1, which is the greater problem I wasn't aware of. Upstream doesn't have any patches, and I can't fix it, so I withdraw my objection.
Comment 7 Marek Wróbel 2006-09-10 09:21:38 UTC
SpanKY: look at bug #146849. Pacho Ramos has submitted patches taken from Mandriva. They work really good.

Regards,
Marek Wr
Comment 8 Marek Wróbel 2006-09-10 09:21:38 UTC
SpanKY: look at bug #146849. Pacho Ramos has submitted patches taken from Mandriva. They work really good.

Regards,
Marek Wróbel
Comment 9 Tupone Alfredo gentoo-dev 2006-09-11 15:47:33 UTC
I have removed the lua flag. Compiling on x86 with gcc-4 gives me no problem.
The package is unmasked now, and so games-puzzle/pingus.