Hey Guys
!
I've been stalking anope modules and I've found this module : "os_clientjoin", I've downloaded it from "http://www.area51designz.com/c/anope/os_clientjoin.c" and tried to install it ...
At first I did this and anope was NOT able to load this, restarted the services (and IRCD, I Use Unreal 3.2), and as I issued "modload os_clientjoin" to the OperServ the services would go down !
Tailed the log and found this :
[Apr 19 07:20:24 2007] OperServ: dNetGuru: modload os_clientjoin
[Apr 19 07:20:24 2007] Trying to load module [os_clientjoin]
[Apr 19 07:20:24 2007] os_clientjoin: Config: OSClientJoinModes: [+sOi]
[Apr 19 07:20:24 2007] os_clientjoin: Config: OSClientJoinBots: [1] - BotServ bots will now join on the command.
After that I played with the config file ! but there is no difference, commenting out some of these options would omit the last line but I services would stop after the modload is issued !
*** LocOps -- Server services.dNetGuru[127.0.0.1] closed the connection
The config section I added in the Config file is AS PROVIDED IN THE SOURCE FILE !
So, I've checked the compilation process, I've read the make script for modules and issued "cc -rdynamic -Wall -I../ -c os_clientjoin.c", and here's the output ! full of warnings and errors ! :
cc -rdynamic -Wall -I../ -c os_clientjoin.c
os_clientjoin.c:1:20: module.h: No such file or directory
os_clientjoin.c:109: error: syntax error before '*' token
os_clientjoin.c:110: error: syntax error before '*' token
os_clientjoin.c:113: error: syntax error before '*' token
os_clientjoin.c: In function `AnopeInit':
os_clientjoin.c:126: error: `Command' undeclared (first use in this function)
os_clientjoin.c:126: error: (Each undeclared identifier is reported only once
os_clientjoin.c:126: error: for each function it appears in.)
os_clientjoin.c:126: error: `c' undeclared (first use in this function)
os_clientjoin.c:127: error: `EvtHook' undeclared (first use in this function)
os_clientjoin.c:127: error: `hook' undeclared (first use in this function)
os_clientjoin.c:129: warning: implicit declaration of function `createCommand'
os_clientjoin.c:129: error: `is_services_root' undeclared (first use in this function)
os_clientjoin.c:130: warning: implicit declaration of function `moduleAddCommand'
os_clientjoin.c:130: error: `OPERSERV' undeclared (first use in this function)
os_clientjoin.c:130: error: `MOD_HEAD' undeclared (first use in this function)
os_clientjoin.c:133: warning: implicit declaration of function `createEventHook'
os_clientjoin.c:133: error: `EVENT_RELOAD' undeclared (first use in this function)
os_clientjoin.c:134: warning: implicit declaration of function `moduleAddEventHook'
os_clientjoin.c:135: error: `MOD_ERR_OK' undeclared (first use in this function)
os_clientjoin.c:136: warning: implicit declaration of function `alog'
os_clientjoin.c:136: error: `MODULE_EXT' undeclared (first use in this function)
os_clientjoin.c:137: error: `MOD_STOP' undeclared (first use in this function)
os_clientjoin.c:144: warning: implicit declaration of function `moduleAddHelp'
os_clientjoin.c:145: warning: implicit declaration of function `moduleSetOperHelp'
os_clientjoin.c:149: warning: implicit declaration of function `moduleAddAuthor'
os_clientjoin.c:150: warning: implicit declaration of function `moduleAddVersion'
os_clientjoin.c:151: warning: implicit declaration of function `moduleSetType'
os_clientjoin.c:151: error: `THIRD' undeclared (first use in this function)
os_clientjoin.c:153: error: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c: In function `AnopeFini':
os_clientjoin.c:161: warning: implicit declaration of function `free'
os_clientjoin.c: At top level:
os_clientjoin.c:174: error: syntax error before '*' token
os_clientjoin.c: In function `do_clientjoin_help':
os_clientjoin.c:176: warning: implicit declaration of function `is_services_root'
os_clientjoin.c:176: error: `u' undeclared (first use in this function)
os_clientjoin.c:177: warning: implicit declaration of function `moduleNoticeLang'
os_clientjoin.c:177: error: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c: At top level:
os_clientjoin.c:184: error: syntax error before '*' token
os_clientjoin.c: In function `do_clientjoin_help_full':
os_clientjoin.c:186: warning: implicit declaration of function `is_services_admin'
os_clientjoin.c:186: error: `u' undeclared (first use in this function)
os_clientjoin.c:187: error: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:189: error: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c: At top level:
os_clientjoin.c:194: error: syntax error before '*' token
os_clientjoin.c: In function `m_os_clientjoin':
os_clientjoin.c:196: error: `Channel' undeclared (first use in this function)
os_clientjoin.c:196: error: `c' undeclared (first use in this function)
os_clientjoin.c:197: warning: implicit declaration of function `moduleGetLastBuffer'
os_clientjoin.c:197: warning: initialization makes pointer from integer without a cast
os_clientjoin.c:198: error: `NULL' undeclared (first use in this function)
os_clientjoin.c:200: warning: implicit declaration of function `myStrGetToken'
os_clientjoin.c:200: warning: assignment makes pointer from integer without a cast
os_clientjoin.c:201: warning: assignment makes pointer from integer without a cast
os_clientjoin.c:204: error: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:204: error: `u' undeclared (first use in this function)
os_clientjoin.c:207: error: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c:215: warning: implicit declaration of function `stricmp'
os_clientjoin.c:221: error: `MOD_STOP' undeclared (first use in this function)
os_clientjoin.c:230: warning: implicit declaration of function `findchan'
os_clientjoin.c: In function `m_os_allservicesjoinchan':
os_clientjoin.c:259: error: `BotInfo' undeclared (first use in this function)
os_clientjoin.c:259: error: `bi' undeclared (first use in this function)
os_clientjoin.c:262: warning: implicit declaration of function `anope_cmd_mode'
os_clientjoin.c:262: error: `s_ChanServ' undeclared (first use in this function)
os_clientjoin.c:264: warning: implicit declaration of function `anope_cmd_join'
os_clientjoin.c:264: warning: implicit declaration of function `time'
os_clientjoin.c:264: error: `NULL' undeclared (first use in this function)
os_clientjoin.c:265: error: `s_MemoServ' undeclared (first use in this function)
os_clientjoin.c:266: error: `s_NickServ' undeclared (first use in this function)
os_clientjoin.c:267: error: `s_BotServ' undeclared (first use in this function)
os_clientjoin.c:268: error: `s_HostServ' undeclared (first use in this function)
os_clientjoin.c:269: error: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:270: error: `s_DevNull' undeclared (first use in this function)
os_clientjoin.c:271: error: `s_HelpServ' undeclared (first use in this function)
os_clientjoin.c:272: error: `s_GlobalNoticer' undeclared (first use in this function)
os_clientjoin.c:273: warning: suggest parentheses around assignment used as truth value
os_clientjoin.c:275: warning: suggest parentheses around assignment used as truth value
os_clientjoin.c:277: warning: suggest parentheses around assignment used as truth value
os_clientjoin.c:283: error: `botlists' undeclared (first use in this function)
os_clientjoin.c:291: warning: suggest parentheses around assignment used as truth value
os_clientjoin.c:293: warning: suggest parentheses around assignment used as truth value
os_clientjoin.c:302: warning: suggest parentheses around assignment used as truth value
os_clientjoin.c: In function `m_os_allservicespartchan':
os_clientjoin.c:319: error: `BotInfo' undeclared (first use in this function)
os_clientjoin.c:319: error: `bi' undeclared (first use in this function)
os_clientjoin.c:320: error: `ChannelInfo' undeclared (first use in this function)
os_clientjoin.c:320: error: `ci' undeclared (first use in this function)
os_clientjoin.c:320: warning: implicit declaration of function `cs_findchan'
os_clientjoin.c:322: error: `s_ChanServ' undeclared (first use in this function)
os_clientjoin.c:322: warning: implicit declaration of function `anope_cmd_part'
os_clientjoin.c:323: error: `s_MemoServ' undeclared (first use in this function)
os_clientjoin.c:324: error: `s_NickServ' undeclared (first use in this function)
os_clientjoin.c:325: error: `s_BotServ' undeclared (first use in this function)
os_clientjoin.c:326: error: `s_HostServ' undeclared (first use in this function)
os_clientjoin.c:327: error: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:328: error: `s_DevNull' undeclared (first use in this function)
os_clientjoin.c:329: error: `s_HelpServ' undeclared (first use in this function)
os_clientjoin.c:330: error: `s_GlobalNoticer' undeclared (first use in this function)
os_clientjoin.c:333: error: `botlists' undeclared (first use in this function)
os_clientjoin.c:334: error: `NULL' undeclared (first use in this function)
os_clientjoin.c:341: warning: implicit declaration of function `bot_join'
os_clientjoin.c: In function `AddLanguages':
os_clientjoin.c:480: warning: implicit declaration of function `moduleInsertLanguage'
os_clientjoin.c:480: error: `LANG_EN_US' undeclared (first use in this function)
os_clientjoin.c:481: error: `LANG_NL' undeclared (first use in this function)
os_clientjoin.c:482: error: `LANG_DE' undeclared (first use in this function)
os_clientjoin.c:483: error: `LANG_FR' undeclared (first use in this function)
os_clientjoin.c: In function `do_reload':
os_clientjoin.c:495: error: `EVENT_START' undeclared (first use in this function)
os_clientjoin.c:503: error: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c: In function `load_config':
os_clientjoin.c:518: error: `Directive' undeclared (first use in this function)
os_clientjoin.c:518: error: syntax error before "directivas"
os_clientjoin.c:513: warning: unused variable `i'
os_clientjoin.c:514: warning: unused variable `OSClientJoinAutoOp'
os_clientjoin.c:515: warning: unused variable `OSClientJoinBotAutoOp'
os_clientjoin.c:516: warning: unused variable `retval'
os_clientjoin.c: At top level:
os_clientjoin.c:540: warning: type defaults to `int' in declaration of `retval'
os_clientjoin.c:540: warning: data definition has no type or storage class
os_clientjoin.c:541: error: syntax error before '}' token
os_clientjoin.c:543: warning: type defaults to `int' in declaration of `retval'
os_clientjoin.c:543: error: redefinition of 'retval'
os_clientjoin.c:540: error: previous definition of 'retval' was here
os_clientjoin.c:543: warning: data definition has no type or storage class
os_clientjoin.c:544: error: syntax error before '}' token
os_clientjoin.c:551: warning: type defaults to `int' in declaration of `retval'
os_clientjoin.c:551: error: redefinition of 'retval'
os_clientjoin.c:543: error: previous definition of 'retval' was here
os_clientjoin.c:551: error: redefinition of 'retval'
os_clientjoin.c:543: error: previous definition of 'retval' was here
os_clientjoin.c:551: warning: data definition has no type or storage class
os_clientjoin.c:552: error: syntax error before '}' token
os_clientjoin.c:554: warning: type defaults to `int' in declaration of `retval'
os_clientjoin.c:554: error: redefinition of 'retval'
os_clientjoin.c:551: error: previous definition of 'retval' was here
os_clientjoin.c:554: error: redefinition of 'retval'
os_clientjoin.c:543: error: previous definition of 'retval' was here
os_clientjoin.c:554: warning: data definition has no type or storage class
os_clientjoin.c:555: error: syntax error before '}' token
(But I know that compilation would be done with some dynamic linkings and ...)
And by running the make modules script itself, the output would be :
cc -rdynamic -Wall -I../ -c os_clientjoin.c
os_clientjoin.c:1:20: module.h: No such file or directory
os_clientjoin.c:109: error: syntax error before '*' token
os_clientjoin.c:110: error: syntax error before '*' token
...
{ Bunch of errors and warnings omitted ! }
...
make[1]: *** [os_clientjoin.o] Error 1
make[1]: Leaving directory `/home/ircd/Source/anope-1.7.18/src/modules'
make: *** [modules] Error 2
Btw, I issue "./make;./make install" to compile and install the modules to the installation directory !
I'm using a CentOS 4.0 Dual Xeon Box, Running UnrealIRCD 3.2 among with apache httpd and some other stuff ...
--
Regards ...
The dNetGuru