1820733 Members
3293 Online
109627 Solutions
New Discussion юеВ

Re: Bacula

 
Scott Sprague_4
Occasional Advisor

Bacula

Has anyone managed to build Bacula on an HP-UX? I'm running version 11.11.
28 REPLIES 28
lawrenzo
Trusted Contributor

Re: Bacula

I read a document when looking into this software and as far as I am aware bacula is for Redhat, FreeBSD and solaris.

http://www.bacula.org/rel-bacula.pdf

HTH
hello
Scott Sprague_4
Occasional Advisor

Re: Bacula

Yes, but in the documentation, they say that it has been used on HP-UX. So I'm looking for someone who has successfully built it on an HP-UX platform.
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Hi,

I also had no success yet, but I assume someone with reasonable programming backgroup should be able to get it running quite fast. I think there's a few people using bacula on HP-UX and AIX, but they don't watch the mailinglists to closely :/

yesterday I stood at the edge. Today I'm one step ahead.
Alex Lavrov.
Honored Contributor

Re: Bacula

Well, they say that it can be run on HPUX:
"Bacula is said to work on other systems (AIX, BSDI, HPUX, ...) but we do not have first hand knowledge of these systems."


But there is so many things to install, that I guess you can go crazy installing all the packages it needs .... ;)
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Bacula has little dependencies, most of them are optional.

It's advisable to have termcap, readline, openssl and zlib working. everything else is just added GUIs or mtx-related stuff You don't need. (ok, on a server You'll possibly need mtx and some database, but i.e. mysql is available precompiled.)

If You know anyone that is able to do the porting, I'll happily supply a system that meets all dependencies ;)
yesterday I stood at the edge. Today I'm one step ahead.
Alex Lavrov.
Honored Contributor

Re: Bacula

Hmm, it will be interesting doing it just for fun. System is not a problem, I have plenty of servers (from c200 to itanium superdomes), but a help from someone will be a very nice idea :)
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Alex,

if You want to start on it, contact kern sibbald via the bacula-devel mailing list at sourceforge.

otherwise, the bacula manual is really extensive, I think they've documented every single database table they use ;)

for testing You can define a file device instead of a 'real' tape, but of course this is after making it compile. heh.

Just getting the client to run on HP-UX would be the single greatest thing for me.
yesterday I stood at the edge. Today I'm one step ahead.
Alex Lavrov.
Honored Contributor

Re: Bacula

I'll let you know if I had any luck compiling it on HPUX.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Alex,

watch out to use the --enable-smartprealloc (or something similar, I don't remember the exact name) option, and check that You have a termcap.h available.

Here are my (old) notes:
http://justblog.blogdns.org/netzwerk/stories/1706/
yesterday I stood at the edge. Today I'm one step ahead.
Alex Lavrov.
Honored Contributor

Re: Bacula

OK, thanx (tho it could help if I knew German) :)
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

My bad, I translated it. :)

In the end, it's just a strange issue with readtime.h I couldn't grok.
yesterday I stood at the edge. Today I'm one step ahead.
Scott Sprague_4
Occasional Advisor

Re: Bacula

Well, I've reached the end of my (rather limited) programming skills. I've gotten the libraries to compile, but I cannot get the client daemon to do so.

All I'm trying to compile is the client, since the server lives on a Linux box. Anybody who can actually get the file daemon to compile will have my eternal gratitude. :)

Here's the errors, if anyone's interested. I'm using gcc to compile:

# make
==>Entering directory /opt/bacula-1.36.3/src
==>Entering directory /opt/bacula-1.36.3/scripts
==>Entering directory /opt/bacula-1.36.3/doc
==>Entering directory /opt/bacula-1.36.3/src/lib
==== Make of lib is good ====

==>Entering directory /opt/bacula-1.36.3/src/findlib
==== Make of findlib is good ====

