Opened 4 years ago

Closed 4 years ago

#61735 closed defect (fixed)

php74-apachehandler -> when loading module mod_php in httpd.conf throws: Library not loaded: @rpath/libargon2.1.dylib

Reported by: elcheco (Miroslav Koula) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: haspatch Cc: kurthindenburg (Kurt Hindenburg), mndavidoff (Monte Davidoff)
Port: php72 php73 php74 php80 argon2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (7)

comment:1 Changed 4 years ago by elcheco (Miroslav Koula)

Description: modified (diff)

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: kurthindenburg added
Description: modified (diff)
Keywords: php-apachehandler argon2 removed
Port: argon2 added
Status: assignedaccepted

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 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.

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Port: php72 php73 php74 php80 added; php74-apache2handler removed

And yes it is related to today's php72/php73/php74/php80 update because I just added argon2 support as had been requested in #60469.

comment:4 Changed 4 years ago by elcheco (Miroslav Koula)

Thank you Ryan for such a quick reply and action ;-)

comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

comment:6 Changed 4 years ago by mndavidoff (Monte Davidoff)

Cc: mndavidoff added

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In ca055c4112c0f24e0a5033140f6fe81a6276de74/macports-ports (master):

argon2: No @rpath or -march=native; add manpage

Disable the use of @rpath because it is unusual and unnecessary and can
cause other programs to fail to find the library.

Closes: #61735

Don't use -march=native because we want to build binaries that work on
any processor, not just the processor of the build machine.

Install the manpage.

Note: See TracTickets for help on using tickets.