Subject: Re: pkg/28858: security/openssl build fails on Sparc64 with ASM errors
To: Gert Doering <gert@kirk.greenie.muc.de>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 01/10/2005 08:12:04
On Tue, Jan 04, 2005 at 11:24:01AM +0000, Gert Doering wrote:
> 
> security/openssl (pkgsrc-current, as of Tue Jan  4 12:18:37 CET 2005)
> fails on NetBSD 2.0 with #error messages out of crypto/md5/asm/md5-sparcv9.S
> 
> [..]
> gcc -I.. -I../.. -I../../include -fPIC -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O2 -mcpu=v9 -pipe -DTERMIOS -O2 -Wall -DMD5_ASM -DMD5_BLOCK_DATA_ORDER -c \
>         -o asm/md5-sparcv9.o asm/md5-sparcv9.S
> asm/md5-sparcv9.S:83:4: #error "MD5_BLOCK_DATA_ORDER is supported only on UltraSPARC!"
> asm/md5-sparcv9.S: Assembler messages:
> asm/md5-sparcv9.S:121: Error: Unknown opcode: `load'
> asm/md5-sparcv9.S:133: Error: Unknown opcode: `load'
> asm/md5-sparcv9.S:146: Error: Unknown opcode: `load'
> asm/md5-sparcv9.S:161: Error: Unknown opcode: `load'
> asm/md5-sparcv9.S:175: Error: Unknown opcode: `load'
> (more of these)
> asm/md5-sparcv9.S:1022: Error: Unknown opcode: `load'
> gmake[2]: *** [asm/md5-sparcv9.o] Error 1
> gmake[2]: Leaving directory `/home/obj/pkg/security/openssl/work/openssl-0.9.7e/crypto/md5'
> gmake[1]: *** [subdirs] Error 1

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.

	Thanks,

	-- Johnny Lam <jlam@NetBSD.org>