I need to update my version of PHP with cURL on Red Hat 7.3. I've installed cURL 7.10.5 and got past the config error where PHP complains that it needs version 7.9.8 or later by modifying the curl_config file. I grabbed the current options from phpinfo() and successfully ran the configure. Now when I try to run make it gets an error:
/bin/sh /home/admin/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/curl/ -I/home/admin/php-4.3.2/ext/curl/ -DPHP_ATOM_INC -I/home/admin/php-4.3.2/include -I/home/admin/php-4.3.2/main -I/home/admin/php-4.3.2 -I/home/admin/php-4.3.2/Zend -I/usr/local/include/libxml2 -I/include -I/usr/include/mysql -I/usr/local/include -I/usr/include/pgsql -I/home/admin/php-4.3.2/TSRM -g -O2 -prefer-pic -c /home/admin/php-4.3.2/ext/curl/curl.c -o ext/curl/curl.lo
In file included from /home/admin/php-4.3.2/ext/curl/curl.c:45:
/home/admin/php-4.3.2/ext/curl/php_curl.h:115: parse error before `CURLM'
...
make: *** [ext/curl/curl.lo] Error 1
I reconfigured without curl and make ran fine. I'm not sure if the problem is with the version of curl or within the PHP distribution. Or did I not do something right with the config. Help!