PHP fails to load modules #208

Closed
opened 2023-08-23 20:31:49 +02:00 by nariox · 2 comments

It gives out these warnings:

PHP Warning:  PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php-legacy/modules/apcu.so (/usr/lib/php-legacy/modules/apcu.so: undefined symbol: php_strlcpy), /usr/lib/php-legacy/modules/apcu.so.so (/usr/lib/php-legacy/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/lib/php-legacy/modules/imagick (/usr/lib/php-legacy/modules/imagick: cannot open shared object file: No such file or directory), /usr/lib/php-legacy/modules/imagick.so (/usr/lib/php-legacy/modules/imagick.so: undefined symbol: php_strlcpy)) in Unknown on line 0

Running string /usr/bin/php | grep strlcpy gives me strlcpy, whereas the one from the extra repo gives me php_strlcpy. Not sure if it is related, but my guess is that it needs to be build with GLIB 2.37 or something according to this commit message
https://gitlab.archlinux.org/archlinux/packaging/packages/php/-/commit/6a3ed1e3f17f14b0d6bdcc310dc801a0e4610639

It gives out these warnings: ``` PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php-legacy/modules/apcu.so (/usr/lib/php-legacy/modules/apcu.so: undefined symbol: php_strlcpy), /usr/lib/php-legacy/modules/apcu.so.so (/usr/lib/php-legacy/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/lib/php-legacy/modules/imagick (/usr/lib/php-legacy/modules/imagick: cannot open shared object file: No such file or directory), /usr/lib/php-legacy/modules/imagick.so (/usr/lib/php-legacy/modules/imagick.so: undefined symbol: php_strlcpy)) in Unknown on line 0 ``` Running `string /usr/bin/php | grep strlcpy` gives me `strlcpy`, whereas the one from the `extra` repo gives me `php_strlcpy`. Not sure if it is related, but my guess is that it needs to be build with GLIB 2.37 or something according to this commit message [https://gitlab.archlinux.org/archlinux/packaging/packages/php/-/commit/6a3ed1e3f17f14b0d6bdcc310dc801a0e4610639](https://gitlab.archlinux.org/archlinux/packaging/packages/php/-/commit/6a3ed1e3f17f14b0d6bdcc310dc801a0e4610639)
anonfunc added the
bug
label 2023-08-28 11:48:36 +02:00
Owner

Sorry for the late response, was traveling over the weekend. Not sure why the rebuild was only done for php, not php-legacy. I requeued php-legacy and the affected php modules, since I'm not sure which of them got build with the older/newer glibc version.

Sorry for the late response, was traveling over the weekend. Not sure why the rebuild was only done for `php`, not `php-legacy`. I requeued `php-legacy` and the affected php modules, since I'm not sure which of them got build with the older/newer glibc version.
Owner

This should be fixed. Please reopen if you still encounter any problems.

This should be fixed. Please reopen if you still encounter any problems.
Sign in to join this conversation.
No description provided.