From: michael_palmer at trend dot com dot tw Operating system: RHEL 4 (64-bit) PHP version: 5.2.5 PHP Bug Type: Compile Failure Bug description: FreeTDS and OpenSSL linking problem
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 -- Edit bug report at http://bugs.php.net/?id=43585&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43585&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43585&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43585&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43585&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43585&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43585&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43585&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43585&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43585&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43585&r=support Expected behavior: http://bugs.php.net/fix.php?id=43585&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43585&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43585&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43585&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43585&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43585&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43585&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43585&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43585&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43585&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43585&r=mysqlcfg