#39343 [Opn->Csd]: PHP wont compile with latest Curl
| From: | tony2001@php.net | Date: | Wed, 08 Nov 2006 14:07:46 +0000 |
| Subject: | #39343 [Opn->Csd]: PHP wont compile with latest Curl | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104587@lists.php.net to get a copy of this message | ||
ID: 39343
Updated by: tony2001@php.net
Reported By: steve dot kirtley at gmail dot com
-Status: Open
+Status: Closed
Bug Type: cURL related
Operating System: Red Hat / Apache/1.3.26
PHP Version: 4.4.4
New Comment:
Fixed in CVS by Ilia.
See bug #39354.
Previous Comments:
------------------------------------------------------------------------
[2006-11-03 13:05:00] daniel at haxx dot se
CURLOPT_PASSWDFUNCTION has no function and hasn't had any for quite
some time. You can just erase every use of that.
CURLOPT_FTPASCII should simply be renamed to CURLOPT_TRANSFERTEXT
------------------------------------------------------------------------
[2006-11-03 10:00:15] steve dot kirtley at gmail dot com
Thanks for the quick reply - hoping you can help me solve this one...
Sorry, full error from Make command below:
[root@ora1 php-4.4.4]# make
/bin/sh /home/willis_s/php-4.4.4/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/curl/ -I/home/willis_s/php-4.4.4/ext/curl/
-DPHP_ATOM_INC -I/home/willis_s/php-4.4.4/include
-I/home/willis_s/php-4.4.4/main -I/home/willis_s/php-4.4.4
-I/usr/lib/include -I/usr/local/mysql/include
-I/usr/local/oracle/rdbms/public -I/usr/local/oracle/rdbms/demo
-I/home/willis_s/php-4.4.4/ext/xml/expat
-I/home/willis_s/php-4.4.4/TSRM -I/home/willis_s/php-4.4.4/Zend -g
-O2 -prefer-non-pic -c /home/willis_s/php-4.4.4/ext/curl/curl.c -o
ext/curl/curl.lo
/home/willis_s/php-4.4.4/ext/curl/curl.c: In function
`zm_startup_curl':
/home/willis_s/php-4.4.4/ext/curl/curl.c:261: `CURLOPT_FTPASCII'
undeclared (first use in this function)
/home/willis_s/php-4.4.4/ext/curl/curl.c:261: (Each undeclared
identifier is reported only once
/home/willis_s/php-4.4.4/ext/curl/curl.c:261: for each function it
appears in.)
/home/willis_s/php-4.4.4/ext/curl/curl.c:299: `CURLOPT_PASSWDFUNCTION'
undeclared (first use in this function)
make: *** [ext/curl/curl.lo] Error 1
[root@ora1 php-4.4.4]#
------------------------------------------------------------------------
[2006-11-02 22:27:06] daniel at haxx dot se
1. You cut off the build error too early so the error doesn't really
show
2. They aren't deprecated _functions_, they are deprecated symbols ==
defines in the curl public header file.
------------------------------------------------------------------------
[2006-11-02 11:04:23] steve dot kirtley at gmail dot com
Description:
------------
Installed latest libcurl and curl libraries (no previous version) which
worked fine with PHP 4.4.2 - however will not compile with 4.4.4
Reproduce code:
---------------
Using following configure command, (which worked and still works with
4.4.2):
./configure --with-db --with-gdbm --with-xml
--with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
--with-oci8=/usr/local/oracle --enable-sigchild --enable-trans-sid
--with-pgsq --with-curl=/usr/lib
Configure is successful but errors shown below appear when running
'make'
/bin/sh /home/willis_s/php-4.4.4/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/curl/ -I/home/willis_s/php-4.4.4/ext/curl/
-DPHP_ATOM_INC -I/home/willis_s/php-4.4.4/include
-I/home/willis_s/php-4.4.4/main -I/home/willis_s/php-4.4.4
-I/usr/lib/include -I/usr/local/mysql/include
-I/usr/local/oracle/rdbms/public -I/usr/local/oracle/rdbms/demo
-I/home/willis_s/php-4.4.4/ext/xml/expat
-I/home/willis_s/php-4.4.4/TSRM -I/home/willis_s/php-4.4.4/Zend -g
-O2 -prefer-non-pic -c /home/willis_s/php-4.4.4/ext/curl/curl.c -o
ext/curl/curl.lo
Expected result:
----------------
With PHP 4.4.2 installs without issues using same process.
Have posted onto the curl mailing list who advised these PHP ext files
are referencing deprecated functions.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39343&edit=1