<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>136587</bug_id>
          
          <creation_ts>2006-06-12 15:26 0000</creation_ts>
          <short_desc>clanlib-0.6.5-r3 fails to compile after recent change wrt Lua</short_desc>
          <delta_ts>2006-09-11 15:47:33 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>PMASKED</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@altkai.ml1.net</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>azuriel@gmail.com</cc>
    
    <cc>mal@komcept.com</cc>
    
    <cc>nyhm@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@altkai.ml1.net</who>
            <bug_when>2006-06-12 15:26:37 0000</bug_when>
            <thetext>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=&quot;X alsa arts joystick jpeg lua mikmod opengl oss png truetype vorbis -directfb -esd&quot; 0 kB

fails as follows:
&lt;snip ~3000 lines of the same&gt;
Sources/Lua/clanbindings.cpp:3270: error: `tolua_function&apos; was not declared in this scope
Sources/Lua/clanbindings.cpp:3483: error: `tolua_tablevar&apos; was not declared in this scope
Sources/Lua/clanbindings.cpp:3265: warning: unused variable &apos;tolua_open&apos;
Sources/Lua/clanbindings.cpp: In function `void tolua_clanbindings_close(lua_State*)&apos;:
Sources/Lua/clanbindings.cpp:3499: error: `void tolua_clanbindings_close(lua_State*)&apos; redeclared as different kind of symbol
Sources/Lua/clanbindings.cpp:10: error: previous declaration of `int tolua_clanbindings_close&apos;
Sources/Lua/clanbindings.cpp:10: error: previous non-function declaration `int tolua_clanbindings_close&apos;
Sources/Lua/clanbindings.cpp:3499: error: conflicts with function declaration `void tolua_clanbindings_close(lua_State*)&apos;
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&apos;s annoying that &quot;equery depends clanlib&quot; shows me nothing, and this package continually shows up in emerge --depclean (it is in fact depended upon by Pingus), but I suppose that&apos;s got to be a well-known bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>l33tmmx@gmail.com</who>
            <bug_when>2006-07-27 01:34:11 0000</bug_when>
            <thetext>Same problem here, clanlib-0.6.5-r3 doesn&apos;t (re)compile with lua (using dev-lang/lua-5.0.2). With USE=&quot;-lua&quot; everything&apos;s OK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azuriel@gmail.com</who>
            <bug_when>2006-08-09 17:32:58 0000</bug_when>
            <thetext>Same problem here, USE=&quot;-lua&quot; fixed it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2006-09-03 18:44:24 0000</bug_when>
            <thetext>clanlib-0.6 and users of it have been masked for removal.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@altkai.ml1.net</who>
            <bug_when>2006-09-04 09:52:37 0000</bug_when>
            <thetext>Is this bug the only reason it&apos;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&apos;t a problem. Pingus and Trophy are both fairly fun - it would be nice if they could stay in the tree.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-09-04 12:55:25 0000</bug_when>
            <thetext>search bugzilla and you&apos;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&apos;ll merge it

also, we have to hack the shit out of it to SLOT which i detest having done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@altkai.ml1.net</who>
            <bug_when>2006-09-04 13:47:02 0000</bug_when>
            <thetext>I can fix this minor bug, but not compiling with GCC 4.1, which is the greater problem I wasn&apos;t aware of. Upstream doesn&apos;t have any patches, and I can&apos;t fix it, so I withdraw my objection.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>smbmarek@poczta.onet.pl</who>
            <bug_when>2006-09-10 09:21:38 0000</bug_when>
            <thetext>SpanKY: look at bug #146849. Pacho Ramos has submitted patches taken from Mandriva. They work really good.

Regards,
Marek Wr</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>smbmarek@poczta.onet.pl</who>
            <bug_when>2006-09-10 09:21:38 0000</bug_when>
            <thetext>SpanKY: look at bug #146849. Pacho Ramos has submitted patches taken from Mandriva. They work really good.

Regards,
Marek Wróbel
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tupone@gentoo.org</who>
            <bug_when>2006-09-11 15:47:33 0000</bug_when>
            <thetext>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.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>