cURL built without SSL enabled?

General discussion forum for the Zend Server
shaneo
Posts: 36
Joined: Wed Feb 18, 2009 8:02 pm

cURL built without SSL enabled?

Post by shaneo » Fri Mar 27, 2009 11:50 am

I've just upgraded from Beta 1 to Beta 3 (latest) via yum. (CentOS 5.2 x86_64)

Now I find that the cURL module that is provided is built without SSL support. This has SSL support in Beta 1 (my app requires cURL to have SSL support)

Why was this changed, and how can I fix it?

Error message I am getting from curl_error:
libcurl was built with SSL disabled, https: not supported!

massi_zend
Posts: 15
Joined: Fri Jan 30, 2009 9:25 am

Re: cURL built without SSL enabled?

Post by massi_zend » Fri Mar 27, 2009 6:44 pm

Thanks for bringing the issue to our attention.
We'll look into building cURL extension with SSL support for the next versions of Zend Server.

Best regards,
Massi.

shaneo
Posts: 36
Joined: Wed Feb 18, 2009 8:02 pm

Re: cURL built without SSL enabled?

Post by shaneo » Fri Mar 27, 2009 6:50 pm

No problem. However I have had to uninstall ZS to carry on my development as of today.

So the faster it gets added, the better (for me) :)

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: cURL built without SSL enabled?

Post by jess04 » Fri Mar 27, 2009 11:58 pm

Hello,

We have not changed the way we compile CURL in any way, the only change is it is now compiled against a newer version of the CURL library [7.19.4].
Can you please paste the code that generates this error so that I can research the issue?

Thanks in advance,
May the source be with you,

Jess Portnoy

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: cURL built without SSL enabled?

Post by jess04 » Sat Mar 28, 2009 12:36 am

After further investigation, I now see the problem was another change, I fixed the issue.
If you provide an email address, I can send you a binary that fixes the issue, alternatively, you may do the following:

Install the PHP source package and CURL devel package:
# yum install php-source-zend-pe curl-devel
CD into the extension's source dir:
# cd /usr/local/zend/share/php-source/ext/curl
Run phpize to generate the configure script:
# /usr/local/zend/bin/phpize
Run the configure script:
# ./configure --with-php-config=/usr/local/zend/bin/php-config
Make and install the newly built CURL:
# make && make install

Of course, you'll need to reload your Apache.

Thanks for reporting this issue, let me know if you need further help,
May the source be with you,

Jess Portnoy

shaneo
Posts: 36
Joined: Wed Feb 18, 2009 8:02 pm

Re: cURL built without SSL enabled?

Post by shaneo » Sat Mar 28, 2009 6:36 pm

Thanks, I'll try that now

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: cURL built without SSL enabled?

Post by jess04 » Sun Mar 29, 2009 6:47 am

Hi Shaneo,

Let me know if it worked well for you [no reason it shouldn't :)] or if you need further assistance.

Enjoy ZendServer,
May the source be with you,

Jess Portnoy

shaneo
Posts: 36
Joined: Wed Feb 18, 2009 8:02 pm

Re: cURL built without SSL enabled?

Post by shaneo » Mon Mar 30, 2009 12:45 pm

Ok I just got around to resinstalling ZS now.

Unfortunately the above instructions didn't work - configure failed. I have attached the config.log output
Attachments
config.log.txt
(69.61 KiB) Downloaded 786 times

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: cURL built without SSL enabled?

Post by jess04 » Mon Mar 30, 2009 2:01 pm

Hi,

Please run:
# yum install krb5-devel
Or, in the event you're 64bit [my guess]
# yum install krb5-devel.x86_64

And run configure again,
You can see in the output file you attached that it says:
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5
/usr/bin/ld: cannot find -lgssapi_krb5

My guess is that you are 64bit and yet you only have krb5-devel.i386 installed [some packages require a 32bit even on a 64 arch] and hence the skipping incompatible. The two packages can live in parallel and do not conflict so do not remove the i386 one.

Let me know how you did :)
Last edited by jess04 on Mon Mar 30, 2009 2:25 pm, edited 1 time in total.
May the source be with you,

Jess Portnoy

shaneo
Posts: 36
Joined: Wed Feb 18, 2009 8:02 pm

Re: cURL built without SSL enabled?

Post by shaneo » Mon Mar 30, 2009 2:08 pm

Thanks jess04.
You are correct - I am running CentOS 5.2 x86_64

I am now having configure issues with the libcom_err library.

I do have both i386 and x86_64 krb5-lib packages installed:
Package krb5-libs - 1.6.1-25.el5_2.2.x86_64 is already installed.
Package krb5-libs - 1.6.1-25.el5_2.2.i386 is already installed.


New config log attached

Thanks for your help
Attachments
config.log.1.txt
(20.48 KiB) Downloaded 772 times

Post Reply