[Box Backup] BB on Fedora Core4 /w GCC4

Ben Summers boxbackup@fluffy.co.uk
Sat, 3 Sep 2005 16:04:56 +0100


You need to do this

    ./configure compile:-DPLATFORM_GCC3

for gcc4 platforms. Next release sorts this out.

Ben



On 3 Sep 2005, at 14:55, Mikael Syska wrote:

> Hi,
>
> I'm trying to install BoxBacup on Fodora Core4, and gets some =20
> errors.....
>
> GCC Version:
> [root@server syska]# gcc --version
> gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There =20=

> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR =20
> PURPOSE.
>
> [root@server boxbackup-0.09]# ./configure
> Box build environment setup.
>
> Checking environment...
> Compiler 1: yes
> Compiler 2: yes
> OpenSSL 1: yes
> OpenSSL 2: yes
> curses: yes
> ncurses: yes
> Linux LFS support: yes
> USE_MALLOC: yes
> Checking db version...
> Check readline from readline/readline.h...
> Check readline from mysql/readline.h...
> Checking db version...
> Finished checking headers
> done
>
> [root@server boxbackup-0.09]# make
> [root@server boxbackup-0.09]# make
> mkdir parcels/boxbackup-0.09-backup-client-Linux
> (cd bin/bbackupd; make RELEASE=3D1)
> make[1]: Entering directory `/home/syska/boxbackup-0.09/bin/bbackupd'
> g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress -=20
> I../../lib/crypto -I../../lib/server -I../../lib/backupclient -=20
> DPLATFORM_LINUX -DBOX_VERSION=3D"\"0.09\"" -D_FILE_OFFSET_BITS=3D64 -c =
=20
> BackupClientDeleteList.cpp -o ../../release/bin/bbackupd/=20
> BackupClientDeleteList.o
> In file included from ../../lib/common/Box.h:183,
> from BackupClientDeleteList.cpp:49:
> /usr/include/asm/byteorder.h:6:2: warning: #warning using private =20
> kernel header; include <endian.h> instead!
> g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress -=20
> I../../lib/crypto -I../../lib/server -I../../lib/backupclient -=20
> DPLATFORM_LINUX -DBOX_VERSION=3D"\"0.09\"" -D_FILE_OFFSET_BITS=3D64 -c =
=20
> BackupClientInodeToIDMap.cpp -o ../../release/bin/bbackupd/=20
> BackupClientInodeToIDMap.o
> In file included from ../../lib/common/Box.h:183,
> from BackupClientInodeToIDMap.cpp:49:
> /usr/include/asm/byteorder.h:6:2: warning: #warning using private =20
> kernel header; include <endian.h> instead!
> g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress -=20
> I../../lib/crypto -I../../lib/server -I../../lib/backupclient -=20
> DPLATFORM_LINUX -DBOX_VERSION=3D"\"0.09\"" -D_FILE_OFFSET_BITS=3D64 -c =
=20
> BackupClientDirectoryRecord.cpp -o ../../release/bin/bbackupd/=20
> BackupClientDirectoryRecord.o
> In file included from ../../lib/common/Box.h:183,
> from BackupClientDirectoryRecord.cpp:49:
> /usr/include/asm/byteorder.h:6:2: warning: #warning using private =20
> kernel header; include <endian.h> instead!
> g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress -=20
> I../../lib/crypto -I../../lib/server -I../../lib/backupclient -=20
> DPLATFORM_LINUX -DBOX_VERSION=3D"\"0.09\"" -D_FILE_OFFSET_BITS=3D64 -c =
=20
> BackupClientContext.cpp -o ../../release/bin/bbackupd/=20
> BackupClientContext.o
> In file included from ../../lib/common/Box.h:183,
> from BackupClientContext.cpp:49:
> /usr/include/asm/byteorder.h:6:2: warning: #warning using private =20
> kernel header; include <endian.h> instead!
> g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress -=20
> I../../lib/crypto -I../../lib/server -I../../lib/backupclient -=20
> DPLATFORM_LINUX -DBOX_VERSION=3D"\"0.09\"" -D_FILE_OFFSET_BITS=3D64 -c =
=20
> bbackupd.cpp -o ../../release/bin/bbackupd/bbackupd.o
> In file included from ../../lib/common/Box.h:183,
> from bbackupd.cpp:49:
> /usr/include/asm/byteorder.h:6:2: warning: #warning using private =20
> kernel header; include <endian.h> instead!
> g++ -DNDEBUG -O2 -Wall -I../../lib/common -I../../lib/compress -=20
> I../../lib/crypto -I../../lib/server -I../../lib/backupclient -=20
> DPLATFORM_LINUX -DBOX_VERSION=3D"\"0.09\"" -D_FILE_OFFSET_BITS=3D64 -c =
=20
> BackupDaemon.cpp -o ../../release/bin/bbackupd/BackupDaemon.o
> In file included from ../../lib/common/Box.h:183,
> from BackupDaemon.cpp:49:
> /usr/include/asm/byteorder.h:6:2: warning: #warning using private =20
> kernel header; include <endian.h> instead!
> ........
> ........
> ........
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp:174: error: expected `;' before =E2=80=98hsReceive=E2=80=99=

