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

From: Date: Tue, 06 Jul 2021 16:16:16 +0000
Subject: Bug #69657 [Opn->Fbk]: Shared memory detection during cross-compile fails OPcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234835@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: cmb@php.net Reported by: mhei at heimpold dot de Summary: Shared memory detection during cross-compile fails OPcache -Status: Open +Status: Feedback Type: Bug Package: *Configuration Issues Operating System: Linux / OpenWrt PHP Version: 5.6.9 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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> Previous Comments: ------------------------------------------------------------------------ [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 (#234835) next »