Subject: Re: pkg/28858: security/openssl build fails on Sparc64 with ASM errors
To: Johnny C. Lam <jlam@NetBSD.org>
From: Gert Doering <gert@greenie.muc.de>
List: pkgsrc-bugs
Date: 01/10/2005 11:22:22
Hi,

On Mon, Jan 10, 2005 at 08:44:04AM +0000, Johnny C. Lam wrote:
> > > asm/md5-sparcv9.S:83:4: #error "MD5_BLOCK_DATA_ORDER is supported only on UltraSPARC!"
[..]
> > Please try the attached patch and see if that fixes compilation on
> > your NetBSD/sparc64 system.  It fixes the patch to the Configure script
> > to properly identify that NetBSD/sparc64 runs on UltraSPARCs.  The
> > patch should be applied within pkgsrc/security/openssl.
> 
> With the patch attached this time.

"Yes and no".

It fixes the ASM compile error, but the resulting openssl will not pass
"make test".

These are the last lines of "make" output with "PKGSRC_RUN_TEST?=yes":

------------ snip ------------
OSSL_LIBPATH="`cd ..; pwd`"; LD_LIBRARY_PATH="$OSSL_LIBPATH:$LD_LIBRARY_PATH"; DYLD_LIBRARY_PATH="$OSSL_LIBPATH:$DYLD_LIBRARY_PATH"; SHLIB_PATH="$OSSL_LIBPATH:$SHLIB_PATH"; LIBPATH="$OSSL_LIBPATH:$LIBPATH"; if [ "NetBSD-sparc64" = "Cygwin" ]; then PATH="${LIBPATH}:$PATH"; fi; export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH; ./rmdtest
error calculating RIPEMD160 on ''
got c12836ad0d061da6ccde02fb0b5be87f0c62a4a5 instead of 9c1185a5c5e9fc54612808977ee8f548b2258d31
error calculating RIPEMD160 on 'a'
got 9aa1049aec0363ac0a5895c44bb2fa79a49a20aa instead of 0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
error calculating RIPEMD160 on 'abc'
got 534dbff56cbaa431356ed97de140a03e30cea7ca instead of 8eb208f7e05d987a9b044a8e98c6b087f15a0bfc
error calculating RIPEMD160 on 'message digest'
got 572996fa268de87f2ff80ec9050b691c3e3aff7e instead of 5d0689ef49d2fae572b881b123a85ffa21595f36
error calculating RIPEMD160 on 'abcdefghijklmnopqrstuvwxyz'
got 1519de8a83138c8b44a50b5b6d646af5a2c0e063 instead of f71c27109c692c1b56bbdceb5b9d2865b3708dbc
error calculating RIPEMD160 on 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'
got 1b0a8adbb9a030cdf11fd4315de1d10ab37d37de instead of 12a053384a9c0c88e405a06c27dcf49ada62eb2b
error calculating RIPEMD160 on 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
got 2dc6dba4503947c15ca0737ae8dcc0522d7da6a0 instead of b0e20b6e3116640286ed3a87a5713079b21f5189
error calculating RIPEMD160 on '12345678901234567890123456789012345678901234567890123456789012345678901234567890'
got c244a16e949fb245afbe789ba99b32ddacf1243e instead of 9b752e45573d4b39f4dbd3323cab82bf63326bfb
gmake[1]: *** [test_rmd] Error 8
gmake[1]: Leaving directory `/home/obj/pkg/security/openssl/work/openssl-0.9.7e/test'
gmake: *** [tests] Error 2
*** Error code 2

Stop.
make: stopped in /home/pkgsrc/security/openssl
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/security/openssl
------------ snip ------------

What to do now?

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert@net.informatik.tu-muenchen.de