Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

won't compile with blacklist module #35

Open
xnite opened this issue Oct 5, 2015 · 1 comment
Open

won't compile with blacklist module #35

xnite opened this issue Oct 5, 2015 · 1 comment
Labels

Comments

@xnite
Copy link

xnite commented Oct 5, 2015

I can't seem to figure out why X3 won't compile with the blacklist module:

mod-blacklist.c: In function ‘blacklist_init’:
mod-blacklist.c:401:23: warning: passing argument 1 of ‘reg_new_user_func’ from incompatible pointer type
     reg_new_user_func(blacklist_check_user);
                       ^
In file included from gline.h:24:0,
                 from mod-blacklist.c:22:
hash.h:414:6: note: expected ‘new_user_func_t’ but argument is of type ‘int (*)(struct userNode *)’
 void reg_new_user_func(new_user_func_t handler, void *extra);
      ^
mod-blacklist.c:401:5: error: too few arguments to function ‘reg_new_user_func’
     reg_new_user_func(blacklist_check_user);
     ^
In file included from gline.h:24:0,
                 from mod-blacklist.c:22:
hash.h:414:6: note: declared here
 void reg_new_user_func(new_user_func_t handler, void *extra);
      ^
mod-blacklist.c:402:19: warning: passing argument 1 of ‘reg_exit_func’ from incompatible pointer type
     reg_exit_func(blacklist_cleanup);
                   ^
In file included from recdb.h:24:0,
                 from conf.h:24,
                 from mod-blacklist.c:21:
common.h:172:6: note: expected ‘exit_func_t’ but argument is of type ‘void (*)(void)’
 void reg_exit_func(exit_func_t handler, void *extra);
      ^
mod-blacklist.c:402:5: error: too few arguments to function ‘reg_exit_func’
     reg_exit_func(blacklist_cleanup);
     ^
In file included from recdb.h:24:0,
                 from conf.h:24,
                 from mod-blacklist.c:21:
common.h:172:6: note: declared here
 void reg_exit_func(exit_func_t handler, void *extra);
      ^
Makefile:411: recipe for target 'mod-blacklist.o' failed
make[2]: *** [mod-blacklist.o] Error 1
make[2]: Leaving directory '/home/ircd/x3-source/src'
Makefile:285: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ircd/x3-source/src'
Makefile:268: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
@rubinlinux
Copy link
Member

I'm afraid that module had not been used in a long time, and some of the
functions it uses have had changes. I suggest doing blacklist checks in
the nefarius ircd with iauth instead.
-Rubin
On Oct 5, 2015 11:06 AM, "Robert Whitney" [email protected] wrote:

I can't seem to figure out why X3 won't compile with the blacklist module:

mod-blacklist.c: In function ‘blacklist_init’:
mod-blacklist.c:401:23: warning: passing argument 1 of ‘reg_new_user_func’
from incompatible pointer type
reg_new_user_func(blacklist_check_user);
^
In file included from gline.h:24:0,
from mod-blacklist.c:22:
hash.h:414:6: note: expected ‘new_user_func_t’ but argument is of type
‘int ()(struct userNode *)’
void reg_new_user_func(new_user_func_t handler, void *extra);
^
mod-blacklist.c:401:5: error: too few arguments to function
‘reg_new_user_func’
reg_new_user_func(blacklist_check_user);
^
In file included from gline.h:24:0,
from mod-blacklist.c:22:
hash.h:414:6: note: declared here
void reg_new_user_func(new_user_func_t handler, void *extra);
^
mod-blacklist.c:402:19: warning: passing argument 1 of ‘reg_exit_func’
from incompatible pointer type
reg_exit_func(blacklist_cleanup);
^
In file included from recdb.h:24:0,
from conf.h:24,
from mod-blacklist.c:21:
common.h:172:6: note: expected ‘exit_func_t’ but argument is of type ‘void
(
)(void)’
void reg_exit_func(exit_func_t handler, void extra);
^
mod-blacklist.c:402:5: error: too few arguments to function ‘reg_exit_func’
reg_exit_func(blacklist_cleanup);
^
In file included from recdb.h:24:0,
from conf.h:24,
from mod-blacklist.c:21:
common.h:172:6: note: declared here
void reg_exit_func(exit_func_t handler, void *extra);
^
Makefile:411: recipe for target 'mod-blacklist.o' failed
make[2]: *
* [mod-blacklist.o] Error 1
make[2]: Leaving directory '/home/ircd/x3-source/src'
Makefile:285: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ircd/x3-source/src'
Makefile:268: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


Reply to this email directly or view it on GitHub
#35.

@jobe1986 jobe1986 added the bug label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants