Ok,
I was hoping that someone had any information on compilation options that I could use. Apparently no one has any....so here are step-by-step errors and my attempts to fix it. Its long, so grab a coffee and enjoy....
First command:
> ./config --prefix=/opt/openssl
[....]
Configured for hpux-parisc-gcc.
> gcc -v
Reading specs from /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/specs
Configured with: ../src/configure --enable-languages=c,c++ --prefix=/usr/local/pa20_64 --with-local-prefix=/usr/local/pa20_64 --with-gnu-as --with-as=/usr/local/pa20_64/bin/as --with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld --disable-shared --disable-nls --host=hppa64-hp-hpux11.11
Thread model: single
gcc version 3.3.2
Then second command:
> make
Which causes this problem after a few minutes:
gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_THREADS -DDSO_DL -DOPENSSL_NO_KRB5 -D_REENTRANT -O3 -DB_ENDIAN -DBN_DIV2W 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 engine.o ocsp.o -L.. -lssl -L.. -lcrypto -Wl,+s -ldld ; \
fi
/usr/local/pa20_64/bin/ld: cannot open +s: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [openssl] Error 1
To fix it, I edit the "Configure" file and change:
"hpux-parisc-gcc","gcc:-O3 -DB_ENDIAN -DBN_DIV2W::::-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared
:-fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
To:
"hpux-parisc-gcc","gcc:-O3 -DB_ENDIAN -DBN_DIV2W::::-Wl, -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1::::::::::dl:hpux-shared:-
fPIC::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
Also changed the "Makefile" entries from (note the line numbers):
67: EX_LIBS= -Wl,+s -ldld
487: -b -z +s \
To:
67: EX_LIBS= -Wl, -ldld
487: -b -z \
Then I proceed to do a "make clean" and re-execute "make".
Which causes the following error:
gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_THREADS -DDSO_DL -DOPENSSL_NO_KRB5 -D_REENTRANT -O3 -DB_ENDIAN -DBN_DIV2W 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 engine.o ocsp.o -L.. -lssl -L.. -lcrypto -Wl, -ldld ; \
fi
/usr/local/pa20_64/bin/ld: cannot open : No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [openssl] Error 1
I believe if I remove the "-ldld" option, it will work, but I'm now at a point that I do not know what problems that will cause.
Thanks for any help guys. Sorry for not including more details on my original email...was a bit fustrated at compiling openssl...
Vinnie Lima
[EMAIL PROTECTED]
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------
"Vinnie Lima" <vlima @csc.com> Sent by: owner-openssl-users 11/14/2003 06:47 PM
|
To: [EMAIL PROTECTED] cc: Subject: Cannot "make test" openssl-0.9.7c on HPUX 11.11 |
Hi,
I've basically given up attempting to compile OpenSSL 0.9.7c on HPUX 11.11 (11i) PA-RISC2.0.
Has anyone gotten any success in compiling openssl 0.9.7c on hpux11.11 using gcc 3.3.2 and gnu make?
Any configuration options/tuning would be greatly helpful. I'll post the details of my errors but I would like to see if anyone has any clear path to this maddness....
Thanks,
v.