[wplug] using the correct version of multiple versions of a library

Jonathan S. Billings billings at negate.org
Mon May 15 13:26:18 EDT 2006


Duncan Hutty wrote:
> In order to use mod_pubcookie, I need to use a newer version of openssl 
> than is default on my solaris9 box. So I have /usr/local/openssl which 
> is 0.9.8a. When apache-2.0.58 is compiled using 
> --with-ssl=/usr/local/openssl, ldd against the httpd binary built shows 
> that it is linked against 0.9.6.
> 
> ldd ./bin/httpd
>         libz.so =>       /usr/local/lib/libz.so
>         libssl.so.0.9.6 =>       /usr/local/lib/libssl.so.0.9.6
>         libcrypto.so.0.9.6 =>    /usr/local/lib/libcrypto.so.0.9.6
> 
> Can someone explain or point me to reading so I can learn about how to 
> really get 0.9.8a?

You need to tell the linker to compile in a runtime search path, so it 
finds the alternative openssl library.  If youa re using GCC, you can 
set "LDFLAGS=-Wl,--rpath,/usr/local/openssl/lib" (or wherever the actual 
library path is).

-- 
Jonathan Billings <billings at negate.org>


More information about the wplug mailing list