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

curl-and-php

Picking up the PHP4 cURL OpenSSL problem ball...

From: Christian Pearce <pearcec_at_commnav.com>
Date: Fri, 25 Jan 2002 16:29:42 -0500 (EST)

I was exposed to this problems six months ago. Our temp solution was use
the command line. Having been reassigned looking into this problem I came
back to the lists and started reading. It seems as though the following
items where to fix it :

Upgrading to 4.1.1 - not an option everyone enjoys especially if you have
seen the list of requirements our company has. Personally I like to run
stock and build extensions if need be

Disable IPv6 - well whatever

What I do know for a fact is Redhat 7.2 works it is running 4.0.6 and IPv6
is enabled. So that blows away the first two solutions. I have also just
read a very recent message that someone used 4.1.1 and it doesn't work.

Now I don't know what the boys at Redhat are doing but I grabbed the src rpm
and started looking at the patchs for references to curl fixes. I came up
short.

Here is what works for Redhat 7.2

[pearcec_at_space tmp]$ rpm -q curl
curl-7.8-1
[pearcec_at_space tmp]$ rpm -q redhat-release
redhat-release-7.2-1
[pearcec_at_space tmp]$ rpm -q php
php-4.0.6-7
[pearcec_at_space tmp]$ rpm -q openssl
openssl-0.9.6b-8
[pearcec_at_space tmp]$

Here is what I tried for Mandrake 8.0

[pearcec_at_yoink usr]$ rpm -q curl
curl-7.8.1-1mdk
[pearcec_at_yoink usr]$ rpm -q redhat-release
package redhat-release is not installed
[pearcec_at_yoink usr]$ rpm -q mandrake-release
mandrake-release-8.0-1mdk
[pearcec_at_yoink usr]$ rpm -q php
php-4.0.6-3.2mdk

                                         './configure' '--disable-static'
'--disable-debug' '--disable-rpath'
                                        '--enable-pic'
'--enable-inline-optimization' '--prefix=/usr'
                                        '--with-zlib'
'--with-config-file-path=/etc'
                                        '--enable-magic-quotes'
'--enable-debugger'
                                        '--enable-track-vars'
'--enable-safe-mode'
                                        '--with-exec-dir=/usr/bin'
'--with-regex=system'
                                        '--with-versioning'
'--enable-sysvsem' '--enable-sysvshm'
                                        '--with-mod_charset'
'--enable-force-cgi-redirect' '--with-mm'
                                        '--enable-trans-sid' '--with-dbase'
'--with-filepro'
                                        '--enable-yp' '--enable-ftp'
'--with-xml' '--with-gettext'
                                        <br>[Some modules are external: look
for packages
                                        php-pgsql,php-mysql,...]

[pearcec_at_yoink usr]$ rpm -q openssl
openssl-0.9.6-7.1mdk
[pearcec_at_yoink usr]$

    tar zxvf php-4.0.6.tar.gz
    cd php-4.0.6/
    mkdir curl
    cd curl/
    cp -rp ../ext/curl/* .
    phpize
    ./configure
    make install

Here is what I tried with for Solaris 8

bash-2.03# pkginfo -l SMCcurl
   PKGINST: SMCcurl
      NAME: curl
  CATEGORY: application
      ARCH: sparc
   VERSION: 7.8.1

bash-2.03# pkginfo -l COMMphp
   PKGINST: COMMphp
      NAME: php
  CATEGORY: application
      ARCH: sparc
   VERSION: 4.0.6

'./configure' '--prefix=/usr/local'
                                    
'--with-config-file-path=/usr/local/apache/conf' '--disable-debug'
                                     '--enable-pic'
'--enable-inline-optimization'
                                    
'--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-gettext'
                                     '--with-jpeg-dir=/usr/local'
'--with-mm' '--with-openssl'
                                     '--with-png' '--with-regex=system'
'--with-zlib'
                                     '--with-layout=GNU'
'--enable-track-var' '--enable-wddx'
                                     '--with-xml' '--without-oracle'
'--without-oci8'
                                     '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local'
                                     '--with-mysql=/usr/local/mysql'
'--with-ldap=/usr/local/openldap'
                                     '--enable-shared'

bash-2.03# pkginfo -l SMCossl
   PKGINST: SMCossl
      NAME: openssl
  CATEGORY: application
      ARCH: sparc
   VERSION: 0.9.6b
   BASEDIR: /usr/local/ssl

So my question is what is Redhat 7.2 build team doing right? And what is
http://curl.haxx.se/libcurl/php/install.html doing right? I plan on
figuring out once and for all what the problem is.

-- 
Christian Pearce
CommNav, Inc.
Received on 2002-01-25