From: mmarkus69 at hotmail dot com Operating system: Ubuntu 8.04 PHP version: 5.2.8 PHP Bug Type: cURL related Bug description: Problem in config.m4
Description: ------------ When compiling using --with-curl, the following error appears: php-5.2.8/ext/curl/interface.c:68:6: warning: #warning "libcurl was compiled with GnuTLS support, but configure could not find " "gcrypt.h; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests" However, configure does report that it has found gcrypt.h when it runs. The problem seems to be in ext/curl/config.m4 since it never defines HAVE_GCRYPT_H after checking for the aforementioned header file. This then causes the warning in interface.c which does check that HAVE_GCRYPT_H is defined. A similar problem seems to occur with HAVE_OPENSSL_CRYPTO_H although I have not investigated the situation in depth. Proposed solution (in the form of a diff patch): --- ext/curl/config.m4 2008-11-07 15:18:45.000000000 -0600 +++ config.m4 2009-01-19 13:59:57.000000000 -0600 @@ -98,8 +98,9 @@ } ], [ AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_CURL_GNUTLS], [1], [Have cURL with GnuTLS support]) AC_CHECK_HEADER([gcrypt.h], [ - AC_DEFINE([HAVE_CURL_GNUTLS], [1], [Have cURL with GnuTLS support]) + AC_DEFINE([HAVE_GCRYPT_H], [1], [Found gcrypt.h]) ]) ], [ AC_MSG_RESULT([no]) -- Edit bug report at http://bugs.php.net/?id=47153&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47153&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47153&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47153&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47153&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47153&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47153&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47153&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47153&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47153&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47153&r=support Expected behavior: http://bugs.php.net/fix.php?id=47153&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47153&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47153&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47153&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47153&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47153&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47153&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47153&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47153&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47153&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47153&r=mysqlcfg