Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#234 Curl 7.10.5 or lter

Package Requests
open
nobody
Request (100)
5
2007-09-26
2007-09-26
Rijesh
No

PHP 5.2.0 source code configuration with curl support requires curl version 7.10.5 or later. The current RPM available on AIX toolbox (http://www-03.ibm.com/systems/p/os/aix/linux/download.html) is 7.9.3. Could you please publish the updated binary? the detailed requirement is given below.

One of our application requires Apache2.2.3 + php-5.2.0 + mysql-5.0.45 hosted on AIX 5.3.PHP compilation in gcc always failing due to older version of curl package (/opt/freeware), and at the same time we are not successful with the latest version of curl after compiling it from source. Hence we are looking for help from PSN to get the required version of curl (Open source package).

We need PHP configured using following options and it’s been failing with following messages.

./configure --prefix=/isvol1/SPL/apps/PHP-5.2.0 --with-apxs2=/isvol1/SPL/apps/Apache2.2.3/bin/apxs --with-config-file-path=/isvol1/SPL/apps/Apache2.2.3/conf/httpd.conf --with-gd --with-zlib-dir=/opt/freeware/lib --enable-shared --with-png --with-zlib --with-bz2 --with-xml --with-jpeg-dir=/opt/freeware/lib --with-png-dir=/opt/freeware/lib --with-xpm-dir=/opt/freeware/lib --with-freetype-dir=/opt/freeware/lib --with-pear=/opt/freeware/lib --enable-mbstring --enable-ftp --with-openssl-dir=/opt/pware --enable-calendar --with-ldap=/opt/pware --enable-soap --with-mysql=/isvol1/SPL/apps/Mysql-5.0.45 --with-pdo-mysql=/isvol1/SPL/apps/Mysql-5.0.45 --with-ibm-db2=/isvol1/SPL/apps/DB2/V8.1 --with-unixODBC --with-curl=/opt/freeware --enable-magic-quotes --with-snmp=/usr/local/net-snmp-5.3.1

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for OpenSSL support... no
checking for Kerberos support... no
checking for PCRE support... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... /opt/freeware/lib
checking for gzgets in -lz... (cached) yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... yes
checking for BZip2 in default path... found in /usr
checking for BZ2_bzerror in -lbz2... (cached) yes
checking whether to enable calendar conversion support... yes
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL 7.10.5 or greater... ./configure[24159]: curl-config: not found
configure: error: cURL version 7.10.5 or later is required to compile php with cURL support
bash-3.00#

The error message says it requires cURL version 7.10.5 or later. The current installed version is

bash-3.00# rpm -qa |grep -i curl
curl-7.9.3-2ssl
curl-devel-7.9.3-2ssl
bash-3.00#

We also tried this compilation using curl-7.17.0 after downloading its source and configured its default option, then configure works fine, where as make fails with following message.

/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c:372: error: (Each undeclared identifier is reported only once
/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c:372: error: for each function it appears in.)
/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c:412: error: 'CURLOPT_PASSWDFUNCTION' undeclared (first use in this function)
/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c: In function 'zif_curl_copy_handle':
/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c:1164: error: 'CURLOPT_PASSWDDATA' undeclared (first use in this function)
/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c: In function 'zif_curl_setopt_array':
/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c:1610: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness
/isvol1/SPL/installable/PHP5.2.0/php-5.2.0/ext/curl/interface.c:1610: warning: pointer targets in passing argument 4 of 'zend_hash_get_current_key_ex' differ in signedness
make: 1254-004 The error code from the last command is 1.

Stop.
bash-3.00#

So we feel if PSN can help us to get latest curl package (cURL version 7.10.5 or later) other than on AIX Toolbox for Linux Applications (AIX Toolbox for Linux Applications), it would have been great help. The other details we have found is on AIX wiki (http://www-941.ibm.com/collaboration/wiki/display/WikiPtype/aixopen?decorator=printable) . But nowhere we couldn’t find the latest version equivalent the one is on AIX toolbox for Linux applications of curl that works with PHP 5.2.0.

The gcc version is
bash-3.00# gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0
bash-3.00#

The OS version is

bash-3.00# oslevel -s
5300-06-01-0722
bash-3.00#

Discussion