[Box Backup] Re: running on a DEC alpha

Ben Summers boxbackup@fluffy.co.uk
Sun, 27 Jun 2004 12:44:42 +0100


On 27 Jun 2004, at 07:13, Patrick YU wrote:

>
> On Sat, 26 Jun 2004 19:14:34 +0800, "Patrick YU" <m@yhk.name> said:
>> Hello all.  After last failed attempt (bad c++ compiler) on an alpha  
>> via
>> OpenBSD, I try my luck on NetBSD (version 1.6.2).  Well, while it ran
>> fine the simple c++ compile test program from Ben's previous email,  
>> the
>> "./runtest.pl ALL" still fails [using boxbackup-0.06PLUS2] --
>
> Following up to this, I've installed gcc 3.3.1 and the linking stage
> failed with a lot of "undefined reference to" errors:
>
> /usr/pkg/gcc3/bin/g++ -o ../../release/bin/bbackupd/bbackupd
> ../../release/bin/bbackupd/BackupClientContext.o
> ../../release/bin/bbackupd/BackupClientDeleteList
> .o ../../release/bin/bbackupd/BackupClientDirectoryRecord.o
> ../../release/bin/bbackupd/BackupClientInodeToIDMap.o
> ../../release/bin/bbackupd/BackupDaemon.o ../.
> ./release/bin/bbackupd/bbackupd.o
> ../../release/lib/backupclient/backupclient.a../../release/lib/server/ 
> server.a
> ../../release/lib/crypto/crypto.a ../../releas
> e/lib/compress/compress.a ../../release/lib/common/common.a -lssl
> -lcrypto -lz ../../release/bin/bbackupd/BackupClientContext.o: In
> function `BackupClientContext::GetConnection()':
> ../../release/bin/bbackupd/BackupClientContext.o(.text+0x458):  
> undefined
> reference to `SocketStreamTLS::Open(TLSContext const&, int, char  
> const*,
> int)'
> ../../release/bin/bbackupd/BackupClientContext.o(.text+0x490):  
> undefined
> reference to `SocketStreamTLS::Open(TLSContext const&, int, char  
> const*,
> int)'
> ../../release/bin/bbackupd/BackupClientContext.o(.text+0x4d8):  
> undefined
> reference to `Protocol::Handshake()'
> [...]
>
> Do I need to add some linker flag to ./configure ?

You shouldn't see messages like that. Did you start again from a clean  
untar of the distribution archive before compiling again?  
(unfortunately the root level makefile doesn't implement "make clean"  
quite right yet.)

Ben