Bug #71483 [NEW]: RAND_egd() check always fails

From: Date: Fri, 29 Jan 2016 13:07:37 +0000
Subject: Bug #71483 [NEW]: RAND_egd() check always fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198959@lists.php.net to get a copy of this message
From: jeff at macloue dot com Operating system: Linux PHP version: 5.6.17 Package: *Compile Issues Bug Type: Bug Bug description:RAND_egd() check always fails 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 bug report at https://bugs.php.net/bug.php?id=71483&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71483&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71483&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71483&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71483&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71483&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71483&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71483&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71483&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71483&r=support Expected behavior: https://bugs.php.net/fix.php?id=71483&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71483&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71483&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71483&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71483&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71483&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71483&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71483&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71483&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71483&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71483&r=mysqlcfg

« previous php.bugs (#198959) next »