Edit report at https://bugs.php.net/bug.php?id=62656&edit=1
ID: 62656 Comment by: hessemanj2100 at gmail dot com Reported by: mattj at emazestudios dot com Summary: Undefined reference to SSLv2 variables with OpenSSL 1.0.1 Status: Open Type: Bug Package: OpenSSL related Operating System: Linux PHP Version: 5.3.15 Block user comment: N Private report: N New Comment: I have the same exact problem when compiling php-5.3.25 or php-5.4.15 on Ubuntu Server 12.04.02. I am using OpenSSL 1.0.1e configure and make commands to compile OpenSSL: ------------------------------------------------------------------------- ./config --prefix=/usr/local/ssl --enable-shared sudo make sudo make install sudo ln -s /usr/local/ssl/bin/openssl /usr/local/bin/openssl configure and make commands to compile PHP ------------------------------------------------------------------------- ./configure \ --prefix=/usr/local/php \ --with-mcrypt \ --with-mhash \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-iodbc \ --with-zlib \ --with-openssl=/usr/local/ssl \ --with-curl=/usr/local/curl \ --enable-bcmath \ --enable-calendar \ --enable-ftp \ --enable-wddx \ --enable-sqlite-utf8 \ --enable-zip \ --enable-cgi sudo make sudo make install Please note that I successfully compiled OpenSSL as a shared object with the following commands: cd ext/openssl mv config0.m4 config.m4 phpize ./configure --with-openssl=/usr/local/ssl sudo make The extension, openssl.so, was found in the modules folder. Previous Comments: ------------------------------------------------------------------------ [2012-08-28 13:48:30] dsysko at genscape dot com I see this same behaviour with PHP version 5.4.6 and same version of OpenSSL(1.0.1c) My config options: --with-openssl --with-pgsql --with-curl --with-tidy --with-zlib --with-apxs2=/usr/local/httpd/bin/apxs --with-gd --with-pdo-pgsql --enable-pdo --enable-zip --enable-pcntl --enable-soap ------------------------------------------------------------------------ [2012-07-25 03:37:17] mattj at emazestudios dot com Description: ------------ When compiling either 5.3.15 or 5.4.5 (or even 5.3 latest snapshot) with OpenSSL 1.0.1c, get the following error: ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto': /root/php-5.4.5/ext/openssl/xp_ssl.c:363: undefined reference to `SSLv2_server_method' /root/php-5.4.5/ext/openssl/xp_ssl.c:338: undefined reference to `SSLv2_client_method' collect2: ld returned 1 exit status Apparently this is due to the removal of SSLv2 in OpenSSL, and the extension doesn't seem to properly pick up which versions miss it. Using --with-openssl=/usr, but also occurs with --with-openssl alone. uname -m = x86_64 uname -r = 3.2.0-26-generic uname -s = Linux uname -v = #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 Autoconf 2.65 I can provide any sort of debugging help needed, as I would very much like to get this issue sorted. Can provide a full config.log on request, same as any make output. Seems very similar to bug #54507, however that's supposedly resolved quite a while ago. Expected result: ---------------- Normal compilation with OpenSSL module Actual result: -------------- Compilation errors as shown above ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62656&edit=1