Red Hat Bugzilla – Bug 13515
OpenSSL and OpenSSH source RPMS Fail to Compile on sparc64
Last modified: 2008-05-01 11:37:56 EDT
I was forced to chose 'RedHat Linux' because the bugzilla didn't have a
better catagory. I was then forced to chose 'telnet' as the Componet
because bugzilla wouldn't let me enter OpenSSL or OpenSSH. (Perhaps you
folks should make it a tad easier to report bugs?)
The source rpms being distributed at ftp://ftp.redhat.de/ for OpenSSL and
OpenSSH fail to compile on sparc64. The following is from a fresh install
of 6.2 sparc.
Here is the OpenSSL error:
gcc -I. -I../include -O2 -m64 -mcpu=ultrasparc -DL_ENDIAN -DTERMIO -Wall
-Wuninitialized -DNO_ASM -c -o cryptlib.o cryptlib.c
cc1: -m64 is not supported by this configuration
make: *** [cryptlib.o] Error 1
make: Leaving directory `/usr/src/redhat/BUILD/openssl-0.9.5a/crypto'
make: *** [all] Error 1
Bad exit status from /var/tmp/rpm-tmp.10431 (%build)
I managed to install OpenSSL from the sources fron their website then
attempted a compile of OpenSSH from the src.rpm with --nodeps and got the
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -m64 -mcpu=ultrasparc ) works...
configure: error: installation or configuration problem: C compiler cannot
Bad exit status from /var/tmp/rpm-tmp.26752 (%build)
I assume that the OpenSSH rpm applies some patches because when I installed
OpenSSH portable from the sources on their ftp site, I could ssh out but
the sshd wouldn't do authentication. My reason for giving this bug report
a priority of 'high' and a severity of 'security' is that secure logins are
essential on most any network, and that a server without a working sshd is
completely useless to me.
*** This bug has been marked as a duplicate of 13502 ***
The -m64 is coming from rpm configuration, and the flags are appropriate for
Edit /usr/lib/rpm/sparc64-linux and edit
%optflags -O2 -m64 -mcpu=ultrasparc
as appropriate (try changing -m64 to -m32).
The ssh packages were not in bugzilla at the time because it would have been
against USA law to practice things like free speech with foreigners 8)