|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-01-19 20:45 UTC] mmarkus69 at hotmail dot com
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])
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 03:00:01 2025 UTC |
apt-get -y install libcurl4-gnutls-dev Anyway, this is a logical error in interface.c that falls under the heading: /* {{{ cruft for thread safe SSL crypto locks */ Thus, you need to compile a thread-safe version (zts) of PHP to see the warning. Here are the options that I used: ./configure \ --disable-cli \ --enable-embed=static \ --disable-cgi \ --disable-ipv6 \ --enable-maintainer-zts \ --disable-shared \ --enable-static \ --with-config-file-path="." \ --with-zlib \ --with-curl \ --without-pear \ --with-tsrm-pthreads Let me know if you still have problems replicating this issue and thanks for taking the time to look into it.