danielga/sourcesdk-minimal

undefined symbol (Couldn't load module library!)

klen-list opened this issue · 4 comments

Linux Dedicated (main branch)
Compile config: releasewithsymbols_x86

[ERROR] lua_run:1: Couldn't load module library!
  1. require - [C]:-1
   2. unknown - lua_run:1
export LD_LIBRARY_PATH="./bin:$LD_LIBRARY_PATH"
ldd -r garrysmod/lua/bin/gmsv_network_linux.dll
        linux-gate.so.1 (0xf7ee2000)
        libtier0.so => ./bin/libtier0.so (0xf7e6f000)
        libvstdlib.so => ./bin/libvstdlib.so (0xf7d7f000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7d73000)
        libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7bf4000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7aee000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7ad0000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf78f2000)
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf78e7000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf78c6000)
        /lib/ld-linux.so.2 (0xf7ee3000)
undefined symbol: g_pMemAlloc   (garrysmod/lua/bin/gmsv_network_linux.dll)
undefined symbol: LOG_GENERAL   (garrysmod/lua/bin/gmsv_network_linux.dll)
undefined symbol: LoggingSystem_IsChannelEnabled        (garrysmod/lua/bin/gmsv_network_linux.dll)
undefined symbol: LoggingSystem_Log     (garrysmod/lua/bin/gmsv_network_linux.dll)

Including on windows works normally

You're trying to use the x86-64-support-sourcesdk branch of garrysmod_common with the main branch of Garry's Mod SRCDS. Checkout the master of garrysmod_common and recompile.

can i build x86_64 with garrysmod_common on master branch?

No, x86-64 on garrysmod_common is for the x86-64 branch of Garry's Mod, master on garrysmod_common for the main branch of Garry's Mod.

All works, thanks