Bug #71483 [Opn->Wfx]: RAND_egd() check always fails
| From: | krakjoe@php.net | Date: | Wed, 11 Jan 2017 08:00:30 +0000 |
| Subject: | Bug #71483 [Opn->Wfx]: RAND_egd() check always fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206505@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71483&edit=1
ID: 71483
Updated by: krakjoe@php.net
Reported by: jeff at macloue dot com
Summary: RAND_egd() check always fails
-Status: Open
+Status: Wont fix
Type: Bug
Package: *Compile Issues
Operating System: Linux
PHP Version: 5.6.17
Block user comment: N
Private report: N
New Comment:
Since this patch targets a security fix only branch (and this is only a bug), and since supported
branches are not effected by this issue, I'm closing this report.
Previous Comments:
------------------------------------------------------------------------
[2016-01-29 13:07:34] jeff at macloue dot com
Description:
------------
In ./ext/openssl/config0.m4 the check for RAND_egd() function is placed before OpenSSL compile flags
are applied. This makes this test fail and RAND_egd() function not used even if it is present.
$ nm -D /usr/lib64/libcrypto.so | grep RAND_egd
00000000000e4340 T RAND_egd
00000000000e4320 T RAND_egd_bytes
$ ./configure --with-openssl
...
$ grep HAVE_RAND_EGD ./main/php_config.h
/* #undef HAVE_RAND_EGD */
A workaround is adding -lcrypto to LDFLAGS:
$ ./configure --with-openssl LDFLAGS=-lcrypto
...
$ grep HAVE_RAND_EGD ./main/php_config.h
#define HAVE_RAND_EGD 1
A possible solution is moving AC_CHECK_FUNCS() call below PHP_SETUP_OPENSSL() (attached)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71483&edit=1