php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20748 Compile Errors w/ cURL
Submitted: 2002-12-01 10:27 UTC Modified: 2002-12-15 04:05 UTC
From: tgordon at peakton dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 4.2.2 OS: Linux 2.4.18 (Redhat 8.0)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tgordon at peakton dot com
New email:
PHP Version: OS:

 

 [2002-12-01 10:27 UTC] tgordon at peakton dot com
Having a compile error with php-4.2.2-8.0.5 and cURL 7.9.8-1 (for curl & curl-devel rpm packages).

I have tried configure options of:
  --with-curl \
  --with-curl=shared \
  --with-curl=%{_prefix} \
to no avail.

I searched the include paths created by installing cURL and sure enough the aforementioned items are not included.

Reading the mail list shows that this was a problem in a previous release, but I have not seen a report for php 4.2.2.

Any help would be appreciated.

Tom Gordon

Compile log follows:

Making all in curl
make[2]: Entering directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/curl'
make[3]: Entering directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/curl'
/bin/sh /usr/src/redhat/BUILD/php-4.2.2/build-cgi/libtool --silent --mode=compile gcc -I. -I/usr/src/redhat/BUILD/php-4.2.2/ext/curl -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/main -I/usr/src/redhat/BUILD/php-4.2.2 -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/Zend -I/usr/include/libxml2 -I/usr/include/freetype2/freetype -I/usr/include/imap -I/usr/local/include -I/opt/verisign/payflowpro/linux/lib -I/usr/include/pspell -I/usr/include/ucd-snmp -I/usr/src/redhat/BUILD/php-4.2.2/main -I/usr/src/redhat/BUILD/php-4.2.2/Zend
-I/usr/src/redhat/BUILD/php-4.2.2/TSRM  -DUCD_COMPATIBLE -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/TSRM -O2 -march=i386 -mcpu=i686 -fPIC -prefer-pic  -c /usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c && touch curl.slo
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
/usr/src/redhat/BUILD/ph
p-4.2.2/ext/curl/curl.c: In function `zm_startup_curl':
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:145: `CURLOPT_SSL_VERIFYHOST' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:145: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:145: for each function it appears in.)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:174: `CURLOPT_COOKIEJAR' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:175: `CURLOPT_SSL_CIPHER_LIST' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:254: `CURLE_OBSOLETE' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:255: `CURLE_SSL_PEER_CERTIFICATE' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:257: `CURL_GLOBAL_SSL' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c: In function `zif_curl_setopt':
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:655: `CURLOPT_SSL_VERIFYHOST' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:678: `CURLOPT_COOKIEJAR' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:679: `CURLOPT_SSL_CIPHER_LIST' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:782: `CURLFORM_COPYNAME' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:783: `CURLFORM_FILE' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:783: `CURLFORM_END' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:787: `CURLFORM_PTRCONTENTS' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-4.2.2/ext/curl/curl.c:788: `CURLFORM_CONTENTSLENGTH' undeclared (first use in this function)
make[3]: *** [curl.slo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/curl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/curl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.49959 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.49959 (%build)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-01 10:27 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-12-01 14:32 UTC] sniper@php.net
try the STABLE snapshot from here: http://snaps.php.net
 [2002-12-15 04:05 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC