1 (edited by SieGeL2k22 2022-06-30 08:59:32)

Topic: Problem with PECL-ZIP on Fedora36

Hi,

first of all thanks for your work - I really appreciate it!

I've got today a strange problem with the pecl-zip package of my PHP 8.0.20 installation, I've got the following error:

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

All of my repos are fully updated, all RPM updates are installed. Libzip is libzip-1.8.0-4.fc36.x86_64 and the pecl-zip is php-pecl-zip-1.21.0-2.fc36.remi.8.0.x86_64

Any idea what is going on here?

PS: Just tried to install latest pecl-zip package from pecl.php.net, this works flawlessly:

php --ri zip

zip

Zip => enabled
Zip version => 1.21.0
Libzip version => 1.8.0
BZIP2 compression => Yes
XZ compression => Yes
ZSTD compression => Yes
AES-128 encryption => Yes
AES-192 encryption => Yes
AES-256 encryption => Yes

Re: Problem with PECL-ZIP on Fedora36

You need libzip version 1.9.2 which is in "remi" repository
(with libzip 1.8.0 new feature won't be available)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Problem with PECL-ZIP on Fedora36

Hi,

thanks for your fast answer!

I've checked my *.repo files and for whatever reason the remi.repo file was disabled?!

Just reenabled it and after dnf update everything works as expected.

Thanks for your support!

Regards

Sascha

Re: Problem with PECL-ZIP on Fedora36

Going to upload an small update which ensure proper version is used.

$ rpmdiff php-pecl-zip-1.21.0-2.fc36.remi.8.0.x86_64.rpm php-pecl-zip-1.21.0-3.fc36.remi.8.0.x86_64.rpm
...
added       REQUIRES libzip(x86-64) >= 1.9.2
...
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Problem with PECL-ZIP on Fedora36

New build uploaded.


Thanks for your report.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Problem with PECL-ZIP on Fedora36

Wow, that's really fast wink Again thank you for your work!

Re: Problem with PECL-ZIP on Fedora36

smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi