Closed xcpep closed 4 years ago
So after deeper searching, I've found that the issue appears to be when compiling, however I've checked the flags and -m32
and -m64
appear to be used correctly so I'm not sure where this error may still be happening from.
Couldn't include file 'includes/modules/string.lua' (File not found) (<nowhere>)
Ignore the above error about being unable to include string.lua, it means Garry is being an ass
[ERROR] error loading module 'gwsockets' from file 'gmsv_gwsockets_linux.dll':
/home/gs/gmod1/serverfiles/garrysmod/lua/bin/gmsv_gwsockets_linux.dll: wrong ELF class: ELFCLASS64
1. error - [C]:-1
2. searcher - lua/includes/modules/require.lua:58
3. require - lua/includes/modules/require.lua:140
4. unknown - addons/testing/lua/autorun/server/sv_test.lua:6
Fixed in latest release.
Hey,
For reference:
I'm getting some issues trying to use this module on my server. When I used the pre-compiled DLLs from the releases page it will never load the module and my script can never require "gwsockets".
However, if I build the 64 bit version from source and include, I still cannot load the module which returns the error:
Oddly, if I compile the 32 bit version, I no longer get this error, however the server will crash due to a segmentation fault:
I've tried all of the linux 32 & 64bit builds in the releases, of which none worked for me, and I have built from the GitHub source files and also tried building by replacing the _libboostsystem.a libcrypto.a libssl.a files with the ones installed on my system, but still cannot get the module to load or be required in my script.
This is the output running ldd on the binary I built: