Bacula-users

Re: [Bacula-users] FreeBSD Bare Metal Recovery

2009-02-20 14:40:25
Subject: Re: [Bacula-users] FreeBSD Bare Metal Recovery
From: Doug Sampson <dougs AT dawnsign DOT com>
To: "'Pieter (NL)'" <pietersnld AT users.sourceforge DOT net>, bacula-users AT lists.sourceforge DOT net
Date: Fri, 20 Feb 2009 11:37:40 -0800
> > Found a few ways to create a static-fd (i think)
> > 
> > run make configure in /usr/ports/sysutils/bacula-client
> > write down (copy) the configure command with all the argument from
> > config.log in the work/bacula-2.4.4 dir
> > run make clean in /usr/ports/sysutils/bacula-client
> > now run make extract, make path and cd into work/bacula-2.4.4 
> 
> Make path doesn't work.
> 
> # corvus-root@/usr/ports/sysutils/bacula-client: make path
> # make: don't know how to make path. Stop
> # corvus-root@/usr/ports/sysutils/bacula-client: 
> 
> > and run the
> > copied configure command with all the arguments and add 
> > --enable-static-fd
> > to the line
> > run make and a static-bacula-fd is in src/filed directory.
> > 
> > run make in /usr/ports/sysutils/bacula-client
> > cd into  work/bacula-2.4.4/src/filed and run make static-bacula-fd
> > 
> > ldd static-bacula-fd
> > static-bacula-fd:
> >         libintl.so.8 => /usr/local/lib/libintl.so.8 (0x281e3000)
> >         libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x281ec000)
> > 
> > 
> > don't know if it will work dont have the resources to try it 
> > right now.

I went ahead with the next few commands even though the 'make path' command
failed (see above). I cd'ed into work/bacula-2.4.4 and executed the
configure command along with --enable-static-fd. It completed and I ran the
next command 'make' and it failed. Last few lines of error message as
follows:


==== Make of lib is good ====
 
==>Entering directory
/usr/ports/sysutils/bacula-client/work/bacula-2.4.4/src/findlib
Compiling find.c
Compiling match.c
Compiling find_one.c
Compiling attribs.c
Compiling create_file.c
Compiling bfile.c
Compiling drivetype.c
Compiling enable_priv.c
Compiling fstype.c
Compiling makepath.c
Compiling save-cwd.c
Making libfind.a ...
/usr/bin/ar cr libfind.a find.o match.o find_one.o attribs.o create_file.o
bfile.o drivetype.o enable_priv.o fstype.o makepath.o save-cwd.o
ranlib libfind.a
==== Make of findlib is good ====
 
==>Entering directory
/usr/ports/sysutils/bacula-client/work/bacula-2.4.4/src/filed
Compiling filed.c
Compiling authenticate.c
Compiling acl.c
Compiling backup.c
Compiling estimate.c
Compiling filed_conf.c
Compiling heartbeat.c
Compiling job.c
Compiling pythonfd.c
Compiling restore.c
Compiling status.c
Compiling verify.c
Compiling verify_vol.c
Linking bacula-fd ...
/usr/bin/g++   -L../lib -L../findlib -o bacula-fd filed.o authenticate.o
acl.o backup.o estimate.o  filed_conf.o heartbeat.o job.o pythonfd.o
restore.o status.o verify.o verify_vol.o   -lz -lfind -lbac -lm  -lpthread
-lwrap /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so
-Wl,-rpath -Wl,/usr/local/lib 
/usr/bin/g++   -static -L../lib -L../findlib -o static-bacula-fd filed.o
authenticate.o acl.o backup.o estimate.o  filed_conf.o heartbeat.o job.o
pythonfd.o  restore.o status.o verify.o verify_vol.o   -lz -lfind -lbac -lm
-lpthread   -lwrap /usr/local/lib/libintl.so -L/usr/local/lib
/usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib 
strip static-bacula-fd
==== Make of filed is good ====
 
==>Entering directory
/usr/ports/sysutils/bacula-client/work/bacula-2.4.4/src/console
Compiling console.c
console.c:709:22: error: readline.h: No such file or directory
console.c:710:21: error: history.h: No such file or directory
console.c: In function 'int get_cmd(FILE*, const char*, BSOCK*, int)':
console.c:718: error: 'rl_catch_signals' was not declared in this scope
console.c:719: error: 'readline' was not declared in this scope
console.c:727: error: 'add_history' was not declared in this scope
*** Error code 1

Stop in /usr/ports/sysutils/bacula-client/work/bacula-2.4.4/src/console.


  ====== Error in
/usr/ports/sysutils/bacula-client/work/bacula-2.4.4/src/console ======


==>Entering directory
/usr/ports/sysutils/bacula-client/work/bacula-2.4.4/manpages
corvus-root@/usr/ports/sysutils/bacula-client/work/bacula-2.4.4:




What then? Was this because of the failed 'make path' command?

~Doug

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users