Hi all,
seems that there was a little change in the interfaces i didn't see
before...
here's a patch:
[EMAIL PROTECTED] check_bacula]# diff -Naur check_bacula.c
/export/install/bacula-2.2.6/src/check_bacula
--- check_bacula.c 2005-05-23 09:19:43.000000000 +0200
+++ /export/install/bacula-2.2.6/src/check_bacula/check_bacula.c
2007-11-22 12:50:57.000000000 +0100
@@ -280,17 +280,17 @@
switch (item->type) {
case R_DIRECTOR:
dird = (DIRRES*)item->resource;
- item->D_sock = bnet_connect(NULL, 0, 0, "Director daemon",
dird->address, NULL, dird->DIRport, 0);
+ item->D_sock = bnet_connect(NULL, 0, 0, 0, "Director daemon",
dird->address, NULL, dird->DIRport, 0);
dname = "Director";
break;
case R_CLIENT:
filed = (CLIENT*)item->resource;
- item->D_sock = bnet_connect(NULL, 0, 0, "File daemon",
filed->address, NULL, filed->FDport, 0);
+ item->D_sock = bnet_connect(NULL, 0, 0, 0, "File daemon",
filed->address, NULL, filed->FDport, 0);
dname = "FileDaemon";
break;
case R_STORAGE:
stored = (STORE*)item->resource;
- item->D_sock = bnet_connect(NULL, 0, 0, "Storage daemon",
stored->address, NULL, stored->SDport, 0);
+ item->D_sock = bnet_connect(NULL, 0, 0, 0, "Storage daemon",
stored->address, NULL, stored->SDport, 0);
dname = "StorageDaemon";
break;
default:
Christian
--
"I sense much NT in you, NT leads to Blue Screen.
Blue Screen leads to downtime, downtime leads to suffering. NT is the path to
the darkside."
- Unknown Unix Jedi
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Arno Lehmann
> Sent: Friday, December 07, 2007 10:40 PM
> To: bacula-devel
> Subject: [Bacula-devel] check_bacula
>
> 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
>
-------------------------------------------------------------------------
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