Hi. When I try to compile the module for mysql I've the
following error:
gcc -g -O2 -Wall -o inserter.o inserter.c -shared
-I/usr/src/down/nagios/nagios-cvs/include
-I/usr/include/mysql -lmysqlclient -fPIC
inserter.c: In function 'nebmodule_init':
inserter.c:138: warning: passing argument 3 of
'neb_register_callback' makes integer from pointer
without a cast
inserter.c:138: error: too few arguments to function
'neb_register_callback'
inserter.c: In function 'loadconfig':
inserter.c:343: warning: passing argument 3 of
'neb_register_callback' makes integer from pointer
without a cast
inserter.c:343: error: too few arguments to function
'neb_register_callback'
inserter.c:344: warning: passing argument 3 of
'neb_register_callback' makes integer from pointer
without a cast
inserter.c:344: error: too few arguments to function
'neb_register_callback'
inserter.c:345: warning: passing argument 3 of
'neb_register_callback' makes integer from pointer
without a cast
inserter.c:345: error: too few arguments to function
'neb_register_callback'
inserter.c:346: warning: passing argument 3 of
'neb_register_callback' makes integer from pointer
without a cast
inserter.c:346: error: too few arguments to function
'neb_register_callback'
make: *** [all] Error 1
Can you help me?
Logged In: YES
user_id=850163
neb_register_callback has apparently gotten a new argument
recently - void *mod_handle
it's defined:
int neb_register_callback(int callback_type, void
*mod_handle, int priority, int (*callback_func)(int,void *)) {
...
Too bad I'm not a real C coder, else I might have a clue
what that means.
Logged In: NO
You can get the new version of inserter.c from the CVS, and
these errors dissappear.