pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/28858: security/openssl build fails on Sparc64 with ASM errors



On Mon, Jan 10, 2005 at 08:12:04AM +0000, Johnny C. Lam wrote:
> 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.

With the patch attached this time.
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/distinfo,v
retrieving revision 1.38
diff -u -r1.38 distinfo
--- distinfo    31 Dec 2004 17:34:10 -0000      1.38
+++ distinfo    10 Jan 2005 08:08:10 -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) = dce0f8e7722d852c9d7e822d3d86bbe9b97014fd
+SHA1 (patch-ac) = 1747b7af6dcf64d4787aa5c99c25bd6ea4ffa5d2
 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.22
diff -u -r1.22 patch-ac
--- patches/patch-ac    27 Dec 2004 06:14:40 -0000      1.22
+++ patches/patch-ac    10 Jan 2005 08:08:10 -0000
@@ -20,7 +20,7 @@
 +"NetBSD-ns32k", "gcc:-DTERMIOS -O2 -Wall -DL_ENDIAN::(unknown):::BN_LLONG 
MD2_CHAR RC4_INDEX 
DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-powerpc", "gcc:-DTERMIOS -O2 -Wall -DB_ENDIAN::(unknown):::BN_LLONG 
MD2_CHAR RC4_INDEX 
DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-sparc", "gcc:-DTERMIOS -O2 -Wall -DB_ENDIAN::(unknown):::BN_LLONG 
MD2_CHAR RC4_INDEX 
DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"NetBSD-sparc64", "gcc:-DTERMIOS -O2 -Wall::(unknown):::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 -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-vax", "gcc:-DTERMIOS -O2 -Wall -DL_ENDIAN::(unknown):::BN_LLONG 
MD2_CHAR RC4_INDEX 
DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-x86-aout", "gcc:-DTERMIOS -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 -O2 -Wall::(unknown):::BN_LLONG 
${x86_gcc_des} 
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",


Home | Main Index | Thread Index | Old Index