[Box Backup] build problem on linux FC4 x84-64

John Pybus boxbackup@fluffy.co.uk
Mon, 26 Sep 2005 15:15:58 +0100


Hi,

I'm having trouble building boxbackup on an AMD64 machine running the 
64bit version of FC4.

I've applied the build tweak for gcc4 from:

http://lists.warhead.org.uk/pipermail/boxbackup/2005-July/001571.html

Build error below.  Anyone managed to build on x84-64 linux?

Cheers,

John


[boxbackup-0.09]# make
mkdir parcels/boxbackup-0.09-backup-client-Linux
(cd bin/bbackupd; make RELEASE=1)
make[1]: Entering directory `/usr/src/boxbackup-0.09/bin/bbackupd'
g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress 
-I../../lib/crypto -I../../lib/server -I../../lib/backupclient 
-DPLATFORM_LINUX -DPLATFORM_GCC3 -DBOX_VERSION="\"0.09\"" 
-D_FILE_OFFSET_BITS=64  -c BackupClientDeleteList.cpp -o 
../../release/bin/bbackupd/BackupClientDeleteList.o
g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress 
-I../../lib/crypto -I../../lib/server -I../../lib/backupclient 
-DPLATFORM_LINUX -DPLATFORM_GCC3 -DBOX_VERSION="\"0.09\"" 
-D_FILE_OFFSET_BITS=64  -c BackupClientContext.cpp -o 
../../release/bin/bbackupd/BackupClientContext.o
g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress 
-I../../lib/crypto -I../../lib/server -I../../lib/backupclient 
-DPLATFORM_LINUX -DPLATFORM_GCC3 -DBOX_VERSION="\"0.09\"" 
-D_FILE_OFFSET_BITS=64  -c BackupDaemon.cpp -o 
../../release/bin/bbackupd/BackupDaemon.o
../../lib/backupclient/BackupStoreFile.h: In static member function 
‘static void* BackupStoreFile::CodingChunkAlloc(int)’:
../../lib/backupclient/BackupStoreFile.h:164: error: cast from 
‘u_int8_t*’ to ‘u_int32_t’ loses precision
BackupDaemon.cpp: In member function ‘void BackupDaemon::Run2()’:
BackupDaemon.cpp:599: warning: format ‘%lld’ expects type ‘long long 
int’, but argument 3 has type ‘int64_t’
BackupDaemon.cpp:599: warning: format ‘%lld’ expects type ‘long long 
int’, but argument 4 has type ‘int64_t’
BackupDaemon.cpp:599: warning: format ‘%lld’ expects type ‘long long 
int’, but argument 5 has type ‘int64_t’
BackupDaemon.cpp: In member function ‘void 
BackupDaemon::DeleteUnusedRootDirEntries(BackupClientContext&)’:
BackupDaemon.cpp:1585: warning: format ‘%08llx’ expects type ‘long long 
unsigned int’, but argument 4 has type ‘int64_t’
make[1]: *** [../../release/bin/bbackupd/BackupDaemon.o] Error 1
make[1]: Leaving directory `/usr/src/boxbackup-0.09/bin/bbackupd'
make: *** [parcels/boxbackup-0.09-backup-client-Linux.tgz] Error 2

[boxbackup-0.09]# uname -srmpio
Linux 2.6.12-1.1398_FC4 x86_64 x86_64 x86_64 GNU/Linux

[boxbackup-0.09]# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-libgcj-multifile 
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)