<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>155138</bug_id>
          
          <creation_ts>2006-11-14 07:00 0000</creation_ts>
          <short_desc>app-crypt/mhash-0.9.8.1 version bump request</short_desc>
          <delta_ts>2007-03-28 03:38:37 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://sourceforge.net/project/showfiles.php?group_id=4286</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>eva@gentoo.org</reporter>
          <assigned_to>robbat2@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2006-11-14 07:00:46 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2006-11-15 00:33:33 0000</bug_when>
            <thetext>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 &quot;abcdefghijklmnopqrstuvwxyz&quot;
got &quot;4002E86400000002FFE8A8D04000ABB00000000000000000000000000000093C&quot;
but expected &quot;72FAD4BDE1DA8C8332FB60561A780E7F504F21547B98686824FC33FC796AFA76&quot;
FAIL: hash_test.sh
...
Checking fragmentation capabilities of HAVAL256: Failed
...

I&apos;ve filed a bug upstream in the meantime:
https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1596844&amp;group_id=4286&amp;atid=104286</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-01-04 00:38:17 0000</bug_when>
            <thetext>no response from upstream on that ppc64 breakage.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2007-01-11 12:46:28 0000</bug_when>
            <thetext>This other bug on ultrasparc looks similar :

http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1525585&amp;group_id=4286&amp;atid=104286

Robbin, did you try compiling with just -O2 in your CFLAGS ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-01-11 18:52:56 0000</bug_when>
            <thetext>My normal CFLAGS on ppc64-32ul are:
CFLAGS=&quot;-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -Wstrict-aliasing&quot;
The error (4002E86400000002FFEB15C04000ABB00000000000000000000000000000093C)  is identical when I use:
CFLAGS=&quot;-O3&quot;
CFLAGS=&quot;-Os&quot;
CFLAGS=&quot;-O2&quot;
CFLAGS=&quot;-O1&quot;

If I use
CFLAGS=&quot;-O0&quot;, 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&apos;t take into account endianness of the machine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2007-03-20 17:06:26 0000</bug_when>
            <thetext>mhash-0.9.8.1 is released, needs to be tested.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-03-28 03:38:37 0000</bug_when>
            <thetext>in cvs now.
passes on my all my hardware.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>