php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27663 compile fails with cURL 7.11.1
Submitted: 2004-03-23 15:31 UTC Modified: 2004-04-14 06:57 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: toni dot viemero at iki dot fi Assigned: iliaa
Status: Closed Package: Compile Failure
PHP Version: * OS: Debian Woody
Private report: No CVE-ID:
 [2004-03-23 15:31 UTC] toni dot viemero at iki dot fi
Description:
------------
Building 4.3.5RC4 with cURL 7.11.1 doesn't compile
Builds fine with 4.3.5RC3 and cURL 7.11.0

/bin/sh /root/src/php-4.3.5RC4/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/curl/ -I/root/src/php-4.3.5RC4/ext/curl/ -DPHP_ATOM_INC -I/root/src/php-4.3.5RC4/include -I/root/src/php-4.3.5RC4/main -I/root/src/php-4.3.5RC4 -I/root/src/php-4.3.5RC4/Zend -I/usr/local/curl/include -I/usr/include/libxml2 -I/usr/local/freetype/include -I/usr/local/freetype/include/freetype2 -I/usr/local/gd/include -I/root/src/imap-2002e/c-client -I/usr/local/mysql/include -I/root/src/php-4.3.5RC4/ext/xml/expat  -I/root/src/php-4.3.5RC4/TSRM  -g -O2  -prefer-pic -c /root/src/php-4.3.5RC4/ext/curl/curl.c -o ext/curl/curl.lo
/root/src/php-4.3.5RC4/ext/curl/curl.c: In function `curl_free_post':
/root/src/php-4.3.5RC4/ext/curl/curl.c:568: warning: passing arg 1 of `curl_formfree' from incompatible pointer type
/root/src/php-4.3.5RC4/ext/curl/curl.c: In function `alloc_curl_handle':
/root/src/php-4.3.5RC4/ext/curl/curl.c:608: sizeof applied to an incomplete type
/root/src/php-4.3.5RC4/ext/curl/curl.c: In function `zif_curl_setopt':
/root/src/php-4.3.5RC4/ext/curl/curl.c:845: duplicate case value
/root/src/php-4.3.5RC4/ext/curl/curl.c:700: this is the first entry for that value
/root/src/php-4.3.5RC4/ext/curl/curl.c:890: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
/root/src/php-4.3.5RC4/ext/curl/curl.c:890: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
/root/src/php-4.3.5RC4/ext/curl/curl.c:898: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
/root/src/php-4.3.5RC4/ext/curl/curl.c:898: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
make: *** [ext/curl/curl.lo] Error 1

$ /usr/local/curl/bin/curl -V
curl 7.11.1 (i686-pc-linux-gnu) libcurl/7.11.1 OpenSSL/0.9.7d zlib/1.1.4
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: SSL libz NTLM Largefile


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-23 15:39 UTC] toni dot viemero at iki dot fi
Tested compiling with RC3 and cURL 7.11.1 with same effect.
Breaks with cURL upgrade from 7.11.0 to 7.11.1.
 [2004-03-23 15:57 UTC] iliaa@php.net
Will be fixed after 4.3.5 release. 
 [2004-03-24 03:51 UTC] thomas-lists at myphorum dot com
Oh please, don't fix it only after release, don't leave us using php-4.3.5 with a broken curl-extension :(.

btw. having the same prob.
 [2004-03-26 11:05 UTC] amt@php.net
This also applies to PHP 5.
 [2004-03-26 13:59 UTC] iliaa@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.


 [2004-04-14 06:40 UTC] bchesneau at mac dot com
how did you fix it ? I'm the maintener of the port on 
macosx with darwinports packaging system, and I would 
like to patch current stable version if it's possible.

Thanks for advance :)

Benoit
 [2004-04-14 06:57 UTC] toni dot viemero at iki dot fi
I've submitted patch for FreeBSD PHP port, for which I pulled only latest PHP_4_3 ext/curl/curl.c from CVS.
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/65422
 [2004-04-14 10:14 UTC] bchesneau at mac dot com
Thks :)

Here is the patch I've made from diff between 4.3.6RC3 
and 4.3.5 :

http://cvs.opendarwin.org/index.cgi/dports/www/php4/
files/patch-curl?rev=1.1&content-type=text/x-cvsweb-
markup

It works well on macosx 10.3/10.2
 [2004-04-24 18:35 UTC] bero at arklinux dot org
The fix will break again with curl 7.12.x, when the 
defines of obsolete functions to 0 will be removed. 
 
Please consider changing 
 
#if CURLOPT_PASSWDFUNCTION != 0 
 
to 
 
#if defined(CURLOPT_PASSWDFUNCTION) && 
CURLOPT_PASSWDFUNCTION != 0 
 
(and the same for CURLOPT_MUTE of course)
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 00:02:04 2014 UTC