Thanks for all your help.  I had no trouble building on Windows, Linux,
AIX, or Solaris, but HP is still giving me nightmares.  I configured
openssl using ./config +Z.  Eventually, make stops with the following error
...

      rm -f openssl
             cc -o openssl -DMONOLITH -I../include +Z -DTHREADS
-D_REENTRANT -DDSO_DL +Z -D_REENTRANT +O3 +Optrs_strongly_typed +Olibcalls
-Ae +ESlit -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY openssl.o verify.o
asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o
ca.o pkcs7.o crl2p7.o crl.o  rsa.o rsautl.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 app_rand.o version.o sess_id.o  ciphers.o nseq.o pkcs12.o
pkcs8.o spkac.o smime.o rand.o  -lssl -lcrypto -ldld
/usr/ccs/bin/ld: Can't find library: "ssl"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Then I tried to run make test anyway and ...

c_rehash: rehashing skipped ('openssl' program not available)
        touch rehash.time
testing...
        cc -I../include +Z -DTHREADS -D_REENTRANT -DDSO_DL +Z -D_REENTRANT
+O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DBN_DIV2W
-DMD32_XARRAY -c bntest.c
        cc -o bntest -I../include +Z -DTHREADS -D_REENTRANT -DDSO_DL +Z
-D_REENTRANT +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN
-DBN_DIV2W -DMD32_XARRAY bntest.o  -lcrypto -ldld
/usr/ccs/bin/ld: Can't find library: "crypto"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

So both the ssl and crypto libraries can't be found, but both libcrypto.a
and libssl.a exist in the openssl root directory.  Do these problems sound
familiar to anyone?  I didn't have as many problems when I built on HP
10.20, but I'm using release 11i now.  Thanks again for bearing with me!

Rob



                                                                                       
                                        
                      Lutz Jaenicke                                                    
                                        
                      <[EMAIL PROTECTED]        To:       
[EMAIL PROTECTED]                                        
                      Cottbus.DE>                   cc:                                
                                        
                      Sent by:                      Subject:  Re: creating shared libs 
on hp-ux 11                             
                      owner-openssl-users@op                                           
                                        
                      enssl.org                                                        
                                        
                                                                                       
                                        
                                                                                       
                                        
                      01/24/2002 03:17 AM                                              
                                        
                      Please respond to                                                
                                        
                      openssl-users                                                    
                                        
                                                                                       
                                        
                                                                                       
                                        



On Wed, Jan 23, 2002 at 02:30:59PM -0500, Robert Pungello wrote:
> I originally ran the config script  as "./config shared threads
> -D_REENTRANT".  However, I was unable to run anything in the apps
> directory, so I'm assuming that this was not quite right.  I just tried
the
> config options you gave, but -fPIC  is an unknown option and is being
> ignored by the machine I'm building on.

-fPIC is the compiler option for GNU C. For HP's compiler it is +Z.

You can add +Z to the configuration, then build OpenSSL.
Finally process the created libcryto.a and libssl.a with:
/usr/ccs/bin/ld -b -z -o libcrypto.sl.0.9.6 +h libcrypto.sl.0.9.6 -Fl
libcrypto.a
(using the "-Fl"=forceload option, which is available at 10.20 but not
documented, I think it is documented on 11).

Then copy the library to /usr/local/ssl/lib (or whatever location you
want),
ln -s libcrypto.sl.0.9.6 libcrypto.sl
chmod a+rx libcrypto.sl.0.9.6
chmod a-w libcrypto.sl.0.9.6

That's it.

Best regards,
             Lutz
--
Lutz Jaenicke                             [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to