Hi,
I need php74 (-7.4.26) and mod_php74 (-7.4.26). I can compile php74 without problems but can not successfully compile mod_php74.
mod_php74 fails due to a configuration error about not being able to evaluate posix threads availability. I sent a problem report to the maintainer, but didn't get a response so far.
Somebody wrote that this may be fixed by setting a CONFIGURE_ENV+=pthreads_workin="yes" in the php74 Makefile.
That actually allows to compile, link and install mod_php74, but that leads to a problem with the php extensions for apache.
Apache shows errors that it cannot load dynamic libraries like xmlreader.so - many of them - from a path /usr/local/lib/php/20190902-zts/...
On the machine there is not such a directory but one /usr/local/lib/php/20190902 without the trailing "-zts".
In the directory /usr/local/lib/php/20190902 I can find all the php extensions apache complaints about not to be able to read.
As far as I understand the directory /usr/local/lib/php/20190902-zts is for such extensions that are build with the zts option.
As I did not set this option I assume from reading the config and Makefiles that it is the --enable-maintainer-zts settings that leads to that situation.
I'm trying to get rid of this setting but I'm unable to. I commented some lines in the php74 Makefile:
.if ${PORT_OPTIONS:MZTS} ...
but that didn't help.
Does anybody have a clue what is going on and how to fix that?
I need php74 (-7.4.26) and mod_php74 (-7.4.26). I can compile php74 without problems but can not successfully compile mod_php74.
mod_php74 fails due to a configuration error about not being able to evaluate posix threads availability. I sent a problem report to the maintainer, but didn't get a response so far.
Somebody wrote that this may be fixed by setting a CONFIGURE_ENV+=pthreads_workin="yes" in the php74 Makefile.
That actually allows to compile, link and install mod_php74, but that leads to a problem with the php extensions for apache.
Apache shows errors that it cannot load dynamic libraries like xmlreader.so - many of them - from a path /usr/local/lib/php/20190902-zts/...
On the machine there is not such a directory but one /usr/local/lib/php/20190902 without the trailing "-zts".
In the directory /usr/local/lib/php/20190902 I can find all the php extensions apache complaints about not to be able to read.
As far as I understand the directory /usr/local/lib/php/20190902-zts is for such extensions that are build with the zts option.
As I did not set this option I assume from reading the config and Makefiles that it is the --enable-maintainer-zts settings that leads to that situation.
I'm trying to get rid of this setting but I'm unable to. I commented some lines in the php74 Makefile:
.if ${PORT_OPTIONS:MZTS} ...
but that didn't help.
Does anybody have a clue what is going on and how to fix that?