danielga / gmod_luasocket

Modules for Garry's Mod that add bindings for OS sockets through luasocket.
https://github.com/danielga/gmod_luasocket
Other
28 stars 3 forks source link

Undefined symbol: lua_getmetatable #9

Closed norrbotten closed 4 years ago

norrbotten commented 4 years ago

I keep getting undefined symbol errors when requiring the modules. I've tried messing around with the makefiles generated with premake and linking with different settings but i'm not getting anywhere.

Heres the output of objdump -T gmsv_socket.core_linux.dll | grep meta if that's of any help 00000000 D UND 00000000 lua_getmetatable 00000000 D UND 00000000 lua_setmetatable 00000000 D UND 00000000 luaL_newmetatable

In fact, all but luaL_setfuncs and luaopen_socket_core show up as undefined when grepping for just lua instead of meta.

All the symbols seem to exist in lualib_shared.a so I don't think that's part of the issue but honestly I have no idea since I don't have much experience compiling lua modules.

danielga commented 4 years ago

Can you try these builds please? I'm attempting a new method of forcibly including liblua_shared.lib so these symbols always exist (which isn't optimal but better than non functioning binaries).

norrbotten commented 4 years ago

Yep, those seem to work. tyvm!