> Protocol.cpp:175: error: =E2=80=98hsReceive=E2=80=99 was not declared =
in this =20
> scope
> Protocol.cpp:181: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp: In member function =E2=80=98void =
Protocol::CheckAndReadHdr=20
> (void*)=E2=80=99:
> Protocol.cpp:225: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp: In member function =E2=80=98std::auto_ptr<ProtocolObject> =
=20
> Protocol::Receive()=E2=80=99:
> Protocol.cpp:266: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp: In member function =E2=80=98void Protocol::Send(const =20=

> ProtocolObject&)=E2=80=99:
> Protocol.cpp:359: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp:360: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp: In member function =E2=80=98void Protocol::SendStream=20
> (IOStream&)=E2=80=99:
> Protocol.cpp:716: error: incomplete type =E2=80=98IOStream=E2=80=99 =
used in =20
> nested name specifier
> Protocol.cpp:716: error: expected `;' before =E2=80=98streamSize=E2=80=99=

> Protocol.cpp:717: error: =E2=80=98streamSize=E2=80=99 was not declared =
in this =20
> scope
> Protocol.cpp:717: error: incomplete type =E2=80=98IOStream=E2=80=99 =
used in =20
> nested name specifier
> Protocol.cpp:725: error: =E2=80=98streamSize=E2=80=99 was not declared =
in this =20
> scope
> Protocol.cpp:733: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp:750: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp:753: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp:767: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp:781: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp:787: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> Protocol.cpp: In member function =E2=80=98int =20
> Protocol::SendStreamSendBlock(u_int8_t*, int)=E2=80=99:
> Protocol.cpp:835: error: invalid use of undefined type =E2=80=98struct =
=20
> IOStream=E2=80=99
> Protocol.h:54: error: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/=20
> memory: In destructor =E2=80=98std::auto_ptr<_Tp>::~auto_ptr() [with =
_Tp =20
> =3D IOStream]=E2=80=99:
> Protocol.cpp:689: instantiated from here
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/=20
> memory:259: warning: possible problem detected in invocation of =20
> delete operator:
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/=20
> memory:259: warning: invalid use of undefined type =E2=80=98struct =20
> IOStream=E2=80=99
> Protocol.h:54: warning: forward declaration of =E2=80=98struct =
IOStream=E2=80=99
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/=20
> memory:259: note: neither the destructor nor the class-specific =20
> operator delete will be called, even if they are declared when the =20
> class is defined.
> make[2]: *** [../../release/lib/server/Protocol.o] Error 1
> make[2]: Leaving directory `/home/syska/boxbackup-0.09/lib/server'
> make[1]: *** [dep_modules] Error 2
> make[1]: Leaving directory `/home/syska/boxbackup-0.09/bin/bbackupd'
> make: *** [parcels/boxbackup-0.09-backup-client-Linux.tgz] Error 2
> [root@server boxbackup-0.09]#
>
> and now i'm totally lost... what does these errors mean? Are there =20
> any thing more I need to install?
>
> I will gladly supply additional information if needed....
>
> best regards
> Mikael Syska
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>