Help please m_adult.c

These are old archives. They are kept for historic purposes only.
Post Reply
malphas
Posts: 41
Joined: Thu Jan 15, 2009 4:07 pm

Help please m_adult.c

Post by malphas » Sat Feb 07, 2009 5:10 pm

Hi i`ve downloaded capitains m_adult.c module ive placed it in unreal src/modules section in my shells rehashed then tryed loaded it using /msg operserv modload m_adult.c but i keep getting error messages when i try to load it

_-4:44pm-_ <Global> OperServ: Malphas: MODLOAD m_adult.c
_-4:44pm-_ <Global> Trying to load module [m_adult.c]
_-4:44pm-_ <Global> Module loading status: 4 (Module Error, File does not exist)
_-4:44pm-_ -OperServ- Unable to load module m_adult.c

What am i doing rong am i putting it in the rong place

Casper
Posts: 338
Joined: Sun Jul 08, 2007 7:44 am
Location: The Netherlands

Re: Help please m_adult.c

Post by Casper » Sat Feb 07, 2009 7:34 pm

http://www.angrywolf.org/compiling.php?lang=en, will explain a lot on how to compile modules and as such load them (you can't load IRCd modules via Services :P)
Ex Network-Administrator

malphas
Posts: 41
Joined: Thu Jan 15, 2009 4:07 pm

Re: Help please m_adult.c

Post by malphas » Sat Feb 07, 2009 7:50 pm

Hmm that still dont help its saying file do not exist still

Casper
Posts: 338
Joined: Sun Jul 08, 2007 7:44 am
Location: The Netherlands

Re: Help please m_adult.c

Post by Casper » Sat Feb 07, 2009 8:54 pm

is the filename of a module without extension.
The proper syntax will be:
make custommodule MODULEFILE=m_adult
Ex Network-Administrator

zEkE
Posts: 111
Joined: Wed Apr 14, 2004 9:30 am
Location: Harrisonburg, VA
Contact:

Re: Help please m_adult.c

Post by zEkE » Sun Feb 08, 2009 5:02 am

Make sure you're loading it the right way, through Unreal (not OperServ)

Place m_adult.c in ~/Unreal3.2[.7]/src/modules
Run 'make custommodule MODULEFILE=m_adult'

Add 'loadmodule "src/modules/m_adult.so";' to unrealircd.conf

./unreal rehash (or /rehash from IRC)

/module, check for m_adult that it has loaded.
NetAdmin - irc.unitedchristianchat.net
http://www2.i-al.net/ircbots/

Casper
Posts: 338
Joined: Sun Jul 08, 2007 7:44 am
Location: The Netherlands

Re: Help please m_adult.c

Post by Casper » Sun Feb 08, 2009 10:38 am

zEkE wrote:Make sure you're loading it the right way, through Unreal (not OperServ)

Place m_adult.c in ~/Unreal3.2[.7]/src/modules
Run 'make custommodule MODULEFILE=m_adult'

Add 'loadmodule "src/modules/m_adult.so";' to unrealircd.conf

./unreal rehash (or /rehash from IRC)

/module, check for m_adult that it has loaded.
It's all explained in that link :P
Ex Network-Administrator

malphas
Posts: 41
Joined: Thu Jan 15, 2009 4:07 pm

Re: Help please m_adult.c

Post by malphas » Sun Feb 08, 2009 4:52 pm

done everything got a whole page of error messages first off then retryed it opened up the module add loadmodule to the config and rehashed got the following error message

*** Notice -- unrealircd.conf:3: loadmodule src/modules/m_adult.so: failed to load: Cannot open module file: No such file or directory

should m_adult.so be m_adult.c

zEkE
Posts: 111
Joined: Wed Apr 14, 2004 9:30 am
Location: Harrisonburg, VA
Contact:

Re: Help please m_adult.c

Post by zEkE » Sun Feb 08, 2009 5:04 pm

m_adult.c is a source file, m_adult.so is a compiled module.

What were the errors you got compiling the first time?

Consider running `make clean && make`, and then following the earlier instructions again.
NetAdmin - irc.unitedchristianchat.net
http://www2.i-al.net/ircbots/

malphas
Posts: 41
Joined: Thu Jan 15, 2009 4:07 pm

Re: Help please m_adult.c

Post by malphas » Sun Feb 08, 2009 5:11 pm

It showed about 30 lines of error messages the module is on the unrealircd downloads page ive taken it out now
erroe messages such as directory do not exist file do not exist then about 20 didffent lines of error code with encrypted text

zEkE
Posts: 111
Joined: Wed Apr 14, 2004 9:30 am
Location: Harrisonburg, VA
Contact:

Re: Help please m_adult.c

Post by zEkE » Sun Feb 08, 2009 5:36 pm

I've personally used this module in a testing environment (later modified to be children only, we were testing methods for becoming a COPPA compliant chat space) and had no problems compiling it on our FreeBSD shells or debian servers, the instructions for which I gave directly, and Casper gave via link.

Have you tried any other modules? Remember, you need to be in the Unreal root directory (~/Unreal3.2[.7]/) when you run the make commands.

Can you run `make custommodule MODULEFILE=m_adult` and paste the output?
NetAdmin - irc.unitedchristianchat.net
http://www2.i-al.net/ircbots/

malphas
Posts: 41
Joined: Thu Jan 15, 2009 4:07 pm

Re: Help please m_adult.c

Post by malphas » Mon Feb 09, 2009 7:23 pm

This is also what I will be using this for my chat site is also COPPA compliant we have a user base starting from 13 years upwards however because i have no way at the moment of keeping them to set rooms we are not able to creat teen rooms as such an have to currently refuse access to any one under the age of 16 only problem with this is that once they are rejected they do not wish to come back because they have found another place to chat

ive placed this in unreal3.2.7 src/modules done as youve said



This is the error code I get

/home/malphas1981/Unreal3.2.7/src/modules$ make custommodule MODULEFILE=m_adult
cc -fPIC -DPIC -shared -DDYNAMIC_LINKING \
-o m_adult.so m_adult.c
m_adult.c:13:20: error: config.h: No such file or directory
m_adult.c:14:20: error: struct.h: No such file or directory
m_adult.c:15:20: error: common.h: No such file or directory
m_adult.c:16:17: error: sys.h: No such file or directory
m_adult.c:17:21: error: numeric.h: No such file or directory
m_adult.c:18:17: error: msg.h: No such file or directory
m_adult.c:19:21: error: channel.h: No such file or directory
m_adult.c:29:15: error: h.h: No such file or directory
m_adult.c:36: error: expected ‘)’ before ‘*’ token
m_adult.c:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
m_adult.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
m_adult.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:50: error: expected ‘)’ before ‘*’ token
m_adult.c:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MODE_ADULT’
m_adult.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MOD_HEADER’
m_adult.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
m_adult.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
m_adult.c:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
m_adult.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
m_adult.c:133: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:157: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
m_adult.c:181: error: expected ‘)’ before ‘*’ token
m_adult.c:198: error: expected ‘)’ before ‘*’ token
make: *** [custommodule] Error 1

Casper
Posts: 338
Joined: Sun Jul 08, 2007 7:44 am
Location: The Netherlands

Re: Help please m_adult.c

Post by Casper » Mon Feb 09, 2009 7:40 pm

Do the make modules thing in the main dir of Unreal (/home/user/Unreal3.2.7/)
Ex Network-Administrator

malphas
Posts: 41
Joined: Thu Jan 15, 2009 4:07 pm

Re: Help please m_adult.c

Post by malphas » Mon Feb 09, 2009 7:52 pm

Thank you that sorted it loaded it with no probs and working

Post Reply