Bug #69657 [Fbk->NoF]: Shared memory detection during cross-compile fails OPcache

From: Date: Sun, 18 Jul 2021 04:22:14 +0000
Subject: Bug #69657 [Fbk->NoF]: Shared memory detection during cross-compile fails OPcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235135@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69657&edit=1 ID: 69657 Updated by: php-bugs@lists.php.net Reported by: mhei at heimpold dot de Summary: Shared memory detection during cross-compile fails OPcache -Status: Feedback +Status: No Feedback Type: Bug Package: *Configuration Issues Operating System: Linux / OpenWrt PHP Version: 5.6.9 Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2021-07-06 16:16:16] cmb@php.net Is this still unresolved for any of the actively supported PHP versions[1]? If so, I suggest you provide a PR[2] for better visibility. [1] <https://www.php.net/supported-versions.php> [2] <https://github.com/php/php-src/pulls> ------------------------------------------------------------------------ [2015-05-18 21:52:46] mhei at heimpold dot de 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 this bug report at https://bugs.php.net/bug.php?id=69657&edit=1

« previous php.bugs (#235135) next »