1 (edited by shutupsquare 2013-02-14 21:27:32)

Topic: curl.x86_64 7.21 no ssl support

Hi thanks for the excellent work with the repo. Is it possible to build curl with ssl support? I Installed it today but it does not seem to have SSL support.

Thanks.

Re: curl.x86_64 7.21 no ssl support

Not enough information to understand your problem

$ php -i
...
curl

cURL support => enabled
cURL Information => 7.21.7
Age => 3
Features
AsynchDNS => Yes
Debug => No
GSS-Negotiate => Yes
IDN => Yes
IPv6 => Yes
Largefile => Yes
NTLM => Yes
SPNEGO => No
SSL => Yes
SSPI => No
krb4 => No
libz => Yes
CharConv => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
Host => x86_64-redhat-linux-gnu
SSL Version => OpenSSL/0.9.8b
ZLib Version => 1.2.3
libSSH Version => libssh2/1.2.7

So SSL support is there.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: curl.x86_64 7.21 no ssl support

Okay this is strange

PHP Info:

curl

cURL support    enabled
cURL Information    7.29.0
Age    3
Features
AsynchDNS    No
Debug    No
GSS-Negotiate    No
IDN    No
IPv6    No
Largefile    Yes
NTLM    No
SPNEGO    No
SSL    No
SSPI    No
krb4    No
libz    No
CharConv    No
Protocols    dict, file, ftp, gopher, http, imap, pop3, rtsp, smtp, telnet, tftp
Host    x86_64-unknown-linux-gnu


yum list curl:

Installed Packages
curl.i386                                                                                        7.15.5-15.el5                                                                                            installed
curl.x86_64                                                                                      7.21.7-5.el5.remi.2                                                                                      installed

[root@host ~]# rpm -qa | grep curl
libcurl-7.21.7-5.el5.remi.2
curl-7.21.7-5.el5.remi.2
compat-libcurl3-7.15.5-2.el5.remi
curl-7.15.5-15.el5

So the curl loaded into php is 7.29
and the curl packages installed on the system are 7.15 and 7.21, where is php pulling the 7.29 extension from?

Re: curl.x86_64 7.21 no ssl support

I don't know... where does your php comes from ?
Something compiled manually ?

rpm -qa php\* curl\*
rpm -V curl libcurl
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

5 (edited by shutupsquare 2013-02-15 15:28:01)

Re: curl.x86_64 7.21 no ssl support

[root@g ~]# rpm -qa php\* curl\*
php-5.4.11-1.el5.remi
php-gd-5.4.11-1.el5.remi
php-mysql-5.4.11-1.el5.remi
php-sqlite-5.3.21-14.el5.art
php-common-5.4.11-1.el5.remi
php-ioncube-loader-4.2.2-2.el5.art
php-imap-5.4.11-1.el5.remi
curl-7.21.7-5.el5.remi.2
php-cli-5.4.11-1.el5.remi
php-pdo-5.4.11-1.el5.remi
php-xml-5.4.11-1.el5.remi
curl-7.15.5-15.el5
php-common-5.3.21-14.el5.art
php-devel-5.4.11-1.el5.remi
php-mbstring-5.4.11-1.el5.remi

[root@g ~]# rpm -V curl libcurl
S.5.....  d /usr/share/man/man1/curl.1.gz

Thanks for the help man.

6 (edited by shutupsquare 2013-02-15 22:19:10)

Re: curl.x86_64 7.21 no ssl support

Okay so I noticed that php-common was not the remi package so I managed to remove that and install the remi package, and now it looks like this:

[root@somewhere ~]# rpm -qa php\* curl\*
php-gd-5.4.11-1.el5.remi
php-mysql-5.4.11-1.el5.remi
curl-7.21.7-5.el5.remi.2
php-ioncube-loader-4.2.2-2.el5.art
php-imap-5.4.11-1.el5.remi
php-pear-1.9.4-12.el5.remi.1
php-cli-5.4.11-1.el5.remi
php-pdo-5.4.11-1.el5.remi
php-xml-5.4.11-1.el5.remi
php-pecl-sqlite-2.0.0-0.1.svn313074.el5.remi
php-common-5.4.11-1.el5.remi
php-devel-5.4.11-1.el5.remi
php-mbstring-5.4.11-1.el5.remi
php-5.4.11-1.el5.remi

But

[root@somewhere ~]# php -i | grep -A 25 curl

curl

cURL support => enabled
cURL Information => 7.29.0
Age => 3
Features
AsynchDNS => No
Debug => No
GSS-Negotiate => No
IDN => No
IPv6 => No
Largefile => Yes
NTLM => No
SPNEGO => No
SSL => No
SSPI => No
krb4 => No
libz => No
CharConv => No
Protocols => dict, file, ftp, gopher, http, imap, pop3, rtsp, smtp, telnet, tftp
Host => x86_64-unknown-linux-gnu

Still showing the wrong version of curl in phpinfo()

hmmmmm

Re: curl.x86_64 7.21 no ssl support

I fixed this, I had to post the message on pastebin as when posting here it says too many links???

http://pastebin.com/Sq02aut1

So it now works! I guess this was due to a bad removal of libcurl and it left some files behind.

Thanks for the repo it saved my day!