Menu

#2 can't compile

open
nobody
5
2005-12-13
2005-12-13
Anonymous
No

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?

Discussion

  • Anonymous

    Anonymous - 2006-03-28

    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.

     
  • Nobody/Anonymous

    Logged In: NO

    You can get the new version of inserter.c from the CVS, and
    these errors dissappear.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.