|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-12-23 13:17 UTC] dpa-bugs at aegee dot org
Description: ------------ ext/openssl/config0.m4 contains: AC_CHECK_FUNCS([RAND_egd]) PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, [AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])], [AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])]) meaning that ./configure first checks for RAND_egd and then adds -lcrypto to LDFLAGS. This cannot work in this order, as RAND_egd can only be detected after -lcrypto is passed to the linker. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Proposed patch: --- php-7.1.14/ext/openssl/config0.m4.old 2018-01-30 19:05:37.000000000 +0000 +++ php-7.1.14/ext/openssl/config0.m4.new 2018-02-01 18:40:38.340000000 +0000 @@ -19,8 +19,6 @@ PHP_SETUP_KERBEROS(OPENSSL_SHARED_LIBADD) fi - AC_CHECK_FUNCS([RAND_egd]) - PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, [ AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ]) @@ -30,4 +28,6 @@ if test "$PHP_SYSTEM_CIPHERS" != "no"; then AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ]) fi + AC_CHECK_FUNCS([RAND_egd]) fi +