[Box Backup] Re: Make/install help

Remco Poelstra boxbackup@fluffy.co.uk
Fri, 05 Aug 2005 13:35:03 +0200


This is a multi-part message in MIME format.
--------------070607000402070501020807
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Ben Summers wrote:
> Are you using gcc v4? (type gcc --version to see the version number).  
> If so, you'll need a small change to infrastructure/BoxPlatform.pm:
> 
>         $gcc_v3 = 1 if (m/version gcc [34]/ || m/gcc version [34]/  || 
> m/gcc \(GCC\) [34]/i || m/gcc.Version\s+[34]/i);

Hi,

I've the same problem, so I was watching this thread for a solution. I'm 
using GCC 4 (FC 4), but fixing the above doesn't help. I get the 
attached errors.
Furthermore, I would like to make an rpm, how can I make a tarball with 
the fix, so I can do rpmbuild -ta <tgz>?

Thanks in advance,

Remco Poelstra

--------------070607000402070501020807
Content-Type: text/plain;
 name="boxbackup-errors"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
 filename="boxbackup-errors"

[remco@isis boxbackup-0.09]$ make
mkdir parcels/boxbackup-0.09-backup-client-Linux
mkdir: cannot create directory `parcels/boxbackup-0.09-backup-client-Linux': Fil
e exists
make: *** [parcels/boxbackup-0.09-backup-client-Linux.tgz] Error 1
[remco@isis boxbackup-0.09]$ make clean
rm -rf parcels/boxbackup-0.09-backup-client-Linux
rm -f parcels/boxbackup-0.09-backup-client-Linux.tgz
rm -rf parcels/boxbackup-0.09-backup-server-Linux
rm -f parcels/boxbackup-0.09-backup-server-Linux.tgz
[remco@isis boxbackup-0.09]$ make
mkdir parcels/boxbackup-0.09-backup-client-Linux
(cd bin/bbackupd; make RELEASE=1)make[1]: Entering directory `/home/remco/src/boxbackup-0.09/bin/bbackupd'
(cd ../../lib/common; make RELEASE=1 NODEPS=1)
make[2]: Entering directory `/home/remco/src/boxbackup-0.09/lib/common'
(echo -n > ../../release/lib/common/common.a; rm ../../release/lib/common/common
.a)
ar -q ../../release/lib/common/common.a ../../release/lib/common/Configuration.o
 ../../release/lib/common/IOStream.o ../../release/lib/common/LinuxWorkaround.o 
../../release/lib/common/NamedLock.o ../../release/lib/common/WaitForEvent.o ../
../release/lib/common/CollectInBufferStream.o ../../release/lib/common/MemBlockS
tream.o ../../release/lib/common/DebugMemLeakFinder.o ../../release/lib/common/a
utogen_CommonException.o ../../release/lib/common/BoxTime.o ../../release/lib/co
mmon/BoxException.o ../../release/lib/common/DebugAssertFailed.o ../../release/l
ib/common/FdGetLine.o ../../release/lib/common/UnixUser.o ../../release/lib/comm
on/PartialReadStream.o ../../release/lib/common/StreamableMemBlock.o ../../relea
se/lib/common/ReadGatherStream.o ../../release/lib/common/EventWatchFilesystemOb
ject.o ../../release/lib/common/autogen_ConversionException.o ../../release/lib/
common/BoxTimeToText.o ../../release/lib/common/Utils.o ../../release/lib/common
/ConversionString.o ../../release/lib/common/ExcludeList.o ../../release/lib/com
mon/IOStreamGetLine.o ../../release/lib/common/DebugPrintf.o ../../release/lib/c
ommon/FileStream.o
ar: creating ../../release/lib/common/common.a
ranlib ../../release/lib/common/common.a
make[2]: Leaving directory `/home/remco/src/boxbackup-0.09/lib/common'
(cd ../../lib/compress; make RELEASE=1 NODEPS=1)
make[2]: Entering directory `/home/remco/src/boxbackup-0.09/lib/compress'
(echo -n > ../../release/lib/compress/compress.a; rm ../../release/lib/compress/
compress.a)
ar -q ../../release/lib/compress/compress.a ../../release/lib/compress/CompressS
tream.o ../../release/lib/compress/autogen_CompressException.o
ar: creating ../../release/lib/compress/compress.a
ranlib ../../release/lib/compress/compress.a
make[2]: Leaving directory `/home/remco/src/boxbackup-0.09/lib/compress'
(cd ../../lib/crypto; make RELEASE=1 NODEPS=1)
make[2]: Entering directory `/home/remco/src/boxbackup-0.09/lib/crypto'
(echo -n > ../../release/lib/crypto/crypto.a; rm ../../release/lib/crypto/crypto
.a)
ar -q ../../release/lib/crypto/crypto.a ../../release/lib/crypto/CipherAES.o ../
../release/lib/crypto/CipherContext.o ../../release/lib/crypto/CipherDescription
.o ../../release/lib/crypto/CipherBlowfish.o ../../release/lib/crypto/Random.o .
./../release/lib/crypto/autogen_CipherException.o ../../release/lib/crypto/MD5Di
gest.o ../../release/lib/crypto/RollingChecksum.o
ar: creating ../../release/lib/crypto/crypto.a
ranlib ../../release/lib/crypto/crypto.a
make[2]: Leaving directory `/home/remco/src/boxbackup-0.09/lib/crypto'
(cd ../../lib/server; make RELEASE=1 NODEPS=1)
make[2]: Entering directory `/home/remco/src/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 ../../lib/common/Box.h:183,                 from Protocol.cpp:49:
/usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header;
 include <endian.h> instead!
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 b
efore ‘;’ token
ProtocolWire.h:78: error: ‘pragma’ does not name a type
../../lib/common/PartialReadStream.h:62: error: invalid use of undefined type ‘s
truct 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 IOStr
eam’
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 virtu
al functions but non-virtual destructor
ProtocolUncertainStream.h:73: error: incomplete type ‘IOStream’ used in nested n
ame specifier
Protocol.cpp: In member function ‘void Protocol::Handshake()’:
Protocol.cpp:164: error: ‘PW_Handshake’ was not declared in this scope
Protocol.cpp:164: error: expected `;' before ‘hsSend’
Protocol.cpp:165: error: ‘hsSend’ was not declared in this scope
Protocol.cpp:170: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:171: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:174: error: expected `;' before ‘hsReceive’
Protocol.cpp:175: error: ‘hsReceive’ was not declared in this scope
Protocol.cpp:181: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp: In member function ‘void Protocol::CheckAndReadHdr(void*)’:
Protocol.cpp:225: error: invalid use of undefined type ‘struct IOStream’Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp: In member function ‘std::auto_ptr<ProtocolObject> Protocol::Receiv
e()’:
Protocol.cpp:266: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp: In member function ‘void Protocol::Send(const ProtocolObject&)’:
Protocol.cpp:359: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:360: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp: In member function ‘void Protocol::SendStream(IOStream&)’:
Protocol.cpp:716: error: incomplete type ‘IOStream’ used in nested name specifie
r
Protocol.cpp:716: error: expected `;' before ‘streamSize’
Protocol.cpp:717: error: ‘streamSize’ was not declared in this scope
Protocol.cpp:717: error: incomplete type ‘IOStream’ used in nested name specifie
r
Protocol.cpp:725: error: ‘streamSize’ was not declared in this scope
Protocol.cpp:733: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:750: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:753: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:767: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:781: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp:787: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
Protocol.cpp: In member function ‘int Protocol::SendStreamSendBlock(u_int8_t*, i
nt)’:
Protocol.cpp:835: error: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: error: forward declaration of ‘struct IOStream’
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/memory: In de
structor ‘std::auto_ptr<_Tp>::~auto_ptr() [with _Tp = IOStream]’:
Protocol.cpp:689:   instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/memory:259: w
arning: possible problem detected in invocation of delete operator:
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/memory:259: w
arning: invalid use of undefined type ‘struct IOStream’
Protocol.h:54: warning: forward declaration of ‘struct IOStream’
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/memory:259: n
ote: neither the destructor nor the class-specific operator delete will be calle
d, even if they are declared when the class is defined.
make[2]: *** [../../release/lib/server/Protocol.o] Error 1
make[2]: Leaving directory `/home/remco/src/boxbackup-0.09/lib/server'
make[1]: *** [dep_modules] Error 2
make[1]: Leaving directory `/home/remco/src/boxbackup-0.09/bin/bbackupd'
make: *** [parcels/boxbackup-0.09-backup-client-Linux.tgz] Error 2

--------------070607000402070501020807--