Hello,
I admin set of Debian 2.2r2 servers that are behind a pair of load balancers. I've recently had to add openssl support into php to enable the developers to use curl for both posting and reading ssl pages. The problem I'm encountering is thus:
Debian 2.2r2 comes with openssl 0.9.4b as standard. PHP requires version 0.9.5 or higher. Upgrading the default libs (in /usr/lib/) is out of the question (too many items depend on this older version in place) and moving to debian unstable or testing is also out of the question. I've built a newer version of openssl in /usr/local/ssl (putting the libs in /usr/local/ssl/lib). I've tried a number of ways to get PHP to link against the /usr/local/ssl version of the libraries but afterwards ldd always shows it linking against /usr/lib/libssl.so. It always finds the headers in the right location. How can I force php to link and load the newer version of ssl? I've tried using various command line linker arguments (such as "-W1,-rpath,/usr/local/ssl/lib", "-L/usr/local/ssl/lib/", etc) on the command line and in some of the Makefiles (main and ext/ssl). It's my understanding that the -rpath/-rpath-link options are supposed to make a directory precede the system lib directories when passed to the linker but this does not appear to make a difference while compiling php. Any recommendations, anyone?
TIA,
Jim Raney