Hi all,

I'm trying to build a shared library - libmylib.so - with the crypto and ssl
libraries statically linked in.  Then problem I'm running into is when I try
to dynamically link mylib.so,

  If I link like this:
    g++ -O2 -shared -o libreal_mcaudit.so
mylib.o -L/usr/local/openssl-0.9.6/lib -Bstatic -lcrypto -lssl
  I get this error:
    error condition: ld.so.1: ./run.dlopener: fatal: relocation error: file
libmylib.so: symbol X509_free: referenced symbol not found

  If I link like this (reversing the order of -lcrypto and -lssl):
    g++ -O2 -shared -o libreal_mcaudit.so
mylib.o -L/usr/local/openssl-0.9.6/lib -Bstatic -lssl -lcrypto
  I get this error:
    error condition: ld.so.1: ./run.dlopener: fatal: relocation error: file
libmylib.so: symbol shutdown: referenced symbol not found

Any ideas what I'm doing wrong?

Thanks
Jeff

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

Reply via email to