Forum

> > CS2D > Scripts > Lua .so extension - undefined symbol
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua .so extension - undefined symbol

No replies
To the start Previous 1 Next To the start

old Lua .so extension - undefined symbol

Banaan
User Off Offline

Quote
Hi there,

I'm trying to get LuaSocket to work with CS2D. I make'd it inside my CS2D folder (for portability) and added the correct package paths, so CS2D manages to find the correct packages through require.

I do have a problem though - I get this error:
1
2
LUA ERROR: error loading module 'socket.core' from file './sys/lua/socket/core.so':
	./sys/lua/socket/core.so: undefined symbol: lua_getmetatable
I've also tried to run the exact same script through my system's Lua (version 5.1.4), and that works perfectly well.

I've also googled it, the only solution I found (apart from re-compiling Lua, which I obviously can't do for CS2D) was to add -llua to the LDFLAGS for the make config and recompile it. That, unfortunately, didn't work either.

Has anybody come across such an error before, and is there a fix for it?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview