How to compile modules correctly for Unreal IRCD ?

These are old archives. They are kept for historic purposes only.
Post Reply
stonegate
Posts: 6
Joined: Tue Sep 11, 2007 12:41 am

How to compile modules correctly for Unreal IRCD ?

Post by stonegate » Tue Sep 11, 2007 4:12 pm

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

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: How to compile modules correctly for Unreal IRCD ?

Post by Stealth » Tue Sep 11, 2007 7:05 pm

Put the module source in src/modules

Run make custommodule MODULEFILE=modulename

stonegate
Posts: 6
Joined: Tue Sep 11, 2007 12:41 am

Re: How to compile modules correctly for Unreal IRCD ?

Post by stonegate » Wed Sep 12, 2007 9:13 pm

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

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: How to compile modules correctly for Unreal IRCD ?

Post by Stealth » Thu Sep 13, 2007 12:43 am

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

Post Reply