php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43585 FreeTDS and OpenSSL linking problem
Submitted: 2007-12-13 02:58 UTC Modified: 2008-01-29 00:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: michael_palmer at trend dot com dot tw Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.5 OS: RHEL 4 (64-bit)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael_palmer at trend dot com dot tw
New email:
PHP Version: OS:

 

 [2007-12-13 02:58 UTC] michael_palmer at trend dot com dot tw
Description:
------------
When compiling PHP on RHEL4 (64-bit) with FreeTDS, SOAP, OpenSSL and cURL, originally this "configure" command worked:

> ./configure --with-apxs2=/usr/sbin/apxs --with-mssql=/usr/local/freetds --enable-soap --with-openssl --with-curl

However, this time, when trying to upgrade from 5.1.6 to 5.2.5, the command did not work and we got this error:

configure: error: Cannot find OpenSSL's libraries

We tried again by specifying OpenSSL's path:

> ./configure --with-apxs2=/usr/sbin/apxs -with-mssql=/usr/local/freetds --enable-soap --with-openssl=/usr/include/openssl --with-curl

This time a different error:

configure: error: Cannot find OpenSSL's <evp.h> 3

Finally, the following solution worked:

> up2date openssl
> up2date openssl-devel
> up2date curl-devel
 
> cd /usr/local/src/php-5.2.5
> vi configure                                      
On line 21380, modified the string to: "OPENSSL_INCDIR=$i/include/openssl"
 
> cd /usr/local/freetds
> ln -s lib lib64
 
> ./configure --with-apxs2=/usr/sbin/apxs --with-mssql=/usr/local/freetds --enable-soap --with-openssl --with-curl --with-libdir=lib64

Reproduce code:
---------------
./configure --with-apxs2=/usr/sbin/apxs --with-mssql=/usr/local/freetds --enable-soap --with-openssl --with-curl

./configure --with-apxs2=/usr/sbin/apxs -with-mssql=/usr/local/freetds --enable-soap --with-openssl=/usr/include/openssl --with-curl

Expected result:
----------------
Successful linking, "Thank you for using PHP" message

Actual result:
--------------
configure: error: Cannot find OpenSSL's libraries

and then:

configure: error: Cannot find OpenSSL's <evp.h> 3

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-29 00:42 UTC] tony2001@php.net
>--with-openssl=/usr/include/openssl 

/usr/include/openssl is not a prefix of OpenSSL installation.
/usr is.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 25 23:00:03 2025 UTC