Wed 16 Feb 2005 03:51:42 PM UTC, comment #2:
As the previous comment says, this is a problem in cryptopp, not in monotone (although we should import any fixes done in the original library).
However, I can't see why this fails. I've fetched a copy of the code from the date you filled the bug, and the line that's triggering the problem (unless I've done some mistake) is the following, from cryptopp/cryptlib.cpp:
CRYPTOPP_COMPILE_ASSERT(sizeof(word32) == 4);
So the problem has to be that the size of the 'word32' type is not 4 bytes in the machine you are building the program. (Well, cryptopp is checking for portability issues in an extremely ugly way, but anyway... not something we want to fix, probably.)
word32 is also an alias for unsigned int in the code. I've looked at what NetBSD does in a sparc64 machine and also checked an IRIX64 systems. In both of them, the size of 'unsigned int' is 4 bytes, which matches the expected value. (I doubt this changes between OSes... right?)
So I don't know how/why this happens in your FreeBSD/sparc64 system. May it be that it has different expectations? Anybody knows or has a FreeBSD/sparc64 machine on which he can run a few tests? (Asking in general because the bug is anonymous; will have to close it if nobody pops up...)
|