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]

Reply via email to