php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39343 PHP wont compile with latest Curl
Submitted: 2006-11-02 11:04 UTC Modified: 2006-11-08 14:07 UTC
From: steve dot kirtley at gmail dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 4.4.4 OS: Red Hat / Apache/1.3.26
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: steve dot kirtley at gmail dot com
New email:
PHP Version: OS:

 

 [2006-11-02 11:04 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-02 22:27 UTC] 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-03 10:00 UTC] 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-03 13:05 UTC] 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-08 14:07 UTC] tony2001@php.net
Fixed in CVS by Ilia.
See bug #39354.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jan 31 22:01:29 2025 UTC