atheme / atheme-contrib-modules

Community-supported modules for Atheme
https://atheme.github.io/
Other
33 stars 39 forks source link

cs_modesync #17

Closed Yorgosgr closed 11 years ago

Yorgosgr commented 11 years ago

i noticed that this module is not compiled during make like others and when i tried to i got this:

irchat@irchatters.net [~/athemenew/atheme7.0.6/modules/contrib]# make SRCS=cs_modesync.c cs_modesync.c:21: error: expected β)β before β_β token cs_modesync.c: In function β_modinitβ: cs_modesync.c:42: error: implicit declaration of function βhook_add_channel_modeβ cs_modesync.c:42: error: βon_channel_modeβ undeclared (first use in this function) cs_modesync.c:42: error: (Each undeclared identifier is reported only once cs_modesync.c:42: error: for each function it appears in.) cs_modesync.c: In function β_moddeinitβ: cs_modesync.c:47: error: implicit declaration of function βhook_del_channel_modeβ cs_modesync.c:47: error: βon_channel_modeβ undeclared (first use in this function) Failed to compile csmodesync.c! make[1]: ** [cs_modesync.so] Error 1 make: *\ [all] Error 2

dwfreed commented 11 years ago

You don't need to do that. ./configure --enable-contrib will enable building of contrib modules, and solve your error. When I build latest HEAD, it's compiled for me:

CompileModule: cs_modesync.so

Keep in mind that the contrib modules are implemented as a git submodule, and so you need at least Atheme revision atheme/atheme@d7a2e6a or newer in order to have cs_modesync (and you should git submodule update whenever you git pull just in case there are submodule updates, though I believe git will tell you about them).