Hi, I'm no Linux guru but this worked for me (or rather it's equivalent).
To ensure that you link to your development libraries: g++ -o tls-srv main.o /home/dev/openssl-0.9.8d/lib/libssl.so.0.9.8 /home/dev/openssl-0.9.8d/lib/libcrypto.so.0.9.8 ... and then use LD_LIBRARY_PATH in your run-time to ensure that your development, rather than installed, shared libraries are used. And also remember to set LD_LIBRARY_PATH before using ldd. G. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lauer, Thomas Sent: 08 August 2008 15:22 To: openssl-users@openssl.org Subject: compiling app with separate openssl hi. i'm using ubuntu with libssl-dev (0.9.8g-4ubuntu3.3). additional i compiled openssl 0.9.8d in a separate folder (/home/dev/openssl-0.9.8d). now i'm trying to compile a tool that will link to my second openssl-lib in /home/dev... this is my g++ call: #> g++ -o tls-srv main.o -L/home/dev/openssl-0.9.8d/lib -lssl -lcrypto but ldd shows me, that tls-srv will use the ossl lib in /usr/lib/i686/cmov/ (ubuntu ossl-lib). i compiled my second ossl lib with following commands: #> ./config --prefix=/home/dev/openssl-0.9.8d -DOPENSSL_NO_COMP #> make #> make install in /home/dev/openssl-0.9.8d there are the following lib-files: drwxr-xr-x 2 root root 4096 2008-08-08 15:30 engines -rw-r--r-- 1 root root 2353124 2008-08-08 15:30 libcrypto.a lrwxrwxrwx 1 root root 18 2008-08-08 15:30 libcrypto.so -> libcrypto.so.0.9.8 -r-xr-xr-x 1 root root 1510851 2008-08-08 15:30 libcrypto.so.0.9.8 -rw-r--r-- 1 root root 399534 2008-08-08 15:30 libssl.a lrwxrwxrwx 1 root root 15 2008-08-08 15:30 libssl.so -> libssl.so.0.9.8 -r-xr-xr-x 1 root root 287236 2008-08-08 15:30 libssl.so.0.9.8 drwxr-xr-x 2 root root 4096 2008-08-08 15:29 pkgconfig but i wonder, that #> ldd libssl.so use libcrypto.so from /usr/lib/i686/cmov [EMAIL PROTECTED]:/home/dev/openssl-0.9.8d/lib# ldd libssl.so linux-gate.so.1 => (0xb7f32000) libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb7d9f000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7d9b000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c4b000) libz.so.1 => /usr/lib/libz.so.1 (0xb7c36000) /lib/ld-linux.so.2 (0xb7f33000) perhabs anybody can help me? thanks Thomas L. PS: sorry for my bad english :) ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]