Bug 1217785

Summary: PHP Startup: Unable to load dynamic library 'imagick.so'
Product: [openSUSE] openSUSE Tumbleweed Reporter: Emiliano Langella <emiliano.langella>
Component: DevelopmentAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: emiliano.langella, guillaume.gardet, lubos.kocman, suse+build
Version: Current   
Target Milestone: ---   
Hardware: aarch64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Emiliano Langella 2023-12-04 16:41:51 UTC
I have an issue with php8-imagick-3.7.0-2.6.aarch64:

# php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/lib64/php8/extensions/imagick.so (/usr/lib64/php8/extensions/imagick.so: undefined symbol: php_strlcpy), /usr/lib64/php8/extensions/imagick.so.so (/usr/lib64/php8/extensions/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
<cut>

TW snapshot is 20231129.

Any idea?
Comment 1 Arjen de Korte 2023-12-06 09:26:07 UTC
Is this a recent build of this extension? From which repository was it installed?
Comment 2 Emiliano Langella 2023-12-06 09:28:41 UTC
(In reply to Arjen de Korte from comment #1)
> Is this a recent build of this extension? From which repository was it
> installed?

$ sudo zypper info php8-imagick
Loading repository data...
Reading installed packages...


Information for package php8-imagick:
-------------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : php8-imagick
Version        : 3.7.0-2.6
Arch           : aarch64
Vendor         : openSUSE
Installed Size : 497.7 KiB
Installed      : Yes
Status         : up-to-date
Source package : php8-imagick-3.7.0-2.6.src
Upstream URL   : https://pecl.php.net/package/imagick
Summary        : Wrapper to the ImageMagick library
Description    : 
    PHP extension to create, modify and obtain meta information of images using
    the ImageMagick API.
Comment 3 Emiliano Langella 2023-12-06 09:32:29 UTC
As you can see, php8-imagick should be the latest version available from the openSUSE-Tumbleweed-Oss repository.
Comment 4 Arjen de Korte 2023-12-06 10:38:18 UTC
This package is probably installed from https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/aarch64/

I do not have access to a aarch64 system, I can/will only address x86_64 related bugs. Assigning back to default.
Comment 5 Arjen de Korte 2023-12-06 18:16:46 UTC
Seems to be a duplicate of boo#1215626

*** This bug has been marked as a duplicate of bug 1215626 ***
Comment 6 Emiliano Langella 2023-12-14 16:50:32 UTC
The problem is fixed after updating php8-imagick to version 3.7.0-2.7.
Comment 7 Guillaume GARDET 2023-12-15 07:35:25 UTC
(In reply to Emiliano Langella from comment #6)
> The problem is fixed after updating php8-imagick to version 3.7.0-2.7.

For the record, I triggered a manual rebuild of the package.