Subject: Re: pkg/28858: security/openssl build fails on Sparc64 with ASM errors
To: <>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 01/11/2005 23:02:51
--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Jan 11, 2005 at 10:10:51PM +0000, Johnny C. Lam wrote:
> 
> I've attached one last patch against the HEAD that just flat out removes
> the assembly code from being built on NetBSD/sparc64.  I think this
> is somewhat unfortunate, since I assume that it works on Solaris/sparc64.
> However, since I don't have access to such a system, I can't verify
> this.
> 
> If you want to continue to play with enabling the assembly, you'll
> need to edit the Configure script.  Running "make TABLE PERL=perl" in
> ${WRKSRC} will generate a table of the configurations that the Configure
> script knows.
> 
> Regardless, please let me know if this last patch does fix the test
> results for you.

I've committed the changes that fixed the build.  I've attached a new
patch against the (new) HEAD that just removes the sparc64 ultrasparc
assembly code.  Please let me know if this fixes the test results.

	Thanks,

	-- Johnny Lam <jlam@NetBSD.org>

--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="openssl4.diff"

? COMMIT
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/distinfo,v
retrieving revision 1.40
diff -u -r1.40 distinfo
--- distinfo	11 Jan 2005 22:25:00 -0000	1.40
+++ distinfo	11 Jan 2005 22:52:55 -0000
@@ -3,7 +3,7 @@
 SHA1 (openssl-0.9.7e.tar.gz) = b2eb7f13cc09655ec2378c3dde3025bf7072af54
 Size (openssl-0.9.7e.tar.gz) = 3043231 bytes
 SHA1 (patch-aa) = 5ab4ec9fdf15c9ded6a6205dc4801e053b3769fc
-SHA1 (patch-ac) = 37490fbe780d10631368bd0ba7cc04767b9c6ab4
+SHA1 (patch-ac) = b436785b5dbc5cf27a9dd13a041d7626dfef941f
 SHA1 (patch-ad) = 3d0a5534c6946aeda219d670f241a01e72d86c6a
 SHA1 (patch-ae) = cb3ce622ef9efc4098d57b10059e5424272520c8
 SHA1 (patch-af) = 6e1c0f674be9b0358b1e152b50eb5bc47f2fff17
Index: patches/patch-ac
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/patches/patch-ac,v
retrieving revision 1.24
diff -u -r1.24 patch-ac
--- patches/patch-ac	11 Jan 2005 22:25:00 -0000	1.24
+++ patches/patch-ac	11 Jan 2005 22:52:55 -0000
@@ -20,7 +20,7 @@
 +"NetBSD-ns32k", "gcc:-DTERMIOS -DL_ENDIAN -O2 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-powerpc", "gcc:-DTERMIOS -DB_ENDIAN -O2 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-sparc", "gcc:-DTERMIOS -DB_ENDIAN -O2 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"NetBSD-sparc64", "gcc:-DTERMIOS -DB_ENDIAN -O2 -Wall::(unknown):ULTRASPARC::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2 BF_PTR::::asm/md5-sparcv9.o::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"NetBSD-sparc64", "gcc:-DTERMIOS -DB_ENDIAN -O2 -Wall::(unknown):ULTRASPARC::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2 BF_PTR::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-vax", "gcc:-DTERMIOS -DL_ENDIAN -O2 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-x86-aout", "gcc:-DTERMIOS -DL_ENDIAN -O2 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-x86-elf", "gcc:-DTERMIOS -DL_ENDIAN -O2 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",

--zYM0uCDKw75PZbzx--