Failed to load: Cannot open module file: No such file or directory

Looking for a module on UnrealIRCd 5? Or want to see one converted from 4.x to 5.x?

Moderator: Supporters

Locked
HeXiLeD
Posts: 50
Joined: Mon Jan 16, 2017 8:07 pm
Location: online

Failed to load: Cannot open module file: No such file or directory

Post by HeXiLeD » Sun Jan 19, 2020 9:54 pm

This was working with unrealircd 4.* :D
Not working with 5.0.1 :shock:


cat conf/unrealircd.conf | grep 3rd_party_modules.conf

Code: Select all

include "3rd_party_modules.conf";

cat conf/3rd_party_modules.conf | grep loadmodule

Code: Select all

# loadmodule <file-name-without-suffix>;           If you want to load modules\m_something.dll             #
# loadmodule "m_something";                                                                                #
loadmodule "third/m_autovhost";
loadmodule "third/m_getlegitusers";
loadmodule "third/m_rmtkl";
loadmodule "third/m_noinvite";
loadmodule "third/m_pmlist";
loadmodule "third/m_clones";
loadmodule "third/m_storetkl";
loadmodule "third/m_uniquemsg";
loadmodule "third/m_listrestrict";
loadmodule "third/m_allowctcp_opers";
loadmodule "third/m_block_masshighlight";
loadmodule "third/m_extwarn";
#loadmodule "third/m_textshun";
#loadmodule "third/m_repeatprot";
#loadmodule "third/m_pmdelay";
#loadmodule "third/m_anticaps";
ls modules/third/

Code: Select all

anticaps.so  autovhost.so  block_masshighlight.so  clones.so  extwarn.so  getlegitusers.so  listrestrict.so  noinvite.so  pmlist.so  repeatprot.so  textshun.so
./unrealircd configtest

v5.0.1

UnrealIRCd is brought to you by Bram Matthys (Syzop), Gottem and i

Using the following libraries:
* PCRE2 10.33 2019-04-16
* OpenSSL 1.1.1d 10 Sep 2019

This server can handle 8192 concurrent sockets (8184 clients + 8 reserve)

Code: Select all

Loading IRCd configuration..
path/to/conf/3rd_party_modules.conf:13: loadmodule third/m_autovhost: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:16: loadmodule third/m_getlegitusers: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:19: loadmodule third/m_rmtkl: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:22: loadmodule third/m_noinvite: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:26: loadmodule third/m_pmlist: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:30: loadmodule third/m_clones: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:33: loadmodule third/m_storetkl: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:36: loadmodule third/m_uniquemsg: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:42: loadmodule third/m_listrestrict: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:45: loadmodule third/m_allowctcp_opers: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:52: loadmodule third/m_block_masshighlight: failed to load: Cannot open module file: No such file or directory
path/to/conf/3rd_party_modules.conf:55: loadmodule third/m_extwarn: failed to load: Cannot open module file: No such file or directory
config error: IRCd configuration failed to load
All hail to might error :!:
:evil:
Constructive criticism leads to evolution and progress. Negative criticism leads to obsolescence. We are not in the 90's IRC world anymore.
CertFP: d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244

HeXiLeD
Posts: 50
Joined: Mon Jan 16, 2017 8:07 pm
Location: online

Re: Failed to load: Cannot open module file: No such file or directory

Post by HeXiLeD » Sun Jan 19, 2020 9:59 pm

and the solution is to rename the module from m_module to module.so

ie:

Code: Select all

loadmodule "third/autovhost.so";
Constructive criticism leads to evolution and progress. Negative criticism leads to obsolescence. We are not in the 90's IRC world anymore.
CertFP: d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244

Locked