Page 1 of 1

make fails after update to lua 5.1.1

Posted: Tue Apr 03, 2007 8:09 am
by chrigi
I updated lua to version 5.1.1, which is stable on gentoo x86, now orx fails to compile

Code: Select all

if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../extern_libs  -ggdb3 -g -Wall -I/usr/include -I../.. -I../../ai -I../../world_entities -I../../story_entities -I../../lib -I../../lib/coord -I../../lib/data -I../../lib/event -I../../lib/graphics -I../../lib/graphics/md2 -I../../lib/graphics/md3 -I../../lib/graphics/text_engine -I../../lib/graphics/importer -I../../lib/graphics/spatial_separation -I../../lib/graphics/render2D -I../../lib/gui/gl -I../../lib/gui/gl/glmenu -I../../lib/lang -I../../lib/shell -I../../lib/util -I../../lib/math -I../../lib/network -I../../lib/physics -I../../lib/collision_detection -I../../lib/collision_reaction -I../../lib/sound -I../../lib/script_engine -I../../defs -I../../util -I../../util/animation -I../../../extern_libs -g -O2 -MT script.o -MD -MP -MF ".deps/script.Tpo" -c -o script.o script.cc; \
        then mv -f ".deps/script.Tpo" ".deps/script.Po"; else rm -f ".deps/script.Tpo"; exit 1; fi
script.cc: In destructor 'virtual Script::~Script()':
script.cc:68: error: 'lua_setgcthreshold' was not declared in this scope
seems that they have removed/renamed this function

Posted: Fri Apr 06, 2007 6:26 am
by silvan
I'll look into it as soon as I have orxonox running on my system here at home.

edit:
If we are very lucky this will work:
substitute
lua_setgcthreshold(L,0)
to
lua_gc(L,LUA_GCCOLLECT, 0)
(this will enforce garbage collection).

form

http://lua-users.org/lists/lua-l/2006-07/msg00055.html