make fails after update to lua 5.1.1

Found a bug? Report it here.

Moderator: PPS-Leaders

Post Reply
chrigi
Human Space Navy Major
Posts: 40
Joined: Tue Oct 24, 2006 5:52 pm
Contact:

make fails after update to lua 5.1.1

Post by chrigi » Tue Apr 03, 2007 8:09 am

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

silvan
Noxonian Brolghormeg
Posts: 37
Joined: Wed Oct 11, 2006 7:43 am

Post by silvan » Fri Apr 06, 2007 6:26 am

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
The light on the end of the tunnel is a train.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest