Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Serious Problem With os_clientjoin  (Read 7360 times)

0 Members and 1 Guest are viewing this topic.

dNetGuru

  • Anope User
  • Offline Offline
  • Posts: 15
    • Http://www.hackerz.ir
Serious Problem With os_clientjoin
« on: April 19, 2007, 04:03:27 AM »

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 :
Quote
[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 !
Quote

*** 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 ! :
Quote

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 :
Quote

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
Logged

dNetGuru

  • Anope User
  • Offline Offline
  • Posts: 15
    • Http://www.hackerz.ir
(No subject)
« Reply #1 on: April 23, 2007, 04:44:46 AM »

Well, seems nobody has any idea about this issue !
Actually I don't really need this and of course it's a devel Anope version, I don't expect this to work 100% fine ...

But is this the only "os_clientjoin" ?! can anyone upload it for me somewhere ?!

--
Regards
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #2 on: April 23, 2007, 05:07:35 PM »

Quote

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 ! :


 I suggest you re-read the Makefile and build a working compile line, or simply issue "make modules" from the anope directory like everyone else, as the command you are using will never compile a working module.

[Edited on 23-4-2007 by Rob]
Logged

katsklaw

  • Guest
(No subject)
« Reply #3 on: April 23, 2007, 10:37:49 PM »

Quote
Originally posted by dNetGuru
Well, seems nobody has any idea about this issue !
Actually I don't really need this and of course it's a devel Anope version, I don't expect this to work 100% fine ...

But is this the only "os_clientjoin" ?! can anyone upload it for me somewhere ?!

--
Regards


This module is also a 3rd party module and is not subject to the same support policies that anope core is. IF it had been a core module you would have had a support reply asap however, since it's a 3rd party module, you should be thankful if you ever get a reply.

Not to mention that the module coder granted you access to the source code out of their good graces, that act alone is voluntary, nor is there any timeframe on suppport. There is nothing that states that all questions must be answered in X number of days.

[Edited on 23-4-2007 by katsklaw]
Logged

dNetGuru

  • Anope User
  • Offline Offline
  • Posts: 15
    • Http://www.hackerz.ir
(No subject)
« Reply #4 on: April 24, 2007, 02:41:43 AM »

Thanks guyz ;)

 Well, I don't even expect a reply or soloution or something like that, cuz this is an open source project and of course free !
 When I don't pay for something, I don't ask for support, but I asked for ideas (as I don't need this module, but just wanted to see if anone else has the same problem or if is this one is a solved issue) ...

--
Regards
Logged

dNetGuru

  • Anope User
  • Offline Offline
  • Posts: 15
    • Http://www.hackerz.ir
(No subject)
« Reply #5 on: April 24, 2007, 02:46:42 AM »

Quote
Originally posted by Rob
 I suggest you re-read the Makefile and build a working compile line, or simply issue "make modules" from the anope directory like everyone else, as the command you are using will never compile a working module.
[Edited on 23-4-2007 by Rob]


Thanks Rob, but I got the "anope's shutdown upon loading os_clientjoin" problem with the make modules so I tried to read the make file and do the other stuff to see if there is any problem with the module's code, or any incompatibility with the latest devel anope ! ...

[Edited on 24-4-2007 by dNetGuru]
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #6 on: April 24, 2007, 09:17:49 AM »

if it doesn't work with anope's make, it s definately the module... anope's make will still spit out compile errors & warnings if it encounters them btw, so no need to try to compile it manually. You should contact the modules' authors to get it fixed... it s not such an old module and the coders are still around (sometimes at least) so i d leave fixing it to them...
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)
Pages: [1]   Go Up