Abdelmonam Kouka wrote:
I am new in this mailing list and into openssl. I tried to build openssl-0.9.8h under HP-UX 11.11 using gcc 4.2.3 by following these instructions:
*./config shared*
*make update*
*make*
*make test*
*make install

*All is well, but when I execute make I got this error:

//many other lines
make -f ../Makefile.shared -e \
APPNAME=openssl OBJECTS="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 ec.o ecparam.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 prime.o cms.o" \
                LIBDEPS=" $LIBRARIES -Wl,+s -ldld" \
                link_app.${shlib_target}
/usr/ccs/bin/ld: Unsatisfied symbols:
   PKCS8_encrypt (first referenced in pkcs8.o) (code)
   X509_set_pubkey (first referenced in req.o) (code)
//many other lines
   X509_get_serialNumber (first referenced in req.o) (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Any idea please?
Not sure whether this is the reason for the build failure, but HP-UX 11.11 linker (ld) requires that input files are in a particular order. The most dependant files should go first. E.g. if a.obj requires some symbol, which is defined in b.obj, then a.obj must appear on the ld command line before b.obj, or you will get an error similar to
the one you describe.
This is documented in the man pages for ld.
My guess is that OpenSSL does not maintain this order when calling linker as most modern linkers do not have
this limitation.

Hope this helps,

Juraj Ivančić
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to