This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
PGP 5.0i compiled with egcs-1.0.2/Solaris 2.6-sparc gives bus error
- To: egcs at cygnus dot com
- Subject: PGP 5.0i compiled with egcs-1.0.2/Solaris 2.6-sparc gives bus error
- From: Yusuf Goolamabbas <yusufg at krdl dot org dot sg>
- Date: Tue, 24 Mar 1998 15:15:12 +0800
When generating a key via pgpk -g. I get a bus error.
According to the PGP bugs page
http://www.pgpi.com/bugs/bugs50i.shtml
Bus error on Solaris 2.5.1
Kris Van Hees <aedil@ny.fnx.com> wrote:
Hi,
Compiling PGP 5.0i sources on a Solaris 2.5.1 (Sparc20) box with
GCC 2.7.1 succeeded but the resulting code aborts with a Bus Error when
running key generation (pgpk -g). I traced down the problem to the struct
MD5Context, which contains a conditional for HAVE64, which is set along
with typedefs in include/pgpUsuals.h. I am not certain why, but using
that auto-resolving finds a 64bit type as 'unsigned long long', and thus
sets HAVE64. Yet when used in code this fails. I think this might be
a problem with GCC/Solaris interaction. A Bus Error sounds to me as a
possible alignment problem there.
I manually disabled the HAVE64 check, so that the code will use
two 32bit words, and that solved the problem.
Can somebody comment upon this ?
I am on a solaris-sparc-2.6 system with gcc
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
Cheers, Yusuf
--
Kent Ridge Digital Labs (Formerly Institute of Systems Science)
Heng Mui Keng Terrace, Singapore 119597, Republic of Singapore
Tel: +65 874-3116, Fax: +65 774-4990, Email: yusufg@krdl.org.sg