[MacPorts] #61735: php74-apachehandler -> when loading module mod_php in httpd.conf throws: Library not loaded: @rpath/libargon2.1.dylib
MacPorts
noreply at macports.org
Thu Dec 3 23:32:42 UTC 2020
#61735: php74-apachehandler -> when loading module mod_php in httpd.conf throws:
Library not loaded: @rpath/libargon2.1.dylib
-------------------------------------------+------------------------
Reporter: elcheco | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: php74-apache2handler, argon2 |
-------------------------------------------+------------------------
Changes (by ryandesign):
* keywords: php-apachehandler argon2 =>
* cc: kurthindenburg (added)
* status: assigned => accepted
* port: php74-apache2handler => php74-apache2handler, argon2
Old description:
> I think it's maybe connected to today's update of php74/8.0
>
> I updated 7.4 and installed 8.0 - as fpm - it works, but when I have one
> as module - it dies and before it worked.
>
> ❯ apachectl configtest
>
> httpd: Syntax error on line 166 of /opt/local/etc/apache2/httpd.conf:
> Cannot load lib/apache2/modules/mod_php74.so into server:
> dlopen(/opt/local/lib/apache2/modules/mod_php74.so, 10): Library not
> loaded: @rpath/libargon2.1.dylib\n Referenced from:
> /opt/local/lib/apache2/modules/mod_php74.so\n Reason: image not found
>
> If I comment the line in https.conf where the module is loaded, the issue
> is gone and apache works - so the PHP I can have only as fpm:
>
> LoadModule php7_module lib/apache2/modules/mod_php74.so
New description:
I think it's maybe connected to today's update of php74/8.0
I updated 7.4 and installed 8.0 - as fpm - it works, but when I have one
as module - it dies and before it worked.
{{{
❯ apachectl configtest
httpd: Syntax error on line 166 of /opt/local/etc/apache2/httpd.conf:
Cannot load lib/apache2/modules/mod_php74.so into server:
dlopen(/opt/local/lib/apache2/modules/mod_php74.so, 10): Library not
loaded: @rpath/libargon2.1.dylib\n Referenced from:
/opt/local/lib/apache2/modules/mod_php74.so\n Reason: image not found
}}}
If I comment the line in https.conf where the module is loaded, the issue
is gone and apache works - so the PHP I can have only as fpm:
{{{
LoadModule php7_module lib/apache2/modules/mod_php74.so
}}}
--
Comment:
Thanks for the report. I noticed that argon2 used @rpath and although I
did not see the problem you saw the use of @rpath irritated me so I
already [https://github.com/P-H-C/phc-winner-argon2/pull/309 submitted a
fix to the developers of argon2] to stop using @rpath and they just
approved it. I'll submit a MacPorts PR to get a patch added.
--
Ticket URL: <https://trac.macports.org/ticket/61735#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list