I'm trying to compile mhash-0.9.7.1 under Mac OS X
10.4.5. Running make check gives the following result:
============================================
2 of 5 tests failed
Please report to mhash-devel@sourceforge.net
============================================
make[2]: [check-TESTS] Error 1
make[1]: [check-am] Error 2
make: *** [check-recursive] Error 1
The follow output of make check follows:
Making all in include
make[1]: Nothing to be done for all'.
Making all in lib
make[1]: Nothing to be done for
all'.
Making all in doc
make[1]: Nothing to be done for all'.
Making all in src
make[1]: Nothing to be done for
all'.
make[1]: Nothing to be done for all-am'.
banzai:~/downloads/mhash- 0.9.7.1 matt$ make check
Making check in include
make[1]: Nothing to be done for
check'.
Making check in lib
make[1]: Nothing to be done for check'.
Making check in doc
make[1]: Nothing to be done for
check'.
Making check in src
make check-TESTS
testing CRC32 .
testing CRC32B .
testing MD5 .......
testing SHA1 ...
testing HAVAL256 -- TEST FAILED: HAVAL256
"abcdefghijklmnopqrstuvwxyz"
got
"BFFFF6708FE0DE0CBFFFF670240000248FE0DE80C88E7CB500000133C88E382E"
but expected
"72FAD4BDE1DA8C8332FB60561A780E7F504F21547B98686824FC33FC796AFA76"
FAIL: hash_test.sh
MD5 HMAC-Test: Ok
PASS: hmac_test
KEYGEN-Test: Succeed
PASS: keygen_test
Testing save/restore for algorithm CRC32: Ok
Testing save/restore for algorithm MD5: Ok
Testing save/restore for algorithm SHA1: Ok
Testing save/restore for algorithm HAVAL256: Ok
Testing save/restore for algorithm RIPEMD160: Ok
Testing save/restore for algorithm TIGER: Ok
Testing save/restore for algorithm GOST: Ok
Testing save/restore for algorithm CRC32B: Ok
Testing save/restore for algorithm HAVAL224: Ok
Testing save/restore for algorithm HAVAL192: Ok
Testing save/restore for algorithm HAVAL160: Ok
Testing save/restore for algorithm HAVAL128: Ok
Testing save/restore for algorithm TIGER128: Ok
Testing save/restore for algorithm TIGER160: Ok
Testing save/restore for algorithm MD4: Ok
Testing save/restore for algorithm SHA256: Ok
Testing save/restore for algorithm ADLER32: Ok
Testing save/restore for algorithm SHA224: Ok
Testing save/restore for algorithm SHA512: Ok
Testing save/restore for algorithm SHA384: Ok
Testing save/restore for algorithm WHIRLPOOL: Ok
Testing save/restore for algorithm RIPEMD128: Ok
Testing save/restore for algorithm RIPEMD256: Ok
Testing save/restore for algorithm RIPEMD320: Ok
Testing save/restore for algorithm SNEFRU128: Ok
Testing save/restore for algorithm SNEFRU256: Ok
Testing save/restore for algorithm MD2: Ok
PASS: rest_test
Checking fragmentation capabilities of MD5: OK
Checking fragmentation capabilities of SHA1: OK
Checking fragmentation capabilities of HAVAL256: Failed
Checking fragmentation capabilities of RIPEMD160: OK
Checking fragmentation capabilities of TIGER: OK
Checking fragmentation capabilities of HAVAL224: OK
Checking fragmentation capabilities of HAVAL192: OK
Checking fragmentation capabilities of HAVAL160: OK
Checking fragmentation capabilities of HAVAL128: OK
Checking fragmentation capabilities of TIGER128: OK
Checking fragmentation capabilities of TIGER160: OK
Checking fragmentation capabilities of MD4: OK
Checking fragmentation capabilities of SHA256: OK
Checking fragmentation capabilities of SHA224: OK
Checking fragmentation capabilities of SHA512: OK
Checking fragmentation capabilities of SHA384: OK
Checking fragmentation capabilities of WHIRLPOOL: OK
Checking fragmentation capabilities of RIPEMD128: OK
Checking fragmentation capabilities of RIPEMD256: OK
Checking fragmentation capabilities of RIPEMD320: OK
Checking fragmentation capabilities of SNEFRU128: OK
Checking fragmentation capabilities of SNEFRU256: OK
Checking fragmentation capabilities of MD2: OK
FAIL: frag_test
============================================
2 of 5 tests failed
Please report to mhash-devel@sourceforge.net
============================================
make[2]: [check-TESTS] Error 1
make[1]: [check-am] Error 2
make: *** [check-recursive] Error 1
Logged In: YES
user_id=62241
Originator: NO
I've submitted a patch in the "Patches" tracker, which fixes all HAVAL hashes and makes the test suite pass on Linux/ppc. Could you please see whether it works for you also on MacOS?
Patch here:
https://sourceforge.net/tracker/download.php?group_id=4286&atid=304286&file_id=214181&aid=1650733
Successful "make check" on ppc:
http://buildsys.fedoraproject.org/logs/fedora-development-extras/26829-mhash-0.9.7.1-3/ppc/build.log