php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73756 compile with --with-curl fail
Submitted: 2016-12-16 07:46 UTC Modified: 2016-12-16 14:53 UTC
From: icelemon1024 at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: Compile Failure
PHP Version: 7.0.14 OS: CentOS6.8
Private report: No CVE-ID: None
 [2016-12-16 07:46 UTC] icelemon1024 at gmail dot com
Description:
------------
When i configure the php:
./configure --with-curl=/usr/include/curl

it's show :
Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... no
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for PCRE library to use... bundled
checking whether to enable PCRE JIT functionality... yes
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... no
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for cURL in default path... found in /usr/local
checking for cURL 7.10.5 or greater... libcurl 7.51.0
checking for SSL support in libcurl... yes
checking how to run the C preprocessor... cc -E
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.

the config.log show:
#define HAVE_ATOLL 1
#define HAVE_STRFTIME 1
#define HAVE_TIMELIB_CONFIG_H 1
#define HAVE_LIBXML 1
#define HAVE_LIBXML 1
#define HAVE_BUNDLED_PCRE 1
#define HAVE_PCRE_JIT_SUPPORT 1
#define HAVE_SQLITE3 1
#define HAVE_CTYPE 1
#define HAVE_CURL_SSL 1

configure: exit 1



[root@ php-7.0.14]$ ll /usr/include/curl/
total 168
-rw-r--r--. 1 root root  7146 May 11  2016 curlbuild-64.h
-rw-r--r--. 1 root root   164 May 11  2016 curlbuild.h
-rw-r--r--. 1 root root 73086 May 11  2016 curl.h
-rw-r--r--. 1 root root  8419 Oct 29  2009 curlrules.h
-rw-r--r--. 1 root root  2799 Nov  4  2009 curlver.h
-rw-r--r--. 1 root root  3526 May 13  2008 easy.h
-rw-r--r--. 1 root root  2850 May 20  2008 mprintf.h
-rw-r--r--. 1 root root 13039 May 20  2008 multi.h
-rw-r--r--. 1 root root  1384 May 20  2009 stdcheaders.h
-rw-r--r--. 1 root root 33416 Jan 26  2009 typecheck-gcc.h
-rw-r--r--. 1 root root    15 Dec 25  2007 types.h


[root@ php-7.0.14]$ curl --version
curl 7.51.0 (x86_64-pc-linux-gnu) libcurl/7.51.0 OpenSSL/1.0.2j zlib/1.2.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets 


Test script:
---------------
./configure --with-curl=/usr/include/curl


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-16 14:53 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2016-12-16 14:53 UTC] cmb@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Especially, see <http://php.net/manual/en/curl.installation.php>:

| To use PHP's cURL support you must also compile PHP
| --with-curl[=DIR] where DIR is the location of the directory
| containing the lib and include directories.

So try

  ./configure --with-curl=/usr
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 06:01:28 2024 UTC