]> granicus.if.org Git - php/commitdiff
Add the libraries we actually test and need for LDAP and OpenSSL, fixes bug #53339
authorRaphael Geissert <geissert@php.net>
Fri, 18 Mar 2011 18:47:09 +0000 (18:47 +0000)
committerRaphael Geissert <geissert@php.net>
Fri, 18 Mar 2011 18:47:09 +0000 (18:47 +0000)
Patch by Clint Byrum

NEWS
acinclude.m4
ext/ldap/config.m4
ext/openssl/config0.m4

diff --git a/NEWS b/NEWS
index 84e8f4e08f9548fe8454d63c19f8373778bbb515..d68ddd587cd9f9fd92d85e9b35909ee9d73a1e78 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,10 @@ PHP                                                                        NEWS
 - DBA extension:
   . Fixed bug #54242 (dba_insert returns true if key already exists). (Felipe)
 
+- LDAP extension:
+  . Fixed bug #53339 (Fails to build when compilng with gcc 4.5 and DSO
+    libraries). (Clint Byrum, Raphael)
+
 - MySQL Improved extension:
   . Fixed Bug #54221 (mysqli::get_warnings segfault when used in multi queries).
     (Andrey)
index 658d0342780043072795f906d548b273c2769f78..25e35fd179eed81ed2e3cb67fed79c272923e8ac 100644 (file)
@@ -2397,7 +2397,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
       -L$OPENSSL_LIBDIR
     ])
     LIBS=$old_LIBS
-    PHP_ADD_LIBRARY(ssl,,$1)
+    PHP_ADD_LIBRARY(crypto,,$1)
 
     PHP_ADD_LIBPATH($OPENSSL_LIBDIR, $1)
   fi
index 4112d468116944ca7e8f500450c7fde4f2b5b476..58d994c10ec9426f37b0918d3c3b897897d43345 100644 (file)
@@ -50,7 +50,7 @@ AC_DEFUN([PHP_LDAP_SASL_CHECKS], [
     SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
   fi
   
-  PHP_CHECK_LIBRARY(ldap, sasl_version,
+  PHP_CHECK_LIBRARY(sasl2, sasl_version,
   [
     PHP_ADD_INCLUDE($LDAP_SASL_INCDIR)
     PHP_ADD_LIBRARY_WITH_PATH(sasl2, $LDAP_SASL_LIBDIR, LDAP_SHARED_LIBADD)
index e9699605fe73976a5ed67e69fff3b50b5d73c9d3..2c7f4fb691f44089e178609ee2d0b5fe1b5ad01d 100644 (file)
@@ -17,6 +17,7 @@ if test "$PHP_OPENSSL" != "no"; then
   fi
 
   AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
+  AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
 
   PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, 
   [