Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-22-2004, 06:10 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 12

Rep: Reputation: 0
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.

Old 01-23-2004, 09:14 AM   #2
LQ Newbie
Registered: Jan 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Compile Problem xemoflyerx Linux - Software 2 01-23-2005 04:36 PM
openssl problem abdullahgee Programming 0 06-03-2004 02:00 PM
Apache Openssl compile fails rioguia Linux - Software 2 11-07-2003 08:13 AM
PHP + OpenSSL Miky28 Linux - Newbie 0 07-29-2003 06:26 AM
php compile problem heathpitts Linux - Software 2 06-11-2003 09:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration