[Box Backup] Box Backup 0.11rc2 on OS X 10.5

Achim boxbackup@boxbackup.org
Sat, 21 Mar 2009 21:44:07 +0100


Hello Chris:

Trunk 2460 does not build at the moment, something about EMU_FSTAT that 
is not declared, see details below:

On 20/3/09 20:03, Chris Wilson wrote:
> Sorry, I'd forgotten just how old 0.11rc2 is. The fixes were made after
> it was released. I think they should fix this very issue. Please try
> again with trunk.

$ svn co https://www.boxbackup.org/svn/box/trunk/
Checked out revision 2460.

$  cd trunk/

$ ./bootstrap

$ ./configure
[..]
2 processors detected, will set make to perform concurrent jobs
A summary of the build configuration is below. Box Backup will function
without these features, but will work better where they are present. Refer
to the documentation for more information on each feature.

Regular expressions: yes
Large files:         yes
Berkeley DB:         no
Readline:            yes
Extended attributes: yes

$  make
(cd bin/bbackupd; bsdmake -D RELEASE)
[CXX]     emu
[CXX]     getopt_long
   [AR]      win32
   [RANLIB]  win32
ranlib: file: ../../release/lib/win32/win32.a(emu.o) has no symbols
ranlib: file: ../../release/lib/win32/win32.a(getopt_long.o) has no symbols
ranlib: warning for library: ../../release/lib/win32/win32.a the table 
of contents is empty (no object file members in the library define 
global symbols)
[CXX]     BoxException
[CXX]     BoxTime
[CXX]     BoxTimeToText
[CXX]     BufferedStream
   [CXX]     CollectInBufferStream
[CXX]     Configuration
   [CXX]     DebugAssertFailed
[CXX]     DebugMemLeakFinder
[CXX]     DebugPrintf
[CXX]     ExcludeList
   [CXX]     FdGetLine
[CXX]     FileStream
FileStream.cpp: In member function 'virtual int64_t 
FileStream::BytesLeftToRead()':
FileStream.cpp:227: error: 'EMU_STRUCT_STAT' was not declared in this scope
FileStream.cpp:227: error: expected `;' before 'st'
FileStream.cpp:228: error: 'st' was not declared in this scope
FileStream.cpp:228: error: 'EMU_FSTAT' was not declared in this scope
FileStream.cpp:233: error: 'st' was not declared in this scope
*** Error code 1
1 error
*** Error code 2

Stop.
make: *** [release/bin/bbackupd/bbackupd] Error 1




$ grep -r EMU_FSTAT *
lib/common/.svn/text-base/FileStream.cpp.svn-base: 
if(EMU_FSTAT(mOSFileHandle, &st) != 0)
lib/common/FileStream.cpp:      if(EMU_FSTAT(mOSFileHandle, &st) != 0)
lib/win32/.svn/text-base/emu.h.svn-base:        #define EMU_FSTAT emu_fstat
lib/win32/.svn/text-base/emu.h.svn-base:        #define EMU_FSTAT ::fstat
lib/win32/emu.h:        #define EMU_FSTAT emu_fstat
lib/win32/emu.h:        #define EMU_FSTAT ::fstat