Masopust, Christian wrote:
>>> /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'
>
> <snip>
>
>>> Stop in /usr/local/src/bacula-2.0.1/src/check_bacula.
>>>
>> Hello Dave,
>>
>> seems that something during configure went wrong... when looking
>> at your protocol... compile does it fine when adding
>> /usr/local/include
>> to the include-path, but when linking check_bacula the order
>> "-L /usr/local/lib"
>> is missing (this is, in your case, where the libraries for
>> gettext are installed)
>>
>> Chris
>>
>
> time for a cup of coffee.... not only "-L /usr/local/lib" is missing...
> also "-lgettext" is missing....
>
> chris
Duh! I added the GETTEXT_LIB to Makefile.in, but left it out of the
build line (or whatever you C guys call it). Added the following to
check_bacula/Makefile.in,
46 check_bacula: $(MONITOROBJS) ../lib/libbac.a
47 $(CXX) $(LDFLAGS) $(MONITOR_LDFLAGS) -L../lib -L../cats -o $@
$(MONITOROBJS) \
48 $(DLIB) -lbac -lm $(LIBS) $(GETTEXT_LIBS)
^^^^^^^^^^^^^^^
configure, make, test is good.
bash-2.05b# ./check_bacula -H 10.0.240.200 -D dir -P 49001 -M
director-mon -K 'xxxxxxxxxxxxxxx'
BACULA OK - Director Status OK
Thank you for catching that. Now, with what I have and what I know, what
do you want me to do with it? I can untar a new copy of Bacula-2.0.1 and
create clean altered src that will compile check_bacula, then send you
the diff of the Bacula source.
Just let me know what I can do.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users