On Tue, Apr 06, 1999 at 11:15:48AM -0500, olga wrote:
> Hi,
>
> on HPUX it looks like compilation is fine but then make hangs in the following:
>
> cc -o ssleay -DMONOLITH -I../include -DB_ENDIAN -D_HPUX_SOURCE -Aa -Ae +ESlit
> +O4 -Wl,-a,archive ssleay.o verify.o asn1pa
> rs.o req.o dgst.o dh.o enc.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o
> rsa.o dsa.o dsaparam.o x509.o genrsa.o s_server.o s_
> client.o speed.o s_time.o apps.o s_cb.o s_socket.o version.o sess_id.o
> ciphers.o -L. -L.. -L../.. -L../../.. -L.. -lssl -L.. -l
> crypto
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ssleay.o) was
> detected. The linked output may not run on a PA 1.x sys
> tem.
>
> Does anyone know what is the problem?
Hi Olga,
it isn't hanging. There are two thinks that look related, but are not:
1. The warning
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ssleay.o) was
detected. The linked output may not run on a PA 1.x system
says that you do have a system with a PA 2.0 CPU (PA8000) and the compiler
automatically chooses some operations, that are only available on these
new CPUs. If you have older workstations with PA1.1 or PA7xxx CPUs,
your executables won't run. If you have these oder workstations, you
should add the "+DAportable" compiler flag. If this doesn't run (there
was a compiler bug in early versions, use "+DA1.1 +DS2.0", which should
be the same).
2. You are using the highest optimization level "+O4". In this case the
code is not optimized on object file level, but at the end during linking.
It should not be hanging but terminate sometime. This "sometime" might
however last several hours. I didn't try it, but replaced it with "+O3",
which optimizes per object file. You might loose some percent of performance
(read this 10%, depending on the application, I don't know about openssl),
but normally it is not worth waiting for the result. I repeat: hours,
maybe days!!!
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]