I have just compiled opensll on HP-UX 10.20.

$ openssl version -a
OpenSSL 0.9.3a 29 May 1999
built on: Mon Jul 12 12:39:20 BST 1999
platform: hpux10-cc
options:  bn(64,32) md2(int) rc4(ptr,int) des(ptr,risc1,16,long)
          blowfish(idx) 
compiler: cc -DTHREADS -D_REENTRANT -DNO_IDEA +Z -DB_ENDIAN -DBN_DIV2W
          -Ae +ESlit +O2 -z


In order to get this to work I had to change the CFLAGS line 
Makefile.ssl from +O4 to +O2, otherwise the following would happen:


------------------------------------------------------------

$ ./config --prefix=/opt/ward/usr no-idea +Z
(the HP-UX cc compiler uses the +Z flag instead of -fPIC)

[ ... everything seems to run without a problem until ... ]

making all in apps...
        cc -DMONOLITH -I../include -DTHREADS -D_REENTRANT -DNO_IDEA +Z 
-DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O4 -z -c verify.c


[ ... this all still runs without a problem ... ]

        cc -DMONOLITH -I../include -DTHREADS -D_REENTRANT -DNO_IDEA +Z 
-DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O4 -z -c openssl.c
        rm -f openssl
        cc -o openssl -DMONOLITH -I../include -DTHREADS -D_REENTRANT 
-DNO_IDEA +Z -DB_ENDIAN -DBN_DIV2W -Ae +ESlit +O4 -z openssl.o verify.o 
asn1pars.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 gendsa.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 nseq.o pkcs12.o -L. -L.. -L../.. 
-L../../.. -L.. -lssl -L.. -lcrypto 


[ ... then I get about 350 times the message below ... ]

ucomp : 
   Warning at line 0  : Do not use optimization levels higher than 2 to 
generate a shared library if a user of that library may redefine a 
routine within that library (8006)


[ ... and then everything seems to hang and ucomp takes up about 90% CPU 
... ]


-------------------------------------------------------------------

I hope this is of interest to you.


Kees Vonk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to