Bug 13502

Summary: openssl-0.9.5a-2 doesn't build on sparc
Product: [Retired] Red Hat Linux Reporter: shuey
Component: opensslAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: shuey
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-06 21:29:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description shuey 2000-07-05 15:30:47 UTC
openssl-0.9.5a-2 will not build on sparc.  This is due to a problem in the
specfile; a patch to fix this follows.  It's being configured to use some
assembly routines that aren't there for non-x86 archs and -DL_ENDIAN is
given (should be -DB_ENDIAN).  I've applied this patch to the specfile and
it built correctly on a fresh RedHat 6.2 system.  Please update the SRPMS
on ftp.redhat.de; it'd be nice if the replacements were RPMv3 archives, not
RPMv4, since rh6.2 doesn't ship with support for RPMv4 archives.  Thanks.


--- openssl.spec.orig   Wed Jul  5 00:54:26 2000
+++ openssl.spec        Wed Jul  5 10:23:56 2000
@@ -1,7 +1,7 @@
 Summary: Secure Sockets Layer communications libs & utils
 Name: openssl
 Version: 0.9.5a
-Release: 2
+Release: 3
 Source: http://www.openssl.org/source/%{name}-%{version}.tar.gz
 Source1: Makefile.certificate
 Copyright: BSDish
@@ -41,20 +41,25 @@
 %ifarch mips
 perl Configure linux-mips
 %else
-%ifarch alpha
+%ifarch alpha sparc sparc64
 sh config no-asm
 %else
 sh config
 %endif
 %endif
 perl util/perlpath.pl %{_bindir}
-%ifarch i386 i486 i586 i686 i786 i886 i968
+%ifarch i386 i486 i586 i686 i786 i886 i986 k6 k7
 make all CFLAG="$RPM_OPT_FLAGS -DL_ENDIAN -DTERMIO -Wall -Wuninitialized
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM"
 make linux-shared CFLAG="$RPM_OPT_FLAGS -DL_ENDIAN -DTERMIO -Wall
-Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM"
 %else
+%ifarch sparc sparc64
+make all CFLAG="$RPM_OPT_FLAGS -DB_ENDIAN -DTERMIO -Wall -Wuninitialized
-DNO_ASM"
+make linux-shared CFLAG="$RPM_OPT_FLAGS -DB_ENDIAN -DTERMIO -Wall
-Wuninitialized -DNO_ASM"
+%else
 make all CFLAG="$RPM_OPT_FLAGS -DL_ENDIAN -DTERMIO -Wall -Wuninitialized
-DNO_ASM"
 make linux-shared CFLAG="$RPM_OPT_FLAGS -DL_ENDIAN -DTERMIO -Wall
-Wuninitialized -DNO_ASM"
 %endif
+%endif
 make DIRS=apps
 LD_PRELOAD="`pwd`/libcrypto.so `pwd`/libssl.so" make rehash test
 
@@ -110,6 +115,9 @@
 %postun -p /sbin/ldconfig
 
 %changelog
+* Wed Jul  5 2000 Mike Shuey <shuey.edu>
+- Fix build on sparc
+
 * Tue Jun 20 2000 Than Ngo <than>
 - use RPM macros

Comment 1 Nalin Dahyabhai 2000-07-06 21:29:05 UTC
*** Bug 13515 has been marked as a duplicate of this bug. ***

Comment 2 Nalin Dahyabhai 2000-10-02 01:25:39 UTC
Guinness builds of openssl also built on Sparc; they'll show up in the next Raw
Hide refresh.  Thanks!