-   Linux - Software (
-   -   compile php with openssl problem (

rmang 01-22-2004 06:10 PM

compile php with openssl problem
One of our older servers is running RH 6.2 with openssl 0.9.5 (patched) at /usr. This is required for legacy software. If I just install the new openssl 0.9.6 in /usr/local without linking it via ldconfig, and try compiling php (as an Apache DSO module) with --with-openssl=/usr/local, we get the error:

Cannot load /usr/local/apache/libexec/ into server: /usr/local/apache/libexec/ undefined symbol: sk_new_null

If I then link the new openssl, our legacy software defaults to loading the new openssl library files, which causes it to stop working. My question is: Is it possible to compile php 4.3.4 with openssl support without having openssl linked server wide, and if so, what compile commands do we need to send, and/or how should we compile openssl to accomplish this task. php 4.3.4 requires openssl 0.9.6 or higher, which is why we are doing this.

Thanks for any help on this one.


rmang 01-23-2004 09:14 AM

Figured it out. We compiled the new openssl with the "shared" config option. and only ran make. Then we created a symlink in the src openssl directory for the lib directory to the src directory of openssl, and compiled php with openssl pointed at the openssl src directory. This allowed php to compile with new openssl support even though the server is still linked with the old openssl libraries.


All times are GMT -5. The time now is 01:33 AM.