[Box Backup] Could do with some advice on getting Boxbackup compiled ....

boxbackup@fluffy.co.uk boxbackup@fluffy.co.uk
Tue, 14 Mar 2006 10:01:52 +0000


Hello Boxbackup mailing list!,

Ben may recall that I set up Boxbackup 0.09 to do the security backups for an SME
server onto another SME server - that was back in March/April last year.   
Anyway, I made some detailed notes about how to set about doing this and so when
another client requested a similar system I felt confident that there would be no
problems.
Unfortunately that's not turned out to be the case and I wonder if someone could help
me out getting the Boxbackup system compiled.

So ....  SME server is basically a stripped down RH7.3 system in its present release,
soon to become a stripped down CentOS 4.2 (2.6.x kernel) in the next release.  The
first hurdle to overcome in the current release is OpenSSL - it's version 0.9.6b in
the standard release.  I decided to install a separate version for the use of
Boxbackup and so I downloaded OpenSSL 0.9.8a and created a new version in
/opt/ssl-0.9.8a configured using the command
#./config shared --prefix=/opt/openssl-0.9.8a.

This all seemed to go OK.

I next got a copy of your latest Boxbackup - version 0.10.  I read  the notes in the
distribution and on the website and did the following ...

# export PATH=$PATH:/opt/openssl-0.9.8a
# cd /downloads/boxbackup.0.10
#./configure openssl:/opt/openssl-0.9.8a link:-static

And this is what I got ....

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: openssl:/opt/openssl-0.9.8a/
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: link:-static
checking build system type... Invalid configuration `openssl:/opt/ 
openssl-0.9.8a/':
machine `openssl:/opt/openssl' not recognized
configure: error: /bin/sh ./config.sub openssl:/opt/openssl-0.9.8a/  failed
[root@spc-server boxbackup-0.10]#

So I spent the next couple of hours snuffling around the Internet and finally decided
that the documentation must be out of date and so I tried the following:

#./configure --with-ssl-headers=/opt/openssl-0.9.8a/include
--with-ssl-lib=/opt/openssl-0.9.8a/lib  --enable-static-bin
--prefix=/usr/local/bin/boxbackup --enable-gnu-readline

This was much more promising and gave me a complete configuration run.  I next did
'make' and things again didn't work out.  The last few lines of the 'make' output are:

=====================================================================

(cd ../../lib/server; make RELEASE=1 NODEPS=1)
make[2]: Entering directory `/downloads/boxbackup-0.10/lib/server'
g++ -DNDEBUG -O2 -Wall -I../../lib/common  -DBOX_VERSION="\"0.10\"" 
-I/opt/openssl-0.9.8a/include -g -Wall -
c Daemon.cpp -o ../../release/lib/server/Daemon.o
Daemon.cpp: In method `int Daemon::Main (const char *, int, const char
**)':
Daemon.cpp:174: no match for `auto_ptr<Configuration> & =
auto_ptr<Configuration>'
/usr/include/g++-3/memory:40: candidates are: auto_ptr<_Tp>
&auto_ptr<_Tp>::operator= (auto_ptr<_Tp> &) [with _Tp = Configuration]
/usr/include/g++-3/memory:48:                 auto_ptr<_Tp>
&auto_ptr<_Tp>::operator= (auto_ptr<_Tp1> &) [with _Tp1 =
Configuration, _Tp = Configuration]
make[2]: *** [../../release/lib/server/Daemon.o] Error 1
make[2]: Leaving directory `/downloads/boxbackup-0.10/lib/server'
make[1]: *** [dep_modules] Error 2
make[1]: Leaving directory `/downloads/boxbackup-0.10/bin/bbackupd'
make: *** [parcels/boxbackup-0.10-backup-client-linux-gnu.tgz] Error 2

=====================================================================

As far as I can make out, auto_ptr is part of the C++ STL.  Not being a C++
programmer puts me at a bit of a disadvantage here, but I would have thought that
'auto_ptr' was included as part of the gcc package.

Can anyone advise me as to what's gone wrong here?

Regards,

Dave


--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.com