Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php*-apcu, php*-imagick plugins need to be rebuilt #48183

Closed
Kerrnel opened this issue Jan 12, 2024 · 1 comment
Closed

php*-apcu, php*-imagick plugins need to be rebuilt #48183

Kerrnel opened this issue Jan 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Kerrnel
Copy link

Kerrnel commented Jan 12, 2024

Is this a new report?

Yes

System Info

Void 6.6.10_1 x86_64 GenuineIntel uptodate rrFFFFF

Package(s) Affected

php-apcu-8.3_1, php-imagick-8.3_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

xbps-install --reinstall did not fix

PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php8.3/modules/apcu.so (/usr/lib/php8.3/modules/apcu.so: undefined symbol: php_strlcpy),
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/lib/php8.3/modules/imagick.so (/usr/lib/php8.3/modules/imagick.so: undefined symbol: php_strlcpy), /usr/lib/php8.3/modules/imagick.so.so

Note the dates on these two:

ll /usr/lib/php8.3/modules/
total 4720
-rwxr-xr-x 1 root root 88304 Dec 13 12:46 apcu.so
-rwxr-xr-x 1 root root 481568 Dec 13 12:46 imagick.so

vs. the rest

-rwxr-xr-x 1 root root 35064 Jan 3 21:54 pdo_mysql.so
-rwxr-xr-x 1 root root 51448 Jan 3 21:54 pdo_pgsql.so
-rwxr-xr-x 1 root root 35064 Jan 3 21:54 pdo_sqlite.so
-rwxr-xr-x 1 root root 100592 Jan 3 21:54 zip.so

Expected behaviour

Modules load

Actual behaviour

Modules fail to load

Steps to reproduce

Install php8.3* ... launch with php --modules ; see them missing

@Kerrnel Kerrnel added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Jan 12, 2024
@Kerrnel Kerrnel changed the title php8.3 needs a rebuild - imagick / apcu are old php8.3-imagick & php8.3-apcu need a rebuild Jan 12, 2024
@Kerrnel Kerrnel closed this as completed Jan 12, 2024
@Kerrnel
Copy link
Author

Kerrnel commented Jan 12, 2024

Something else wrong - moved back to php8.2 and 8.1 - same errors on those modules

grep php_strlcpy php* on debian is positive in /usr/bin - negative in Void ... still investigating

Debian:
$ grep php_strlcpy php*
grep: php: binary file matches
grep: php8.1: binary file matches
grep: phpdbg: binary file matches
grep: phpdbg8.1: binary file matches

$ grep -r php_strlcpy /usr/lib/php*
grep: /usr/lib/php/20210902/apcu.so: binary file matches
grep: /usr/lib/php/20210902/imagick.so: binary file matches
grep: /usr/lib/php/20210902/pdo_pgsql.so: binary file matches
grep: /usr/lib/php/20210902/pgsql.so: binary file matches
grep: /usr/lib/php/20210902/mysqlnd.so: binary file matches
grep: /usr/lib/php/20210902/imap.so: binary file matches
grep: /usr/lib/php/20210902/fileinfo.so: binary file matches
grep: /usr/lib/php/20210902/pdo.so: binary file matches
grep: /usr/lib/php/20210902/phar.so: binary file matches

Void
$ grep -r php_strlcpy php8.* /usr/lib/php*
grep: php8.1/modules/apcu.so: binary file matches
grep: php8.1/modules/imagick.so: binary file matches
grep: php8.2/modules/apcu.so: binary file matches
grep: php8.2/modules/imagick.so: binary file matches
grep: php8.3/modules/apcu.so: binary file matches
grep: php8.3/modules/imagick.so: binary file matches

grep: /usr/lib/php8.1/modules/apcu.so: binary file matches
grep: /usr/lib/php8.1/modules/imagick.so: binary file matches
grep: /usr/lib/php8.2/modules/apcu.so: binary file matches
grep: /usr/lib/php8.2/modules/imagick.so: binary file matches
grep: /usr/lib/php8.3/modules/apcu.so: binary file matches
grep: /usr/lib/php8.3/modules/imagick.so: binary file matches

I think this just needs to be rebuilt. Checked out this repo and built php8.3-apcu and php8.3-imagick and manually copied the modules into /usr/lib/php8.3/modules and they seem fine (don't have the reference to php_strlcpy)... although maybe this is an issue for somewhere else since the source is fine. Sorry if wrong target for this issue.

@Kerrnel Kerrnel changed the title php8.3-imagick & php8.3-apcu need a rebuild php 8.1, 8.2, 8.3 missing php_strlcpy required by php*-apcu, php*-imagick plugins causing them not to load Jan 12, 2024
@Kerrnel Kerrnel reopened this Jan 12, 2024
@Kerrnel Kerrnel changed the title php 8.1, 8.2, 8.3 missing php_strlcpy required by php*-apcu, php*-imagick plugins causing them not to load php*-apcu, php*-imagick plugins need to be rebuilt Jan 12, 2024
@classabbyamp classabbyamp removed the needs-testing Testing a PR or reproducing an issue needed label Jan 13, 2024
Calandracas606 pushed a commit to Calandracas606/void-packages that referenced this issue Feb 13, 2024
fixes undefined symbol php_strlcpy

fixes void-linux#48183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants