I don't have a debugger on this machine with which to dig deeper, but (a) WHIRLPOOL and MD2 tests fail even though they were not disabled, and (b) I am left with a coredump from frag_test. Invoking aide (file integrity checker linked with libmhash) with whirlpool enabled also causes aide to coredump.
SunOS -------- 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-2500
Making check in include
make[1]: Entering directory /usr/local/src/packaging/mhash-0.9.9/include'
make[1]: Nothing to be done for
check'.
make[1]: Leaving directory /usr/local/src/packaging/mhash-0.9.9/include'
Making check in lib
make[1]: Entering directory
/usr/local/src/packaging/mhash-0.9.9/lib'
make[1]: Nothing to be done for check'.
make[1]: Leaving directory
/usr/local/src/packaging/mhash-0.9.9/lib'
Making check in doc
make[1]: Entering directory /usr/local/src/packaging/mhash-0.9.9/doc'
make[1]: Nothing to be done for
check'.
make[1]: Leaving directory /usr/local/src/packaging/mhash-0.9.9/doc'
Making check in src
make[1]: Entering directory
/usr/local/src/packaging/mhash-0.9.9/src'
make check-TESTS
make[2]: Entering directory `/usr/local/src/packaging/mhash-0.9.9/src'
testing CRC32 .
testing CRC32B .
testing MD5 .......
testing SHA1 ...
testing HAVAL256 ..
testing HAVAL224 .
testing HAVAL192 .
testing HAVAL160 .
testing HAVAL128 .
testing RIPEMD128 .........
testing RIPEMD160 .........
testing RIPEMD256 .........
testing RIPEMD320 .........
testing TIGER ........
testing TIGER160 .....
testing TIGER128 ...
testing GOST ..
testing MD4 .......
testing SHA256 ....
testing SHA224 ...
testing SHA512 ...
testing SHA384 ...
testing WHIRLPOOL This algorithm (WHIRLPOOL) is not available!
This algorithm (WHIRLPOOL) is not available!
.This algorithm (WHIRLPOOL) is not available!
This algorithm (WHIRLPOOL) is not available!
.This algorithm (WHIRLPOOL) is not available!
This algorithm (WHIRLPOOL) is not available!
This algorithm (WHIRLPOOL) is not available!
testing SNEFRU128 ......
testing SNEFRU256 ...
testing MD2 .This algorithm (MD2) is not available!
This algorithm (MD2) is not available!
.This algorithm (MD2) is not available!
..
everything seems to be fine :-)
PASS: hash_test.sh
MD5 HMAC-Test: Ok
PASS: hmac_test
KEYGEN-Test: Succeed
PASS: keygen_test
FAIL: rest_test
Checking fragmentation capabilities of MD5: FAIL: frag_test
============================================
2 of 5 tests failed
Please report to mhash-devel@sourceforge.net
============================================
make[2]: [check-TESTS] Error 1
make[2]: Leaving directory /usr/local/src/packaging/mhash-0.9.9/src'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory
/usr/local/src/packaging/mhash-0.9.9/src'
make: [check-recursive] Error 1
patch for alignment problems
Logged In: YES
user_id=83996
Originator: YES
I set up a similar machine with gdb, and wrote a patch to fix a couple of alignment problems in stdfns.c. This does not fix all obvious alignment problems in the code, just enough to pass 'make check' on a sparc.
File Added: mutils-align.patch