DAve wrote:
> Arno Lehmann wrote:
>> Hello,
>>
>> On 3/5/2007 10:44 PM, DAve wrote:
>>> We are still fighting with Windows Fd connection issues. I would like to 
>>> use the check_bacula plugin to monitor my Fds. Either nagios will keep 
>>> the client firewall open, or prove the issue is not Bacula (to my senior 
>>> sysadmin).
>> Hmm... but a connection closing problem would not be solved by this, I 
>> think. A router usually tracks the TCP connection, and thus your 
>> monitoring connection would not affect the FD connection issues with the 
>> DIR or SD.
> 
> Understood, the situation is like this.
> 
> Me -> "Why did fs1 drop the connection again last night? Bacula failed."
> 
> SA -> "There is nothing wrong with fs1, check your setup".
> 
> Me -> "Uh, we go through a PIX, a switch, fiber, another (unknown) 
> Firewall, and another switch. Have those been checked with the docs I 
> sent you about Bacula? Bacula has been working for two years *inside* 
> your PIX, kinda narrows the problem down a bit for me."
> 
> SA -> "There is nothing wrong with fs1".
> 
> Grasp -> Straw -> Repeat
> 
> In any event, monitoring will be good so I would like it working, no 
> problem helping whatever way I can.
> 
>>> I had lots of problems building at first but found most of the solution 
>>> in the archives. I followed the instructions from this thread,
>>>
>>> http://article.gmane.org/gmane.comp.bacula.user/26619/match=check+bacula
>>> http://article.gmane.org/gmane.comp.bacula.user/27144/match=check+bacula
>> Oh god... that one really is difficult. I would really like to see 
>> Christian working on the source, and someone - at least not me - on the 
>> build system :-o
>>
>>> check_bacula nearly compiles but fails with the following error,
> 
> <snip>
> 
>>> This is on FreeBSD 5.4, not a port, unpached, unmolested Bacula source. 
>>> Built with noting but ./configure --with-mysql=/usr/local
>>> Anyone got a solution?
>> Not a solution, only a hint from a non-programmer.
>>
>> This is all related to the gettext stuff, so you might need to include 
>> the path to the relevant libraries and header files into your makefile. 
>> Don't ask me for details, though - I have no iea where on a FreeBSD 
>> system you would expect them, why the ./configure script doesn't pick 
>> them up, and where in the makefile to add the information.
>>
>> Hope you get this working,
> 
> I added GETTEXT_LIBS = @LIBINTL@ to the Makefile.in of check_bacula, it 
> expanded properly, same compile failure. I am getting new sources from 
> the author.
> 
> Thank you,
> 
> DAve
> 

Sorry Christian,

Maybe I am doing something wrong, but the source you sent fails as well.
Sightly different output, but still a gettext issue it would seem. I did
double check, gettext and lintl are installed and working.

==>Entering directory /usr/local/src/bacula-2.0.1/src/check_bacula
/usr/bin/g++   -c -I/usr/local/include -fno-strict-aliasing
-fno-exceptions -fno-rtti  -I. -I..  -g -O2 -Wall -fno-strict-aliasing
-fno-exceptions -fno-rtti check_bacula.c
/usr/bin/g++   -c -I/usr/local/include -fno-strict-aliasing
-fno-exceptions -fno-rtti  -I. -I..  -g -O2 -Wall -fno-strict-aliasing
-fno-exceptions -fno-rtti authenticate.c
/usr/bin/g++ -O  -L../lib -L../cats -o check_bacula check_bacula.o
authenticate.o   -lbac -lm -lpthread
check_bacula.o(.text+0x1c): In function `usage':
/usr/local/src/bacula-2.0.1/src/check_bacula/check_bacula.c:58:
undefined reference to `gettext'
check_bacula.o(.text+0x463): In function `main':
/usr/local/src/bacula-2.0.1/src/check_bacula/check_bacula.c:110:
undefined reference to `libintl_textdomain'
../lib/libbac.a(bsys.o)(.text+0x1d4): In function `b_malloc(char const*,
int, unsigned int)':
/usr/local/src/bacula-2.0.1/src/lib/bsys.c:221: undefined reference to
`gettext'
../lib/libbac.a(bsys.o)(.text+0x27b): In function `brealloc(void*,
unsigned int)':
/usr/local/src/bacula-2.0.1/src/lib/bsys.c:244: undefined reference to
`gettext'
../lib/libbac.a(bsys.o)(.text+0x30b): In function `bcalloc(unsigned int,
unsigned int)':
/usr/local/src/bacula-2.0.1/src/lib/bsys.c:257: undefined reference to
`gettext'
../lib/libbac.a(bsys.o)(.text+0x38f): In function `_p(pthread_mutex**)':
../lib/berrno.h:87: undefined reference to `gettext'
../lib/libbac.a(bsys.o)(.text+0x41b): In function `_v(pthread_mutex**)':
../lib/berrno.h:87: undefined reference to `gettext'
../lib/libbac.a(bsys.o)(.text+0x4a0):/usr/local/src/bacula-2.0.1/src/lib/bsys.c:365:
 

more undefined references to `gettext' follow
*** Error code 1

Stop in /usr/local/src/bacula-2.0.1/src/check_bacula.


   ====== Error in /usr/local/src/bacula-2.0.1/src/check_bacula ======

Getext is installed,

/usr/local/bin/gettext
/usr/local/bin/gettext.sh
/usr/local/bin/gettextize
/usr/local/bin/ngettext
/usr/local/bin/xgettext
/usr/local/include/gettext-po.h
/usr/local/lib/gettext
/usr/local/lib/libgettextlib-0.14.1.so
/usr/local/lib/libgettextlib.a
/usr/local/lib/libgettextlib.so
/usr/local/lib/libgettextpo.a
/usr/local/lib/libgettextpo.so
/usr/local/lib/libgettextpo.so.1
/usr/local/lib/libgettextsrc-0.14.1.so
/usr/local/lib/libgettextsrc.so

/usr/local/include/libintl.h
/usr/local/lib/libintl.a
/usr/local/lib/libintl.so
/usr/local/lib/libintl.so.6


DAve


-- 
Three years now I've asked Google why they don't have a
logo change for Memorial Day. Why do they choose to do logos
for other non-international holidays, but nothing for
Veterans?

Maybe they forgot who made that choice possible.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to