Skip to content

PHP: unable to load dynamic library 'gd' - potential regression on armv7l #61164

Description

@ILadis

Is this a new report?

Yes

System Info

Void 6.12.87_1 armv7l Unknown uptodate hold rFFFF

Package(s) Affected

php-8.5_1, php-gd-8.5.7_1

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

I've reported a similar issue with the php-gd extension for Void on armv7 in the past, see here: #56252

Expected behaviour

I've enabled the gd extension in my php.ini. By doing so I could parse images using imagecreatefromstring on php8.4.

Seems like a regression going from php8.4 to php8.5 as the error message reads exactly the same as last time.
Other extensions still work fine.

Actual behaviour

Now the following error is thrown:

$ php -r 'print_r(gd_info());'
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd' (tried: /usr/lib/php8.5/modules/gd (/usr/lib/php8.5/modules/gd: cannot open shared object file: No such file or directory), /usr/lib/php8.5/modules/gd.so (libx264.so.165: cannot enable executable stack as shared object requires: Invalid argument)) in Unknown on line 0
PHP Fatal error:  Uncaught Error: Call to undefined function gd_info() in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1

Note that gd.so exists on my system:

$ ls -al /usr/lib/php8.5/modules/gd.so 
-rwxr-xr-x 1 root root 108012 Jun 14 00:28 /usr/lib/php8.5/modules/gd.so

Steps to reproduce

The following command should not output an error message:

$ php -r 'print_r(gd_info());'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-testingTesting a PR or reproducing an issue needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions