[Box Backup] compiling on ubuntu breezy

Stuart Hickinbottom boxbackup@fluffy.co.uk
Sun, 08 Jan 2006 12:46:32 +0000


I don't use Ubuntu, or GCC4, but I know that the Gentoo ebuild adds the 
argument "compile:-DPLATFORM_GCC3" to the configure step for GCC4, which 
might help. It's also described previously on the list here:

http://lists.warhead.org.uk/pipermail/boxbackup/2005-August/001625.html

Stuart

Mario S. Mommer wrote:
> Hello,
>
> I am (trying to) build boxbackup on ubuntu breezy (5.10), but it fails. I
> presume the problem is the compiler version. The configure script runs
> successfully without warning, but then compilation breaks.
>
> Beyond the report, of course, I wonder how to complete the build and/or
> install, so any hint for a workaround would be welcome. Boxbackup rocks!
>
> Ok, so here is the make error.
>
> make[2]: Entering directory
> `/home/mommer/install/boxbackup-0.09/lib/server'
> g++ -DNDEBUG -O2 -Wall -I../../lib/common -DPLATFORM_LINUX
> -DBOX_VERSION="\"0.09\"" -D_FILE_OFFSET_BITS=64  -c Protocol.cpp -o
> ../../release/lib/server/Protocol.o
> In file included from Protocol.cpp:59:
> ProtocolWire.h:58: error: stray ‘#’ in program
> ProtocolWire.h:78: error: stray ‘#’ in program
> ProtocolWire.h:58: error: ‘pragma’ does not name a type
> ProtocolWire.h:64: error: expected constructor, destructor, or type
> conversion before ‘;’ token
> ProtocolWire.h:78: error: ‘pragma’ does not name a type
> ../../lib/common/PartialReadStream.h:62: error: invalid use of undefined
> type ‘struct IOStream’
> Protocol.h:54: error: forward declaration of ‘struct IOStream’
> ../../lib/common/PartialReadStream.h:74: error: ‘pos_type’
> does not name a type
> ../../lib/common/PartialReadStream.h:63: warning: ‘class
> PartialReadStream’ has virtual functions but non-virtual destructor
> ../../lib/common/PartialReadStream.h:73: error: incomplete type
> ‘IOStream’ used in nested name specifier
> ProtocolUncertainStream.h:62: error: invalid use of undefined type
> ‘struct IOStream’
> Protocol.h:54: error: forward declaration of ‘struct IOStream’
> ProtocolUncertainStream.h:74: error: ‘pos_type’ does not name
> a type
> ProtocolUncertainStream.h:63: warning: ‘class
> ProtocolUncertainStream’ has virtual functions but non-virtual
> destructor
> ProtocolUncertainStream.h:73: error: incomplete type
> ‘IOStream’ used in nested name specifier
> Protocol.cpp: In member function ‘void Protocol::Handshake()’:
> Protocol.cpp:164: error: ‘PW_Handshake’ was not declared in
> this scope
> [...]
>
> and so on.
>
> g++ --version
>
> returns
>
> g++ (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> Regards,
>         Mario.
>
>
> 		
> __________________________________________ 
> Yahoo! DSL – Something to write home about. 
> Just $16.99/mo. or less. 
> dsl.yahoo.com 
>
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>
>