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

Bug 164305

Summary: stratagus-2.2.2 doesn't compile with lua-5.1.1
Product: Gentoo Linux Reporter: Johannes Hirte <johannes.hirte>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED DUPLICATE    
Severity: normal CC: coldwind, steven_debock
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Johannes Hirte 2007-01-28 20:34:34 UTC
stratagus-2.2.2 fails to compile with lua-5.1.1

x86_64-pc-linux-gnu-g++ -c -DHAVE_CONFIG_H  -DUSE_OPENGL -DUSE_BZ2LIB -DUSE_VORBIS -DUSE_THEORA -DUSE_MNG -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_ZLIB -I. -I./src/include -I./src/guichan/include -march=k8 -O2 -pipe -fsigned-char src/tolua/tolua.cpp -o src/tolua/obj/tolua.o
src/tolua/tolua.cpp: In function 'int tolua_stratagus_open(lua_State*)':
src/tolua/tolua.cpp:16182: error: 'lua_dobuffer' was not declared in this scope
src/tolua/tolua.cpp:16245: error: 'lua_dobuffer' was not declared in this scope
src/tolua/tolua.cpp:16493: error: 'lua_dobuffer' was not declared in this scope
src/tolua/tolua.cpp:16889: error: 'lua_dobuffer' was not declared in this scope
src/tolua/tolua.cpp:17089: error: 'lua_dobuffer' was not declared in this scope
make: *** [src/tolua/obj/tolua.o] Error 1

!!! ERROR: games-engines/stratagus-2.2.2 failed.
Call stack:
  ebuild.sh, line 1611:   Called dyn_compile
  ebuild.sh, line 968:   Called qa_call 'src_compile'
  environment, line 3239:   Called src_compile
  stratagus-2.2.2.ebuild, line 48:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/games-engines/stratagus-2.2.2/temp/build.log'.

lua-5.0.2 and lua-5.0.3 works fine

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-28 20:54:50 UTC

*** This bug has been marked as a duplicate of bug 158652 ***
Comment 2 Steven De Bock 2007-01-31 20:45:56 UTC
Please reopen this bug and close the bug marked as duplicate. This bug is totally different as configuring stratagus-2.2.2 succeeds.

Compilation fails due to lua_dobuffer missing in lua-5.1.1. 
lua_dobuffer is deprecated, reference: http://lua-users.org/lists/lua-l/2004-01/msg00300.html

I couldn't find lua_dobuffer in the code anyway.
Comment 3 Steven De Bock 2007-01-31 20:49:56 UTC
Made upstream aware of this bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1649181&group_id=84903&atid=574265
Comment 4 Steven De Bock 2007-02-01 07:34:14 UTC
--> Following upstream's comment on the bug: I'll have a look at the stratagus-2.2.2.ebuild and change its dependencies
--> Upstream reported back:

>Comment By: Jimmy Salmon (jsalmon3)
Date: 2007-01-31 14:20

Message:
Logged In: YES 
user_id=148949
Originator: NO

Stratagus 2.2.2 requires lua 5.0.*.