[Box Backup-dev] Trunk build failure on FreeBSD/i386 5.4

James O'Gorman boxbackup-dev at fluffy.co.uk
Sun Dec 25 12:19:10 GMT 2005


(Yes, I know it's Christmas Day and I should be getting merry, but my 
family are boring and watching Indiana Jones...)

On 24/12/05 23:19, James O'Gorman wrote:
> On 24/12/05 23:00, Martin Ebourne wrote:
>> You have sys/endian.h but it does not define the 64 bit endian 
>> swapping functions htobe64() and betoh64(). Could you have a look and 
>> see if there are any 64 bit byte swapping functions, and if so where 
>> they are please?
> 
> Somewhat annoyingly, the function seems to be called be64toh(). Has 
> Protocol.cpp changed since the 0.09 release? This used to compile fine, 
> so I'm guessing the #ifdefs that were added in trunk have changed 
> something?

I modified lib/common/Box.h (line 141) to change
	#define box_ntoh64(x) betoh64(x)
to
	#define box_ntoh64(x) be64toh(x)

And that part seems to compile fine now. However, I now get:

g++ -DNDEBUG -O2 -Wall -I../../lib/win32 -I../../lib/common 
-I../../lib/server -I../../lib/compress -I../../lib/crypto 
-I../../lib/win32 -I../../lib/backupclient 
-DBOX_VERSION="\"0.09_autoconf_win32\""  -g -O2 -Wall -c 
BackupDaemon.cpp -o ../../release/bin/bbackupd/BackupDaemon.o
BackupDaemon.cpp: In member function `void 
BackupDaemon::SetupLocations(BackupClientContext&, const Configuration&)':
BackupDaemon.cpp:1271: error: aggregate `statfs s' has incomplete type 
and cannot be defined
BackupDaemon.cpp:1272: error: `::statfs' has not been declared
*** Error code 1

James



More information about the Boxbackup-dev mailing list