cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Building PHP 4.3.x fails for Curl 7.11.1

From: Vladimir Brajovic <brajovic_at_cs.cmu.edu>
Date: Fri, 26 Mar 2004 03:38:12 -0500

I am on FreeBSD4.4. Curl compiles and installs fine. The problem is when I
try to compile PHP-4.3.x (or PHP-5.0.0) --with-curl. There are two problems

PROBLEM 1:

Compiling ext/curl/curl.c fails because struct HttpPost is not declared. The
Curl change log indicates that '#define HttpPost curl_httppost' has been
removed from header file. However this seems to be causing this particular
problem since PHP still refers to HttpPost structure. By adding '#define
HttpPost curl_httppost' into curl.h, or by changing all references to
HttpPost in curl.c, I was able to eliminate this problem.

PROBLEM 2:

I am stuck with this problem. This is what I am getting on compiling
ext/curl/curl.c (PHP-4.3.4):

/usr/local/src/php-4.3.4/ext/curl/curl.c: In function `zif_curl_setopt':
/usr/local/src/php-4.3.4/ext/curl/curl.c:838: duplicate case value
/usr/local/src/php-4.3.4/ext/curl/curl.c:695: this is the first entry for
that value

Similarly, when compiling PHP-5.0.0 I get:

/usr/local/src/php-5.0.0RC1/ext/curl/interface.c: In function
`zif_curl_setopt':
/usr/local/src/php-5.0.0RC1/ext/curl/interface.c:1008: duplicate case value
/usr/local/src/php-5.0.0RC1/ext/curl/interface.c:853: this is the first
entry for that value

Any idea how to fix this? Is there an older curl version that will not show
these problems with PHP-4.3.4?

thanks,

Vladimir
Received on 2004-03-26