PDA

View Full Version : MLDonkey -- no-avail



SurJector
05-06-2006, 22:27
Hi,

I've tried to cross-compile MLDonkey for my little WL-HDD. ocaml seems to work, and a fair part of the compilation of MLDonkey works. I have a problem because I lack the c++ include files. Is there a way out of this problem (current firmware version: 1.9.2.7-7c) ? Specifically, there is at least an inclusion of <string>, <memory>, <exception> and <typeinfo>. I've tried to copy them from the hndtools-mipsel-linux-3.2.3 directory, but that did not solve the problem (as I expected).

Once again: are there any "standard" c++ include files ?

Thanks,

oleo
06-06-2006, 05:26
Visit http://www.nslu2-linux.org/wiki/FAQ/OptwareWl500gBuild for toolchain update.

SurJector
07-06-2006, 01:41
Thanks, I've proceeded but not yet a total success. I've had at 3 problems with the include files:
1) in include/ios, the operators == and != for type fpos are identical (I think there should be a != in the definition of !=)
2) in include/deque, the test if (&u == this) at the beginning of the (second) ::asign template made my compiler complain. I've added a cast to a common pointer type (char * to be precise, but the choice is yours).
3) CryptoPP.cc, the only C++ file in MLDonkey, insists on str->seekg(pos) where str is of type basic_istream and pos is of type streampos. I do not manage to understand why there is a problem, but I am completely ignorant of the siignifiance of the "&" symbol in C++ (except when it is used as in C, which I fluently speak). I've understood. I don't know if I will be able to correct it though...

Thanks, I'll try to understand better this third problem and see whether MLDonkey can work on a WL-HDD (gphoto2 SEGFAULTs by the way).