Вот такую ошибку получил при установки из исходников PHP 5.3.1:
/usr/src/php-5.3.1/ext/openssl/xp_ssl.c:324: undefined reference to `SSLv2_client_method' /usr/src/php-5.3.1/ext/openssl/xp_ssl.c:344: undefined reference to `SSLv2_server_method' collect2: error: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Ошибка 1
Скачиваем patch в /usr/src/php-5.3.1/ext/openssl
# wget -O disable_SSLv2_for_openssl_1_0_0.patch https://raw.githubusercontent.com/omega8cc/boa/master/aegir/patches/disable_SSLv2_for_openssl_1_0_0.patch
Устанавливаем патч:
# patch xp_ssl.c disable_SSLv2_for_openssl_1_0_0.patch
Запускаем make