OPENSSL exceptions occurred when compiling the php-5.2.17 in Ubuntu11.10 today.

Source: Internet
Author: User
201701206openssl-undefined-reference-to-sslv2_client_methodubuntu11.10 the following error occurs when compiling the php-5.2.17: the php-5.2.17 encountered an OPENSSL error today when compiling the php-5.2.17 in Ubuntu 11.10
Http://www.centos.bz/2012/06/openssl-undefined-reference-to-sslv2_client_method/ [zz]

Ubuntu 11.10 has the following error during php-5.2.17 compilation:

Php-5.2.17/ext/openssl/xp_ssl.c: 357: undefined reference to 'sslv2 _ server_method'
Php-5.2.17/ext/openssl/xp_ssl.c: 337: undefined reference to 'sslv2 _ client_method'
Collect2: ld returned 1 exit status
Make: *** [sapi/cgi/php-cgi] Error 1
This requires a patch to disable SSLv2_client_method of openssl. the method is as follows:

Cd php-5.2.17/
Wget http://www.centos.bz/wp-content/uploads/2012/06/debian_patches_disable_SSLv2_for_openssl_1_0_0.patch
Patch-p1 <debian_patches_disable_SSLv2_for_openssl_1_0_0.patch
Then re-compile php

Make clean
Make & make install

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.