[Box Backup] backupbox on MacOS X

Nikita Borisov boxbackup@fluffy.co.uk
Fri, 23 Sep 2005 15:42:32 -0500


I'm trying to install a boxbackup storage server on my MacOS 10.4 box.
 Initially, I had trouble compiling boxbackup, but after a small patch
to BoxPlatform.h (below) I got it to build.  However, when I ran the
unit tests, I got a number of failures, so something is wrong.  Here
are the errors I got:

% ./runtest.pl ALL | grep FAIL
IMPLICIT TEST FAILED: Something left files open
FAILED: 1 tests failed
FAILURE: Condition [foundCurrent] failed at testbackupstore.cpp(1354)
FAILURE: Condition [foundOld] failed at testbackupstore.cpp(1355)
IMPLICIT TEST FAILED: Something left files open
FAILED: 3 tests failed
IMPLICIT TEST FAILED: Something left files open
FAILED: 1 tests failed
IMPLICIT TEST FAILED: Something left files open
FAILED: 1 tests failed
basicserver: FAILED: 1 tests failed
backupstore: FAILED: 3 tests failed
backupstorepatch: FAILED: 1 tests failed
bbackupd: FAILED: 1 tests failed
%

I'm guessing the files left open isn't a very big deal, but the two
failures in the backupstore have me worried.  Any suggestions for
figuring out what's wrong?  I have the complete test output file up
at:

  http://www.crhc.uiuc.edu/~nikita/tmp/boxbackup.tests

Thanks,
- Nikita

PS. Here's the BoxPlatform patch I had to use:

diff -u lib/common/BoxPlatform.h.orig lib/common/BoxPlatform.h
--- lib/common/BoxPlatform.h.orig       2005-09-23 15:15:01.000000000 -0500
+++ lib/common/BoxPlatform.h    2005-09-23 15:15:18.000000000 -0500
@@ -117,7 +117,6 @@
        #include <sys/types.h>

        // types 'missing'
-       typedef int socklen_t;
        typedef u_int8_t uint8_t;
        typedef signed char int8_t;
        typedef u_int64_t uint64_t;
@@ -134,6 +133,8 @@
        #define PLATFORM_READLINE_NOT_SUPPORTED

        #define PLATFORM_RANDOM_DEVICE  "/dev/random"
+
+       #define PLATFORM_GCC3

 #endif // PLATFORM_DARWIN