php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48893 Problems compiling with Curl
Submitted: 2009-07-12 11:23 UTC Modified: 2010-12-20 12:45 UTC
From: nohn@php.net Assigned: felipe (profile)
Status: Closed Package: cURL related
PHP Version: 5.3, 6CVS (2009-07-11) OS: Linux Ubuntu 6.04
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nohn@php.net
New email:
PHP Version: OS:

 

 [2009-07-12 11:23 UTC] nohn@php.net
Description:
------------
Does not compile with curl

Reproduce code:
---------------
$ ./configure \
--prefix=/opt/php \
--sysconfdir=/etc/opt/php \
--localstatedir=/var/opt/php \
--with-apxs2=/opt/apache/sbin/apxs \
--with-mysql \
--with-mysqli \
--with-zlib \
--enable-inline-optimization \
--enable-sockets \
--enable-ftp \
--enable-pdo \
--enable-bcmath \
--with-pdo-mysql \
--with-gd \
--with-freetype-dir=/usr \
--with-jpeg-dir=/usr \
--with-curl \
--with-tidy \
--with-xsl \
--enable-exif \
--with-openssl
$ make


Expected result:
----------------
Compiles fine

Actual result:
--------------
/bin/sh /home/compile/install_temp/php-5.3.0/libtool --silent --preserve-dup-deps --mode=compile /home/compile/install_temp/php-5.3.0/meta_ccld  -Iext/curl/ -I/home/compile/install_temp/php-5.3.0/ext/curl/ -DPHP_ATOM_INC -I/home/compile/install_temp/php-5.3.0/include -I/home/compile/install_temp/php-5.3.0/main -I/home/compile/install_temp/php-5.3.0 -I/home/compile/install_temp/php-5.3.0/ext/date/lib -I/home/compile/install_temp/php-5.3.0/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/mysql -I/home/compile/install_temp/php-5.3.0/ext/sqlite3/libsqlite -I/usr/include/tidy -I/home/compile/install_temp/php-5.3.0/TSRM -I/home/compile/install_temp/php-5.3.0/Zend  -D_REENTRANT -DTHREAD=1  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS  -prefer-non-pic -c /home/compile/install_temp/php-5.3.0/ext/curl/interface.c -o ext/curl/interface.lo 
/home/compile/install_temp/php-5.3.0/ext/curl/interface.c: In function 'zm_startup_curl':
/home/compile/install_temp/php-5.3.0/ext/curl/interface.c:784: error: 'CURLFTPMETHOD_MULTICWD' undeclared (first use in this function)
/home/compile/install_temp/php-5.3.0/ext/curl/interface.c:784: error: (Each undeclared identifier is reported only once
/home/compile/install_temp/php-5.3.0/ext/curl/interface.c:784: error: for each function it appears in.)
/home/compile/install_temp/php-5.3.0/ext/curl/interface.c:785: error: 'CURLFTPMETHOD_NOCWD' undeclared (first use in this function)
/home/compile/install_temp/php-5.3.0/ext/curl/interface.c:786: error: 'CURLFTPMETHOD_SINGLECWD' undeclared (first use in this function)
make: *** [ext/curl/interface.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-12 11:24 UTC] nohn@php.net
$ curl --version
curl 7.15.1 (i486-pc-linux-gnu) libcurl/7.15.1 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.5.18
Protocols: tftp ftp gopher telnet dict ldap http file https ftps 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

 [2009-07-12 12:34 UTC] jani@php.net
Sounds like your curl installation is borked. Perhaps you have older 
header files somewhere in your system which get used instead of the 
correct ones..?
 [2009-07-12 13:31 UTC] nohn@php.net
negative:

$ dpkg -l | grep -i curl
ii  curl                                 7.15.1-1ubuntu3.1                                   Get a file from an HTTP, HTTPS, FTP or GOPHE
ii  libcurl3                             7.15.1-1ubuntu3.1                                   Multi-protocol file transfer library
ii  libcurl3-dev                         7.15.1-1ubuntu3.1                                   Transitional package to libcurl3-openssl-dev
ii  libcurl3-gnutls                      7.15.1-1ubuntu3.1                                   Multi-protocol file transfer library
ii  libcurl3-openssl-dev                 7.15.1-1ubuntu3.1                                   Development files and documentation for libc

$ find / -type f -name curl.h
/usr/include/curl/curl.h

PHP 5.2.10 compiles fine on this box with the same user and the same configure options.
 [2009-07-12 14:10 UTC] nohn@php.net
I've also checked latests 

   HEAD/trunk: Same problem
   5.3 branch: Same problem
   5.2 branch: Problem not reproducable
 [2009-07-17 00:26 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.


 [2010-12-20 12:45 UTC] jani@php.net
-Package: Tidy +Package: cURL related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC