lua modules on linux server

Hi, sorry for my english, I bad speak english.

I’m probably wrong section, but I do not know where else to write. I am here new.

So I will describe the problem:

When I run the server in the console skips errors:
ERROR! Module ‘zlib_b64’ not found!
ERROR! Module ‘guardian’ not found!

I know about this modules, and download them, and uploaded gm_zlib_b64.dll/gm_guardian.dll in lua/includes/modules. But modules do not work. I use linux server… I know about problem with filesystem case sensitive and install server to case insensitive filesystem like vfat. This fix working some addons (like stargate/SBEP etc)… But modules do not work… Why? Or this modules do not work on linux?

It’s all for now. I hope to help.

It would be a good idea to learn how Linux works before you host a server on it. Long story short: DLL files are for Windows.

but in this folder i see files like this: gm_sqlite_linux.dll and it works… oO so this .dll files for lua… not for .exe. i do not see any gm_sqlite_linux.so…

Garry got lazy with the naming of modules on Linux. gm_sqlite_linux.dll is actually a .so but the extension was changed to a dll. The module you want to use must be compiled for Linux if you want to use it on a Linux server

Need to rewrite the module? Or you could just somehow compile in .so? Sources have with the module, but I do not know how to do it …

[editline]18th October 2010[/editline]

What I should have to compile the module on linux?

I read http://wiki.garrysmod.com/?title=GLuaModule#Compiling_on_Linux_.28Riddler.29 and try compile, but no good… writes an error … remove #include <windows.h>, but the errors were… (some errors translate to english)

$ g++ -m32 -fPIC -shared -I ./src_linux/common/ ./src_linux/gm_zlib_b64.cpp -o ./gm_zlib_b64_linux.dll

In file included from ./src_linux/zlib/zutil.h:17,
from ./src_linux/gm_zlib_b64.cpp:38:
./src_linux/zlib/zlib.h:207: error: expected initializer before ‘deflate’
./src_linux/zlib/zlib.h:292: error: expected initializer before ‘deflateReset’
./src_linux/zlib/zlib.h:303: error: expected initializer before ‘deflateEnd’
./src_linux/zlib/zlib.h:338: error: expected initializer before ‘inflate’
./src_linux/zlib/zlib.h:437: error: expected initializer before ‘inflateEnd’
./src_linux/zlib/zlib.h:455: error: expected initializer before ‘deflateInit2’
./src_linux/zlib/zlib.h:512: error: expected initializer before ‘inflateInit2’
./src_linux/zlib/zlib.h:554: error: expected initializer before ‘inflateReset’
./src_linux/zlib/zlib.h:573: error: expected initializer before ‘adler32’
In file included from ./src_linux/gm_zlib_b64.cpp:38:
./src_linux/zlib/zutil.h:74: error: expected initializer before ‘zmemcpy’
./src_linux/zlib/zutil.h:78: error: expected initializer before ‘zmemzero’
./src_linux/gm_zlib_b64.cpp:58: error: ‘HANDLE’ does not name a type
./src_linux/gm_zlib_b64.cpp:71: error: ‘HANDLE’ does not name a type
./src_linux/gm_zlib_b64.cpp:76: error: ‘__stdcall’ does not name a type
./src_linux/gm_zlib_b64.cpp:84: error: ‘HANDLE’ does not name a type
./src_linux/gm_zlib_b64.cpp: In function ‘void CreateZlibThread(ILuaInterface*, char, void*, size_t, void*, size_t, ILuaObject*, long unsigned int)’:
./src_linux/gm_zlib_b64.cpp:121: error: ‘struct ThreadData’ has no member named ‘hThread’
./src_linux/gm_zlib_b64.cpp:121: error: no declaration ‘zlib_thread_start’ in this scope
./src_linux/gm_zlib_b64.cpp:121: error: no declaration ‘CreateThread’ in this scope
./src_linux/gm_zlib_b64.cpp:127: error: no declaration ‘hHeap’ in this scope
./src_linux/gm_zlib_b64.cpp:127: error: no declaration ‘HeapReAlloc’ in this scope
./src_linux/gm_zlib_b64.cpp: At global scope:
./src_linux/gm_zlib_b64.cpp:134: error: expected initializer before ‘PushCompBuffer’
./src_linux/gm_zlib_b64.cpp:154: error: expected initializer before ‘zlib_compress_internal’

well, me personally have got the exact same error on my windows server. never gave me any problems and my server runs just fine!

I need use guardian module for stargate half-cliping… and zlib_b64 but not necessarily.