Bug #52192 [Asn]: PHP 5.3 not working against OpenSSL 0.9.6
| From: | news at onastick dot clara dot co dot uk | Date: | Mon, 28 Jun 2010 11:38:29 +0000 |
| Subject: | Bug #52192 [Asn]: PHP 5.3 not working against OpenSSL 0.9.6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151923@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52192&edit=1
ID: 52192
User updated by: news at onastick dot clara dot co dot uk
Reported by: news at onastick dot clara dot co dot uk
Summary: PHP 5.3 not working against OpenSSL 0.9.6
Status: Assigned
Type: Bug
Package: Compile Failure
Operating System: Linux
PHP Version: 5.3.2
Assigned To: pajoye
New Comment:
Yes, I have actually installed an updated version (in a separate
location) however I have a feeling that a number of other modules linked
in to Apache also have dependencies on OpenSSL and attempting to link in
a newer version could result in a right mess. However I'll probably have
a play and see what does happen.
I would be surprised if you did want to apply a fix to support this old
version of SSL however my initial thoughts on raising the bug is that
you would at least want to update the minimum version of SSL supported
by "configure", since this clearly isn't correct anymore.
Previous Comments:
------------------------------------------------------------------------
[2010-06-27 23:27:22] pajoye@php.net
Have you ever considered to update? 0.9.6 is 7 years old and many
critical fixes have been done since.
I don't have a box with this version, but can check to see if it is
easily fixable. If not, this bug will be marked as won't fix.
------------------------------------------------------------------------
[2010-06-27 21:33:10] news at onastick dot clara dot co dot uk
Using latest snapshot makes no difference. Same errors are generated.
------------------------------------------------------------------------
[2010-06-26 16:09:56] pajoye@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2010-06-26 15:23:49] news at onastick dot clara dot co dot uk
Description:
------------
"configure" states that OpenSSL 0.9.6 is required as a minimum for build
however the compilation process fails on line 4560 building
ext/openssl/openssl. It seems that newer versions of SSL return a status
from 'EVP_DigestFinal' whereas in 0.9.6 is it a void. This is relatively
easily hacked out however at final link fatal errors are produced - see
actual result below.
For me, yes I'd like it to work with my existing version however this
probably isn't realistic going forward so the build should probably be
updated to give a new minimum version of SSL that it will work with.
Test script:
---------------
./configure --with-openssl ....
make
Expected result:
----------------
Build completes successfully
Actual result:
--------------
ext/openssl/.libs/openssl.o: In function
`php_openssl_generate_private_key':
/home/jon/php/php-5.3.2/ext/openssl/openssl.c:2778: undefined reference
to `DH_get_default_method'
ext/openssl/.libs/openssl.o: In function `zif_openssl_sign':
/home/jon/php/php-5.3.2/ext/openssl/openssl.c:4006: undefined reference
to `EVP_MD_CTX_cleanup'
ext/openssl/.libs/openssl.o: In function `zif_openssl_verify':
/home/jon/php/php-5.3.2/ext/openssl/openssl.c:4057: undefined reference
to `EVP_MD_CTX_cleanup'
ext/openssl/.libs/openssl.o: In function `zif_openssl_get_md_methods':
/home/jon/php/php-5.3.2/ext/openssl/openssl.c:4512: undefined reference
to `OBJ_NAME_do_all_sorted'
ext/openssl/.libs/openssl.o: In function
`zif_openssl_get_cipher_methods':
/home/jon/php/php-5.3.2/ext/openssl/openssl.c:4528: undefined reference
to `OBJ_NAME_do_all_sorted'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52192&edit=1