[Box Backup] Crosscompiling boxbackup-0.10 for a Router (freetz)

Mirko boxbackup@boxbackup.org
Sun, 29 Mar 2009 14:29:38 +0200


Hi,

I am trying to compile boxbackup-0.10 for freetz (http://www.freetz.org). 
Freetz is a FW-Mod for the AVM Fritz!Box which is a popular home-router in 
Germany.

After I persuaded "configure" to no longer complain I get the following 
compile time error:
--------------------------------------
/home/m/freetz/freetz-trunk/toolchain/target/bin/mipsel-linux-uclibc-g++-uc -DNDEBUG -O2 -Wall -I../../lib/common  -DBOX_VERSION="\"0.10\""  -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -c 
Daemon.cpp -o ../../release/lib/server/Daemon.o
Daemon.cpp: In member function 'int Daemon::Main(const char*, int, const 
char**)':
Daemon.cpp:174: error: no match for 'operator=' in 'pconfig = 
Configuration::LoadAndVerify(const char*, const ConfigurationVerify*, 
std::string&)(Daemon::GetConfigVerify(), ((std::string&)(& errors)))'
/home/m/freetz/freetz-trunk/toolchain/build/gcc-4.2.1-uClibc-0.9.29/mipsel-linux-uclibc/lib/gcc/mipsel-linux-uclibc/4.2.1/../../../../mipsel-linux-uclibc/sys-include/memory:137: 
note: candidates are: std::auto_ptr<T>& 
std::auto_ptr<T>::operator=(std::auto_ptr<T>&) [with T = Configuration]
/home/m/freetz/freetz-trunk/toolchain/build/gcc-4.2.1-uClibc-0.9.29/mipsel-linux-uclibc/lib/gcc/mipsel-linux-uclibc/4.2.1/../../../../mipsel-linux-uclibc/sys-include/memory:145: 
note:                 std::auto_ptr<T>& 
std::auto_ptr<T>::operator=(std::auto_ptr<Y>&) [with Y = Configuration, T = 
Configuration]
make[3]: *** [../../release/lib/server/Daemon.o] Error 1
make[3]: Leaving directory 
`/home/m/freetz/freetz-trunk/source/boxbackup-0.10/lib/server'
make[2]: *** [dep_modules] Error 2
make[2]: Leaving directory 
`/home/m/freetz/freetz-trunk/source/boxbackup-0.10/bin/bbackupd'
make[1]: *** [parcels/boxbackup-0.10-backup-client-linux-gnu.tgz] Error 2
-----------------------------------
Do you happen to know, why the sources won't compile in this way?

Cheers, Mirko

PS: A (German) thread concerning this issue can be found at 
http://www.ip-phone-forum.de/showthread.php?t=189286 . Feel free to ask for 
an English translation, if you think it could help you.