On 8/11/2016 8:48 AM, Antti Kantee wrote:
Those tests are not really meaningful for Rumprun, given that they all
use fork(). It's even hard to say if the answer should be "no" or
"yes". One way to figure things out would be to patch all of them to
"no" and see what happens when you run php.
The flock tests can be replaced with compile-time tests, see here:
https://www.freelists.org/post/rumpkernel-users/Adventures-in-PHPSymfony,3
For the record, only the mmap tests link correctly (undefined symbols
for shmget() and shm_open() tests), so I changed them to
AC_LINK_IFELSE(AC_LANG_SOURCE(...)). For these, php compiles everything
in that passes the test, and then chooses the first one that
successfully initializes at runtime (subject to some platform-specific
blacklists, but NetBSD isn't among those.)
flock test worked too, thanks. I put it in AC_LINK_IFELSE if
cross-compiling. It's not even an important value on rumprun, because
the result of the configure check is only used as a fallback, if the
header doesn't detect any platform defines like __NetBSD__. (But I want
it to be correct anyway.)
--
Sapphire Cat
https://github.com/sapphirecat