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