Hello, I'm currently trying to compile the check_bacula program from 2.2.6. Unfortunately, that doesn't work.
I get the following output: > neuelf:~/install/bacula-2.2.6/src/check_bacula # make > /usr/bin/g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. > -g -O2 -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti check_bacula.c > check_bacula.c: In function ‘int docmd(monitoritem*, const char*, char*)’: > check_bacula.c:272: warning: deprecated conversion from string constant to > ‘char*’ > check_bacula.c:283: error: invalid conversion from ‘const char*’ to ‘int64_t’ > check_bacula.c:283: error: invalid conversion from ‘int’ to ‘char*’ > ../lib/protos.h:93: error: too few arguments to function ‘BSOCK* > bnet_connect(JCR*, int, int64_t, int64_t, const char*, char*, char*, int, > int)’ > check_bacula.c:283: error: at this point in file > check_bacula.c:284: warning: deprecated conversion from string constant to > ‘char*’ > check_bacula.c:288: error: invalid conversion from ‘const char*’ to ‘int64_t’ > check_bacula.c:288: error: invalid conversion from ‘int’ to ‘char*’ > ../lib/protos.h:93: error: too few arguments to function ‘BSOCK* > bnet_connect(JCR*, int, int64_t, int64_t, const char*, char*, char*, int, > int)’ > check_bacula.c:288: error: at this point in file > check_bacula.c:289: warning: deprecated conversion from string constant to > ‘char*’ > check_bacula.c:293: error: invalid conversion from ‘const char*’ to ‘int64_t’ > check_bacula.c:293: error: invalid conversion from ‘int’ to ‘char*’ > ../lib/protos.h:93: error: too few arguments to function ‘BSOCK* > bnet_connect(JCR*, int, int64_t, int64_t, const char*, char*, char*, int, > int)’ > check_bacula.c:293: error: at this point in file > check_bacula.c:294: warning: deprecated conversion from string constant to > ‘char*’ > make: *** [check_bacula.o] Error 1 I see a difference in the API versions, i.e. some functions in Baculas internal API have changed parameters. Is this correct, and has anyone compiled and used check_bacula with 2.2.6 at all? Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
