Bug #75973 [NEW]: php 7.2.2 configure not recognizing curl 7.58.0
| From: | warren dot zaccone at ericsson dot net | Date: | Fri, 16 Feb 2018 21:11:44 +0000 |
| Subject: | Bug #75973 [NEW]: php 7.2.2 configure not recognizing curl 7.58.0 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213997@lists.php.net to get a copy of this message | ||
From: warren dot zaccone at ericsson dot net
Operating system: Solaris 10
PHP version: 7.2.2
Package: *Configuration Issues
Bug Type: Bug
Bug description:php 7.2.2 configure not recognizing curl 7.58.0
Description:
------------
php 7.2.2 configure fails with:
checking for libcurl.pc... using /usr/local/lib/pkgconfig/libcurl.pc
checking for cURL 7.10.5 or greater... configure: error: cURL version
7.10.5 or later is required to compile php with cURL support
however I have curl 7.58.0 installed
# which curl
/usr/local/bin/curl
# curl -V
curl 7.58.0 (sparc-sun-solaris2.10) libcurl/7.58.0 OpenSSL/1.0.2n
zlib/1.2.3
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
UnixSockets HTTPS-proxy
this seems to be a difference in behavior in php 7.2.2 or php 7.x on
Solaris 10.
I am upgrading from 5.6 to 7.2.2
here is my configure command for 7.2.2 (same as I used successfully for
5.6)
configure --prefix=/usr/local/apache/lib --exec-prefix=$apache_dir
--with
-apxs2=/usr/local/apache/bin/apxs --with-openssl=/usr/local/apache/ssl
--with-curl=/usr/local --enable-sockets --enable-ftp --enable-soap
--without-pear --with-oci8=instantclient,/usr/local/instantclient_11_2
--with-pcre-regex=/usr/local --enable-opcache=no
To determine if this was new behavior with php 7 , I did a quick test
configuring php 5.6.33 immediately afterward and the check for curl is
successful as shown below:
checking for cURL support... yes
checking for cURL 7.10.5 or greater... libcurl 7.58.0
checking for SSL support in libcurl... yes
Test script:
---------------
export CC="/usr/local/bin/gcc"
export CFLAGS="-std=gnu99 -fPIC -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64"
export LDFLAGS="-L/usr/local/lib -R/usr/local/lib"
rm config.cache
configure --prefix=/usr/local/apache/lib --exec-prefix=$apache_dir
--with
-apxs2=/usr/local/apache/bin/apxs --with-openssl=/usr/local/apache/ssl
--with-curl=/usr/local --enable-sockets --enable-ftp --enable-soap
--without-pear --with-oci8=instantclient,/usr/local/instantclient_11_2
--with-pcre-regex=/usr/local --enable-opcache=no
config.log
configure:23235: checking whether to enable ctype functions
configure:23270: result: yes
configure:23538: checking for cURL support
configure:23574: result: yes
configure:23627: checking for libcurl.pc
configure:23635: result: using /usr/local/lib/pkgconfig/libcurl.pc
configure:23650: checking for cURL 7.10.5 or greater
configure:23657: error: cURL version 7.10.5 or later is required to
compile php
with cURL support
--
Edit bug report at https://bugs.php.net/bug.php?id=75973&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75973&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75973&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75973&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75973&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75973&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75973&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75973&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75973&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75973&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75973&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75973&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75973&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75973&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75973&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75973&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75973&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75973&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75973&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75973&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75973&r=mysqlcfg