[Box Backup] gcc 4.3 boxbackup-0.11rc2 compilation errors

Néstor Arocha Rodríguez boxbackup at boxbackup.org
Tue Mar 24 15:03:48 GMT 2009


This is a multi-part message in MIME format.

--Multipart=_Tue__24_Mar_2009_16_03_48_+0100_RYEc6Yc7MEZ_Cg6B
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I wasn't able to compile boxbackup 0.11rc2 in my system (gentoo, amd64, gcc=
 4.3.3). make command returns the following message:
...
[CXX]     Logging.cpp
Logging.cpp: In member function 'virtual bool Console::Log(Log::Level, cons=
t std::string&, int, std::string&)':
Logging.cpp:290: error: 'strerror' was not declared in this scope

I have added conditional includes (included as attachment) to some files, a=
nd now it finishes successfuly.

I have another question: Is there a way to tell to configure that I want to=
 disable memory leak detection? Currently I'm modifying BoxPlatform.h by ha=
nd after calling ./configure, but I'm feeling I'm doing it wrong.

Best regards,

--=20
N=E9stor Arocha Rodr=EDguez <nesaro at gmail.com>
Website: http://www.nesaro.com

--Multipart=_Tue__24_Mar_2009_16_03_48_+0100_RYEc6Yc7MEZ_Cg6B
Content-Type: text/x-patch;
 name="gcc4fix.diff"
Content-Disposition: attachment;
 filename="gcc4fix.diff"
Content-Transfer-Encoding: 7bit

diff -r boxbackup-0.11rc2/bin/bbackupctl/bbackupctl.cpp boxbackup-0.11rc2-mod/bin/bbackupctl/bbackupctl.cpp
69a70,73
> #if __GNUC__ >= 4
> #include <cstdlib>
> #endif
> 
diff -r boxbackup-0.11rc2/bin/bbackupquery/BackupQueries.cpp boxbackup-0.11rc2-mod/bin/bbackupquery/BackupQueries.cpp
92a93,96
> #if __GNUC__ >= 4
> #include <cstring>
> #endif
> 
diff -r boxbackup-0.11rc2/bin/bbackupquery/bbackupquery.cpp boxbackup-0.11rc2-mod/bin/bbackupquery/bbackupquery.cpp
78a79,82
> #if __GNUC__ >= 4
> #include <cstdlib>
> #endif
> 
diff -r boxbackup-0.11rc2/bin/bbstoreaccounts/bbstoreaccounts.cpp boxbackup-0.11rc2-mod/bin/bbstoreaccounts/bbstoreaccounts.cpp
70a71,73
> #if __GNUC__ >= 4
> #include <cstring>
> #endif
diff -r boxbackup-0.11rc2/lib/backupclient/BackupClientFileAttributes.cpp boxbackup-0.11rc2-mod/lib/backupclient/BackupClientFileAttributes.cpp
88a89,92
> #if __GNUC__ >= 4
> #include <cstring>
> #endif
> 
diff -r boxbackup-0.11rc2/lib/backupclient/BackupStoreFile.h boxbackup-0.11rc2-mod/lib/backupclient/BackupStoreFile.h
56a57,59
> #if __GNUC__ >= 4
> #include <cstdlib>
> #endif
diff -r boxbackup-0.11rc2/lib/common/Logging.cpp boxbackup-0.11rc2-mod/lib/common/Logging.cpp
57a58,61
> #if __GNUC__ >= 4
> #include <cstring>
> #endif
> 
diff -r boxbackup-0.11rc2/lib/common/Timer.cpp boxbackup-0.11rc2-mod/lib/common/Timer.cpp
58a59,62
> #if __GNUC__ >= 4
> #include <cstring>
> #endif
> 
diff -r boxbackup-0.11rc2/lib/common/WaitForEvent.h boxbackup-0.11rc2-mod/lib/common/WaitForEvent.h
51a52,55
> #if __GNUC__ >= 4
> #include <cstdlib>
> #endif
> 
diff -r boxbackup-0.11rc2/lib/raidfile/RaidFileRead.cpp boxbackup-0.11rc2-mod/lib/raidfile/RaidFileRead.cpp
78a79,82
> #if __GNUC__ >= 4
> #include <cstdlib>
> #endif
> 

--Multipart=_Tue__24_Mar_2009_16_03_48_+0100_RYEc6Yc7MEZ_Cg6B--



More information about the Boxbackup mailing list