On Wed, Jul 07, 1999 at 11:50:04AM +0200, Nicolas Pomarede wrote:
>
> Hello,
>
> As I previously reported it on this mailling list, I had some problems
> whem trying to build version 0.93a on an HP UNIX B.10.20
>
> Actually, it stops when running 'make test' and trying the x509
> conversions :
...
> The compile option used with version 0.92b was
> cc -DB_ENDIAN -D_HPUX_SOURCE -Aa -Ae +ESlit +O4 -Wl,-a,archive
>
> but I think it was the same when compiling 0.93a (I didn't change
> anything, just used what config generated).
>
> Any idea of what might go wrong ?
> Is there any test or other infos I could send to help fixing this ?
Nicolas,
I compiled OpenSSL 0.9.3a successfully with "hpux10-cc" with 2 modifications.
>From "Configure":
# HPUX 10.X config. Supports threads.
"hpux10-cc", "cc:-DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O2 +DAportable
-z:-D_REENTRANT::BN_LLONG DES_PTR DES_UNROLL DES_RISC1:::",
+DAportable: Generate code that will also run on older PA1.1 processors (I
compile on a PA2.0), YMMV
+O2 instead of +O4:
- When using +O4, the optimization is done during linking. That might be
ok, when you only want to build the "openssl" monolithic executable.
If you want to link libssl.a to other programs, it means that the
linking phase of Apache/mod_ssl, Postfix/TLS, sslwrap, stunnel,
(add the names of your favorite packages here) will need a large
amount of time.
- +O4 might be the highest level of optimization, but the optimization time
(remember: in the linking phase) becomes abysmally bad.
I never tried OpenSSL, but my electromagnetic FEM package compiles in
5 minutes with +O3 and needs 1.5 hours with +O4 for a total speed gain
of maybe 10% (or less).
- At +O4 and sometimes +O3 the unbundled ANSI compiler tends to hang in
loops during optimization (hang means: I stopped after coming back from
lunch, maybe it would finish after several days, but I wouldn't care).
For OpenSSL 0.9.3a, even +O3 did hang (I forgot in which file).
With +O2 I never experienced hangs.
- Don't forget to use the latest ANSI C compiler patch, (PHSS_17504 should be
the latest).
>From my experience, you can compile most packages with +O3. If you experience
a hang during compilation, step down to +O2. On the other hand (from my
experience, too), if the package compiles, the code generated should be ok.
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]