Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: os_root_superadmin not compiling  (Read 7211 times)

0 Members and 1 Guest are viewing this topic.

Chad

  • Guest
os_root_superadmin not compiling
« on: May 07, 2007, 01:50:37 PM »

Code: [Select]
All done!  Now run "make" (or possibly "gmake") to compile your modules.
See the INSTALL, README and FAQ files if you have any problems.
make[1]: Entering directory `/root/Anope/modules'
gcc -O2 -Wall -g -c os_root_superadmin.c
os_root_superadmin.c: In function `AnopeInit':
os_root_superadmin.c:26: error: `EvtHook' undeclared (first use in this function)
os_root_superadmin.c:26: error: (Each undeclared identifier is reported only once
os_root_superadmin.c:26: error: for each function it appears in.)
os_root_superadmin.c:26: error: `hook' undeclared (first use in this function)
os_root_superadmin.c:28: warning: implicit declaration of function `createEventHook'
os_root_superadmin.c:28: error: `EVENT_NICK_IDENTIFY' undeclared (first use in this function)
os_root_superadmin.c:29: warning: implicit declaration of function `moduleAddEventHook'
os_root_superadmin.c:38: warning: implicit declaration of function `moduleSetType'
os_root_superadmin.c:38: error: `THIRD' undeclared (first use in this function)
make[1]: *** [os_root_superadmin.o] Error 1
make[1]: Leaving directory `/root/Anope/modules'
make: *** [modules] Error 2


What is wrong?  I'm new to Anope (sorta) but this is confusing!
Logged

n00bie

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 411
(No subject)
« Reply #1 on: May 07, 2007, 05:26:00 PM »

what version of Anope are you using? It will work only on 1.7.17 and later ...
Logged
I am always doing things that which I cannot do, in order that I may learn how to do it.

Chad

  • Guest
(No subject)
« Reply #2 on: May 07, 2007, 11:32:00 PM »

I just downloaded Anope yesterday, so 1.7.18.
Logged

Chad

  • Guest
(No subject)
« Reply #3 on: May 09, 2007, 11:15:08 PM »

Anyone?  I really need to get these modules to compile! :)

[Edited on 9-5-2007 by Chad]
Logged

n00bie

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 411
(No subject)
« Reply #4 on: May 10, 2007, 01:17:54 PM »

make sure that you put the modules inside "anope-dir/src/modules" folder and not anope/modules :9
Logged
I am always doing things that which I cannot do, in order that I may learn how to do it.

Chad

  • Guest
(No subject)
« Reply #5 on: May 12, 2007, 09:57:20 AM »

ok, recompiled, structured it, and made its own ircserver user and group.  I still get his error:

Code: [Select]
[ircserver@as src]$ gmake
(cd lang ; gmake CFLAGS=" -O2 -Wall -g")
gmake[1]: Entering directory `/home/ircserver/services/src/lang'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/ircserver/services/src/lang'
All done!  Now run "make" (or possibly "gmake") to compile your modules.
See the INSTALL, README and FAQ files if you have any problems.
gmake[1]: Entering directory `/home/ircserver/services/src/modules'
gcc -O2 -Wall -g -c os_root_superadmin.c
os_root_superadmin.c: In function `AnopeInit':
os_root_superadmin.c:26: error: `EvtHook' undeclared (first use in this function)
os_root_superadmin.c:26: error: (Each undeclared identifier is reported only once
os_root_superadmin.c:26: error: for each function it appears in.)
os_root_superadmin.c:26: error: `hook' undeclared (first use in this function)
os_root_superadmin.c:28: warning: implicit declaration of function `createEventHook'
os_root_superadmin.c:28: error: `EVENT_NICK_IDENTIFY' undeclared (first use in this function)
os_root_superadmin.c:29: warning: implicit declaration of function `moduleAddEventHook'
os_root_superadmin.c:38: warning: implicit declaration of function `moduleSetType'
os_root_superadmin.c:38: error: `THIRD' undeclared (first use in this function)
gmake[1]: *** [os_root_superadmin.o] Error 1
gmake[1]: Leaving directory `/home/ircserver/services/src/modules'
gmake: *** [modules] Error 2
[ircserver@as src]$


with ircd_init, i get:
Code: [Select]
[ircserver@as src]$ make modules
All done!  Now run "make" (or possibly "gmake") to compile your modules.
See the INSTALL, README and FAQ files if you have any problems.
make[1]: Entering directory `/home/ircserver/services/src/modules'
gcc -O2 -Wall -g -c ircd_init.c
ircd_init.c: In function `AnopeInit':
ircd_init.c:61: error: `MODULE_EXT' undeclared (first use in this function)
ircd_init.c:61: error: (Each undeclared identifier is reported only once
ircd_init.c:61: error: for each function it appears in.)
ircd_init.c: In function `load_chanserv':
ircd_init.c:75: warning: implicit declaration of function `anope_cmd_join'
ircd_init.c:76: error: `IRCDModule' undeclared (first use in this function)
ircd_init.c:83: warning: implicit declaration of function `anope_cmd_mode'
ircd_init.c: In function `cs_kick_rejoin':
ircd_init.c:101: error: `IRCDModule' undeclared (first use in this function)
ircd_init.c:113: warning: implicit declaration of function `anope_cmd_kick'
ircd_init.c: In function `load_services':
ircd_init.c:121: error: `IRCDModule' undeclared (first use in this function)
ircd_init.c: In function `load_bots':
ircd_init.c:391: error: `nbots' undeclared (first use in this function)
ircd_init.c:397: error: `IRCDModule' undeclared (first use in this function)
ircd_init.c: In function `AnopeFini':
ircd_init.c:415: error: `MODULE_EXT' undeclared (first use in this function)
make[1]: *** [ircd_init.o] Error 1
make[1]: Leaving directory `/home/ircserver/services/src/modules'
make: *** [modules] Error 2
[ircserver@as src]$


the catserv and moo modules compile, so i know i can compile! :)

[Edited on 12-5-2007 by Chad]
Logged

katsklaw

  • Guest
(No subject)
« Reply #6 on: May 12, 2007, 02:18:33 PM »

If you read anything on the modules page, http://modules.anope.org/viewmod.php?id=3 you would see that ircd_init doesn't work on 1.7.18.

Correction: It's not supported by 1.7.18 as of yet.

[Edited on 12-5-2007 by katsklaw]
Logged

Chad

  • Guest
(No subject)
« Reply #7 on: May 14, 2007, 05:58:51 AM »

Quote
Originally posted by katsklaw
If you read anything on the modules page, http://modules.anope.org/viewmod.php?id=3 you would see that ircd_init doesn't work on 1.7.18.

Correction: It's not supported by 1.7.18 as of yet.

[Edited on 12-5-2007 by katsklaw]


OK, but that doesn't fix my problem with the other modules...
Logged

SNU

  • Anope User
  • Offline Offline
  • Posts: 158
    • http://www.firstclassirc.com
(No subject)
« Reply #8 on: May 14, 2007, 09:42:54 AM »

Quote
[ircserver@as src]$


It seems you're in the wrong folder to do make modules! type make modules where you did ./Config and make to compile Anope!
Logged
Pages: [1]   Go Up