Hi..
I'd posted this message - but it never showed up !!.. (forwarding it
again).
-Madhu
-----Original Message-----
From: MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)
Sent: Friday, January 25, 2002 11:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: More problems compiling hp-ux 11i
Oops.. I forgot to mention another gotcha here.. You may have to make these
changes in Makefile.org also, as the Makefile.ssl can get overwritten based
on your timestamp values..
-Madhu
-----Original Message-----
From: MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)
Sent: Friday, January 25, 2002 11:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: More problems compiling hp-ux 11i
Hi Chris,
You might want to try the following patch, with "./config +Z threads
shared"
-Madhu
--------------------------------------------------------------
$ diff -u Makefile.ssl.ORG Makefile.ssl
--- Makefile.ssl.ORG Fri Jan 25 09:52:33 2002
+++ Makefile.ssl Fri Jan 25 09:52:46 2002
@@ -364,7 +364,7 @@
# This assumes that GNU utilities are *not* used
do_hpux-shared:
- libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
+ libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
( set -x; /usr/ccs/bin/ld +vnocompatwarnings \
-b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
@@ -374,7 +374,7 @@
# This assumes that GNU utilities are *not* used
do_hpux64-shared:
- libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
+ libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
( set -x; /usr/ccs/bin/ld -b -z -o
lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+forceload lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
-----------------------------------------------------------------
-----Original Message-----
From: Chris Steinke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 2:32 PM
To: [EMAIL PROTECTED]
Subject: More problems compiling hp-ux 11i
Hi,
Well not to beat a dead horse about this, and after going through the
older threads regarding shared libraries under HPUX 11 and I tried a few
things, but it ultimately didn't quite work right.
What I had to do is do a number of things by hand. Build the thing with
no modifications and then cp the libraries that finished compiling over
and then rerun the linker for libssl.sl with a -L/usr/local/ssl/lib and
everything that requires OpenSSL seems to work fine after that.
I have tried this under Solaris and Linux without any problems. But HPUX
is as another person had mentioned, a nightmare.
I unpacked the gzipped tar archive and ran Configure with the following
options I wanted to use the HPUX native compiler and create shared
libraries and use threads.
./Configure threads shared hpux-parisc-cc
make
<compile works and creates the crypto lib, but fails trying to build the
ssl library. It complains it can't find it.
###################################################################
+ /usr/ccs/bin/ld +vnocompatwarnings -b -z -o libssl.sl.0.9.6 +h
libssl.sl.0.9.6 -Fl libssl.a -lcrypto -ldld -lc
/usr/ccs/bin/ld: Can't find library: "crypto"
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
I edit the make file and added the following
###################################################################
-L/usr/local/src/openssl-0.9.6c
do_hpux-shared:
libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
( set -x; /usr/ccs/bin/ld +vnocompatwarnings \
-L/usr/local/src/openssl-0.9.6c\
-b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
-Fl lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
libs="$$libs -L. -l$$i"; \
done
###################################################################
This compiles fine and then whe I run make test I get the following
at the end:
###################################################################
Approximate total client time: 2.43 s
/usr/lib/dld.sl: Can't open shared library: ../libcrypto.sl.0.9.6
/usr/lib/dld.sl: No such file or directory
*** Termination signal 134
Stop.
##################################################################
Ignoring the result of make test I did a make install, just for the hell
of it.
I am trying to put together sendmail with sasl and starttls on this
system and when I did an 'ldd' of the sendmail binary I get the
following:
ldd
/usr/local/src/sendmail/sendmail/obj.HP-UX.11.11.9000-800/sendmail/sendmail
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/sasl/lib/libsasl.sl.8 =>
/usr/local/sasl/lib/libsasl.sl.8
/usr/local/ssl/lib/libcrypto.sl.0.9.6
=> /usr/local/ssl/lib/libcrypto.sl.0.9.6
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/local/ssl/lib/libssl.sl.0.9.6
=> /usr/local/ssl/lib/libssl.sl.0.9.6
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/dld.sl: Can't open shared library:
/usr/local/src/openssl-0.9.6c/libcrypto.sl.0.9.6
/usr/lib/dld.sl: No such file or directory
What I want to know is WHY under HPUX is it trying to bind the build
directory for runtime execution? The -L flag to the linker does,
according to the man page, what a well behaved linker with -L should do.
Look here when during the build process for libraries.
I'll be sending this email to a contact at HP to find out what's going
on.. anybody here have any thoughts on the matter?
Thank for any thoughts or ideas.
Chris
--
______________________________________________________________________
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]