Page 1 of 1

How to compile modules correctly for Unreal IRCD ?

Posted: Tue Sep 11, 2007 4:12 pm
by stonegate
Sorry, this question might have been asked alot before (however i could not find a good answer for it yet).
How can i compile Unreal IRCD Modules for 3.2.3 ?

I put them (the .c Files) in /unreal3.2.3/src/modules and cd´ed into /unreal3.2.3/ and ran ./Config and run through the whole configuration and make make install process. However i did not get the modules i´ve put in there as a .SO file in my target directory.

How do you guys compile the modules? Is there anything i have to do with the .c files before? Stripping text out of there ? Or what am i doing wrong? Is there a howto or documentation how to compile a module under linux somewhere? Please give me a hint :)

Thanks alot
Stonegate

Re: How to compile modules correctly for Unreal IRCD ?

Posted: Tue Sep 11, 2007 7:05 pm
by Stealth
Put the module source in src/modules

Run make custommodule MODULEFILE=modulename

Re: How to compile modules correctly for Unreal IRCD ?

Posted: Wed Sep 12, 2007 9:13 pm
by stonegate
strange.. i´ve tried that. never worked for me.

i compiled them this way now:

gcc -I../include -I/test/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -export-dynamic -fPIC -DPIC -shared -DDYNAMIC_LINKING \
-o operjoin.so operjoing.c

Which is a bit complicated but seemed to work fine for me as all modules are running now.

Thanks alot
Stoney

Re: How to compile modules correctly for Unreal IRCD ?

Posted: Thu Sep 13, 2007 12:43 am
by Stealth
To compile modules, you don't put the .c on the module file name.

For example, to compile operjoin.c to operjoin.so (assuming you have all the default stuff with Unreal)

cp operjoin.c ~/Unreal3.2/src/modules/
cd ~/Unreal3.2
make custommodule MODULEFILE=operjoin

You will then get the file ~Unreal3.2/src/modules/operjoin.so, which is what you load into your conf