php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46521 Curl ZTS OpenSSL, error in config.m4 fragment
Submitted: 2008-11-07 20:07 UTC Modified: 2008-11-07 21:19 UTC
From: jd at cpanel dot net Assigned:
Status: Closed Package: *Compile Issues
PHP Version: 5.2.7RC3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jd at cpanel dot net
New email:
PHP Version: OS:

 

 [2008-11-07 20:07 UTC] jd at cpanel dot net
Description:
------------
etc/curl/config.m4 uses AC_CHECK_HEADER to look for openssl/crypto.h then defines HAVE_CURL_OPENSSL.

ext/curl/interface.c expects HAVE_OPENSSL_CRYPTO_H to be defined, but that would only be the case if AC_CHECK_HEADERS was used in the config.m4 fragment instead of AC_CHECK_HEADER.



Reproduce code:
---------------
Compile with ZTS and Curl linked to OpenSSL.

Expected result:
----------------
Compile without errors.

Actual result:
--------------
/bin/sh /home/cpeasyapache/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile /home/cpeasyapache/src/php-5.2.6/meta_ccld  -Iext/curl/ -I/home/cpeasyapache/src/php-5.2.6/ext/curl/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.2.6/include -I/home/cpeasyapache/src/php-5.2.6/main -I/home/cpeasyapache/src/php-5.2.6 -I/opt/xml2/include/libxml2 -I/opt/curlssl//include -I/home/cpeasyapache/src/php-5.2.6/ext/date/lib -I/opt/php_with_imap_client//include -I/usr/kerberos/include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.
2.6/TSRM -I/home/cpeasyapache/src/php-5.2.6/Zend  -D_REENTRANT  -I/usr/kerberos/include -pthread -DZTS  -c /home/cpeasyapache/src/php-5.2.6/ext/curl/interface.c -o ext/curl/interface.lo/home/cpeasyapache/src/php-5.2.6/ext/curl/interface.c:58:6: warning: #warning "libcurl was compiled with OpenSSL support, but configure could not find " "openssl/crypto.h; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 21:19 UTC] felipe@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC