Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: need help with compiling a module  (Read 4026 times)

0 Members and 1 Guest are viewing this topic.

Teflon

  • Guest
need help with compiling a module
« on: September 24, 2006, 03:28:48 AM »

I placed the module in the module folder then ssh'ed in to the server to compile it. I used this command:

Code: [Select]
make custommodule MODULEFILE=os_clientjoin

but then I get a bunch of errors...


Code: [Select]
make custommodule MODULEFILE=os_clientjoin
cc  -fPIC -DPIC -shared  -DDYNAMIC_LINKING
        -o os_clientjoin.so os_clientjoin.c
os_clientjoin.c:1:20: module.h: No such file or directory
os_clientjoin.c:109: syntax error before '*' token
os_clientjoin.c:110: syntax error before '*' token
os_clientjoin.c:113: syntax error before '*' token
os_clientjoin.c: In function `AnopeInit':
os_clientjoin.c:126: `Command' undeclared (first use in this function)
os_clientjoin.c:126: (Each undeclared identifier is reported only once
os_clientjoin.c:126: for each function it appears in.)
os_clientjoin.c:126: `c' undeclared (first use in this function)
os_clientjoin.c:127: `EvtHook' undeclared (first use in this function)
os_clientjoin.c:127: `hook' undeclared (first use in this function)
os_clientjoin.c:129: `is_services_root' undeclared (first use in this function)
os_clientjoin.c:130: `OPERSERV' undeclared (first use in this function)
os_clientjoin.c:130: `MOD_HEAD' undeclared (first use in this function)
os_clientjoin.c:133: `EVENT_RELOAD' undeclared (first use in this function)
os_clientjoin.c:135: `MOD_ERR_OK' undeclared (first use in this function)
os_clientjoin.c:136: `MODULE_EXT' undeclared (first use in this function)
os_clientjoin.c:137: `MOD_STOP' undeclared (first use in this function)
os_clientjoin.c:151: `THIRD' undeclared (first use in this function)
os_clientjoin.c:153: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c: At top level:
os_clientjoin.c:174: syntax error before '*' token
os_clientjoin.c: In function `do_clientjoin_help':
os_clientjoin.c:176: `is_services_root' used prior to declaration
os_clientjoin.c:176: `u' undeclared (first use in this function)
os_clientjoin.c:177: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c: At top level:
os_clientjoin.c:184: syntax error before '*' token
os_clientjoin.c: In function `do_clientjoin_help_full':
os_clientjoin.c:186: `u' undeclared (first use in this function)
os_clientjoin.c:187: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:189: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c: At top level:
os_clientjoin.c:194: syntax error before '*' token
os_clientjoin.c: In function `m_os_clientjoin':
os_clientjoin.c:196: `Channel' undeclared (first use in this function)
os_clientjoin.c:196: `c' undeclared (first use in this function)
os_clientjoin.c:197: warning: initialization makes pointer from integer without a cast
os_clientjoin.c:198: `NULL' undeclared (first use in this function)
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: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:204: `u' undeclared (first use in this function)
os_clientjoin.c:207: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c:221: `MOD_STOP' undeclared (first use in this function)
os_clientjoin.c: In function `m_os_allservicesjoinchan':
os_clientjoin.c:259: `BotInfo' undeclared (first use in this function)
os_clientjoin.c:259: `bi' undeclared (first use in this function)
os_clientjoin.c:262: `s_ChanServ' undeclared (first use in this function)
os_clientjoin.c:264: `NULL' undeclared (first use in this function)
os_clientjoin.c:265: `s_MemoServ' undeclared (first use in this function)
os_clientjoin.c:266: `s_NickServ' undeclared (first use in this function)
os_clientjoin.c:267: `s_BotServ' undeclared (first use in this function)
os_clientjoin.c:268: `s_HostServ' undeclared (first use in this function)
os_clientjoin.c:269: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:270: `s_DevNull' undeclared (first use in this function)
os_clientjoin.c:271: `s_HelpServ' undeclared (first use in this function)
os_clientjoin.c:272: `s_GlobalNoticer' undeclared (first use in this function)
os_clientjoin.c:283: `botlists' undeclared (first use in this function)
os_clientjoin.c: In function `m_os_allservicespartchan':
os_clientjoin.c:319: `BotInfo' undeclared (first use in this function)
os_clientjoin.c:319: `bi' undeclared (first use in this function)
os_clientjoin.c:320: `ChannelInfo' undeclared (first use in this function)
os_clientjoin.c:320: `ci' undeclared (first use in this function)
os_clientjoin.c:322: `s_ChanServ' undeclared (first use in this function)
os_clientjoin.c:323: `s_MemoServ' undeclared (first use in this function)
os_clientjoin.c:324: `s_NickServ' undeclared (first use in this function)
os_clientjoin.c:325: `s_BotServ' undeclared (first use in this function)
os_clientjoin.c:326: `s_HostServ' undeclared (first use in this function)
os_clientjoin.c:327: `s_OperServ' undeclared (first use in this function)
os_clientjoin.c:328: `s_DevNull' undeclared (first use in this function)
os_clientjoin.c:329: `s_HelpServ' undeclared (first use in this function)
os_clientjoin.c:330: `s_GlobalNoticer' undeclared (first use in this function)
os_clientjoin.c:333: `botlists' undeclared (first use in this function)
os_clientjoin.c:334: `NULL' undeclared (first use in this function)
os_clientjoin.c: In function `AddLanguages':
os_clientjoin.c:480: `LANG_EN_US' undeclared (first use in this function)
os_clientjoin.c:481: `LANG_NL' undeclared (first use in this function)
os_clientjoin.c:482: `LANG_DE' undeclared (first use in this function)
os_clientjoin.c:483: `LANG_FR' undeclared (first use in this function)
os_clientjoin.c: In function `do_reload':
os_clientjoin.c:495: `EVENT_START' undeclared (first use in this function)
os_clientjoin.c:503: `MOD_CONT' undeclared (first use in this function)
os_clientjoin.c: In function `load_config':
os_clientjoin.c:518: `Directive' undeclared (first use in this function)
os_clientjoin.c:518: syntax error before "directivas"
os_clientjoin.c: At top level:
os_clientjoin.c:540: warning: data definition has no type or storage class
os_clientjoin.c:541: syntax error before '}' token
os_clientjoin.c:543: redefinition of `retval'
os_clientjoin.c:540: `retval' previously defined here
os_clientjoin.c:543: warning: data definition has no type or storage class
os_clientjoin.c:544: syntax error before '}' token
os_clientjoin.c:551: redefinition of `retval'
os_clientjoin.c:543: `retval' previously defined here
os_clientjoin.c:551: warning: data definition has no type or storage class
os_clientjoin.c:552: syntax error before '}' token
os_clientjoin.c:554: redefinition of `retval'
os_clientjoin.c:551: `retval' previously defined here
os_clientjoin.c:554: warning: data definition has no type or storage class
os_clientjoin.c:555: syntax error before '}' token
make: *** [custommodule] Error 1


I have no idea what to do.. I tired to load a diffrent module but get errors on that one to.
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #1 on: September 24, 2006, 09:06:19 AM »

make custommodule MODULEFILE=os_clientjoin  -  this isnt unreal.
Logged

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #2 on: September 24, 2006, 09:20:28 AM »

read the MODULES file in /docs/
Pages: [1]   Go Up