ID:               47153
 Updated by:       j...@php.net
 Reported By:      mmarkus69 at hotmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         cURL related
 Operating System: Ubuntu 8.04
 PHP Version:      5.2.8
 New Comment:

So what did you do wrong? The same configure works fine for me on 
several installation. Did you go and compile curl yourself? I bet you 
have 2 (or more) installations there that conflict which each other..


Previous Comments:
------------------------------------------------------------------------

[2009-01-19 20:45:32] 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])




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47153&edit=1

Reply via email to