Bug #52192 [Fbk->Opn]: PHP 5.3 not working against OpenSSL 0.9.6
| From: | news at onastick dot clara dot co dot uk | Date: | Sun, 27 Jun 2010 19:33:11 +0000 |
| Subject: | Bug #52192 [Fbk->Opn]: PHP 5.3 not working against OpenSSL 0.9.6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151913@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: Feedback
+Status: Open
Type: Bug
Package: Compile Failure
Operating System: Linux
PHP Version: 5.3.2
New Comment:
Using latest snapshot makes no difference. Same errors are generated.
Previous Comments:
------------------------------------------------------------------------
[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