==>Entering directory /opt/bacula-1.36.3/src/filed
g++ -L../lib -L../findlib -o bacula-fd filed.o authenticate.o backup.o estimate.o filed_conf.o heartbeat.o job.o restore.o status.o verify.o verify_vol.o \
-lfind -lbac -lm -lgen
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (filed.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
__pthread_cancel_stack (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.


-e ====== Error in /opt/bacula-1.36.3/src/filed ======


==>Entering directory /opt/bacula-1.36.3/src/console
g++ -L../lib -L../cats -o bconsole console.o console_conf.o authenticate.o conio.o \
-lcurses -lbac -lm -lgen
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (console.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
__pthread_cancel_stack (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.


-e ====== Error in /opt/bacula-1.36.3/src/console ======


==>Entering directory /opt/bacula-1.36.3/rescue
==>Entering directory /opt/bacula-1.36.3/rescue/linux
Alex Lavrov.
Honored Contributor

Re: Bacula

What version of gcc do you have?

gcc -v
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Scott Sprague_4
Occasional Advisor

Re: Bacula

3.4.3. Just installed it last week.
Alex Lavrov.
Honored Contributor

Re: Bacula

http://www5.itrc.hp.com/service/patch/search.do?BC=patch.breadcrumb.main|&pageContextName=hpux:::

Do you have all the patches for pthread library? Search in that link by keyword "pthread".
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Scott Sprague_4
Occasional Advisor

Re: Bacula

Yes, I believe so. PHCO_30544 is installed on the machine.
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Scott, this sounds like gcc tried to compile PA-8000+ code and You (just like me) run a 32bit system.
yesterday I stood at the edge. Today I'm one step ahead.
Scott Sprague_4
Occasional Advisor

Re: Bacula

That sounds like a problem. Is there a way to force it to do 32 bit?
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Sure, just don't ask me ;)

at first, configure is guessing the host type, this should be noted in config.log and should read something like hp-hppa11-hpux, but I'd say it doesn't. second, there's a gcc flag for that, on irix I know people set a '-n64 or -n32', but I think we'll have for someone to verify our guesses.
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Just wanted to say I'll try to get it compile on a 64bit/PA-8500/11.11 system now. I've got ansi-c and gcc on it, so maybe I'll be able to wrap a few scripts around the compile process and have them run every possible combination of toolchains until some binaries fall onto the disk.
yesterday I stood at the edge. Today I'm one step ahead.
Scott Sprague_4
Occasional Advisor

Re: Bacula

Wow, I didn't realize anyone was still interested in this thread. :)

I solved the problem by a rather ugly process. I created two scripts on my Linux backup server for each HP I have. One script NFS mounts the partitions I want to back up, the other unmounts them. Using the RunBeforeJob and RunAfterJob commands in Bacula, I mount the filesystems, back them up, then unmount them automatically. It's ugly, but it works well, and I can back up 8 gigs of data in about 15 minutes via NFS.

However, if you can get it to build, I'd love to run it natively on the HP's themselves.
Alan Meyer_4
Respected Contributor

Re: Bacula

Scott, these people busted their butts to work on the solution for you. Maybe it didn't work out, maybe it did, but proper forum etiquette says, maybe you should think about assigning some points to these responses.
" I may not be certified, but I am certifiable... "
Scott Sprague_4
Occasional Advisor

Re: Bacula

There you go. Sorry about that.
Florian Heigl (new acc)
Honored Contributor

Re: Bacula

Client binaries are done :)

root@lala:/test_1/bacula.gcc>find .
.
./sbin
./sbin/btraceback
./sbin/bacula-fd
./sbin/bconsole
./etc
./etc/startmysql
./etc/stopmysql
./etc/bconsole
./etc/gconsole
./etc/bacula
./etc/mtx-changer
./etc/btraceback.gdb
./etc/btraceback.dbx
./etc/mtx-changer.old
./etc/bacula-fd.conf
./etc/bconsole.conf
./var
./var/bacula
./var/bacula/working


I did this on a test system at work, so I can't create a depot out of them and give it out, but I'll try to rebuild everything on HP's Testdrive.

If You want to try it Yourself, here are the things I set / used:



export LANG=C
export PATH=$PATH:/usr/local/bin
export CC=/usr/local/bin/gcc
export CXX=/usr/local/bin/g++
export CPP=/usr/local/bin/cpp
export MAKE=/usr/local/bin/gmake
export LDFLAGS="-lcl -lpthread"


$CC -v
Reading specs from /usr/local/lib/gcc/hppa2.0w-hp-hpux11.11/3.4.3/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure
Thread model: single
gcc version 3.4.3

Software from the hp-ux porting archive I installed for this:
autoconf 2.59 autoconf
bash 3.00.14 bash
bison 2.0 bison
flex 2.5.4a flex
gawk 3.1.4 gawk
gcc 3.4.3 gcc
gettext 0.14.1 gettext
libiconv 1.9.2 libiconv
lsof 4.75 lsof
make 3.80 make
perl 5.8.6 perl
rcs 5.7 rcs
texinfo 4.8 texinfo

So long,
florian

(heading for the server binaries now ;)
yesterday I stood at the edge. Today I'm one step ahead.