Bug #69657 [NEW]: Shared memory detection during cross-compile fails OPcache

From: Date: Mon, 18 May 2015 21:52:47 +0000
Subject: Bug #69657 [NEW]: Shared memory detection during cross-compile fails OPcache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192741@lists.php.net to get a copy of this message
From: mhei at heimpold dot de Operating system: Linux / OpenWrt PHP version: 5.6.9 Package: *Configuration Issues Bug Type: Bug Bug description:Shared memory detection during cross-compile fails OPcache Description: ------------ At the moment, during the configure stage at compile time, it is determined which shared memory variants are available. For this, tiny C programms are just-in-time compiled and then defines are set. This does not work well when cross-compiling as we do for OpenWrt for example: we could try to successfully compile the programm, but it is not possible to actually run it. So without further modification this leads to a php binary/opcache addon which does not have _any_ shared memory implementation compiled in, and it results in errors like this one: https://github.com/openwrt/packages/issues/1010 Maybe it possible to not rely the detection on such run-during-compile tests? I'm no autoconf expert, but I wonder whether there is a possibility to "preseed" the test results? To make it work for OpenWrt, we hacked a patch which simply checks for one important function used by one SHM implementation or the other. But this might not be sufficient. -- Edit bug report at https://bugs.php.net/bug.php?id=69657&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69657&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69657&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69657&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69657&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69657&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69657&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69657&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69657&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69657&r=support Expected behavior: https://bugs.php.net/fix.php?id=69657&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69657&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69657&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69657&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69657&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69657&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69657&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69657&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69657&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69657&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69657&r=mysqlcfg

« previous php.bugs (#192741) next »