Bug 155138 - app-crypt/mhash-0.9.8.1 version bump request
|
Bug#:
155138
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: robbat2@gentoo.org
|
Reported By: eva@gentoo.org
|
|
Component: Ebuilds
|
|
|
URL:
http://sourceforge.net/project/showfiles.php?group_id=4286
|
|
Summary: app-crypt/mhash-0.9.8.1 version bump request
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-11-14 07:00 0000
|
Latest version in portage is 0.9.3 which is hard masked. I have bumped this
ebuild localy to test aide-0.12.
I tested mhash-0.9.7.1 with aide-0.10 (to cover some algorithms on a large
range of input) and it works well.
On x86 (athlon-xp), and amd64 (core 2 duo), the testsuite passes fine.
However, on ppc64-32ul, I get two test failures:
...
testing SHA1 ...
testing HAVAL256 -- TEST FAILED: HAVAL256 "abcdefghijklmnopqrstuvwxyz"
got "4002E86400000002FFE8A8D04000ABB00000000000000000000000000000093C"
but expected "72FAD4BDE1DA8C8332FB60561A780E7F504F21547B98686824FC33FC796AFA76"
FAIL: hash_test.sh
...
Checking fragmentation capabilities of HAVAL256: Failed
...
I've filed a bug upstream in the meantime:
https://sourceforge.net/tracker/index.php?func=detail&aid=1596844&group_id=4286&atid=104286
no response from upstream on that ppc64 breakage.
My normal CFLAGS on ppc64-32ul are:
CFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe
-Wstrict-aliasing"
The error (4002E86400000002FFEB15C04000ABB00000000000000000000000000000093C)
is identical when I use:
CFLAGS="-O3"
CFLAGS="-Os"
CFLAGS="-O2"
CFLAGS="-O1"
If I use
CFLAGS="-O0", I still get an incorrect result, but a different one:
00000004000000004001F04C4002E86400000002FFAAB5C04000ABB000000000
Given that you say sparc has a similar failure, the source of the error MUST be
bit operations that don't take into account endianness of the machine.
mhash-0.9.8.1 is released, needs to be tested.
in cvs now.
passes on my all my hardware.