/usr/lib/php/20151012/zip.so links to wrong libzip version in x64 arch

Bug #1697832 reported by Lithi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php7.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

$ ldd -v /usr/lib/php/20151012/zip.so
        libzip.so.4 => not found

However the libzip4 package provides (https://packages.ubuntu.com/search?searchon=contents&keywords=libzip.so.4&mode=exactfilename&suite=xenial&arch=any):

/usr/lib/x86_64-linux-gnu/libzip.so.5.0.0
/usr/lib/x86_64-linux-gnu/libzip.so.5

This causes the following error messages when the cron scrip runs PHP Startup:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/zip.so' - libzip.so.4: cannot open shared object file: No such file or directory in Unknown on line 0

Revision history for this message
Nish Aravamudan (nacc) wrote : Re: [Bug 1697832] [NEW] /usr/lib/php/20151012/zip.so links to wrong libzip version in x64 arch

Hello and thank you for filing this bug report.

On 14.06.2017 [04:14:34 -0000], Lithi wrote:
> Public bug reported:
>
> $ ldd -v /usr/lib/php/20151012/zip.so
> linux-vdso.so.1 => (0x00007fffe33ea000)
> libzip.so.4 => not found

On 16.04, in a fully updated LXD container:

# ldd /usr/lib/php/20151012/zip.so
 linux-vdso.so.1 => (0x00007ffdbcdfb000)
 libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x00007f04346d8000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f043430f000)
 libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f04340f4000)
 /lib64/ld-linux-x86-64.so.2 (0x00005605dfc3a000)

# apt policy php7.0-zip
php7.0-zip:
  Installed: 7.0.18-0ubuntu0.16.04.1
  Candidate: 7.0.18-0ubuntu0.16.04.1
  Version table:
 *** 7.0.18-0ubuntu0.16.04.1 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     7.0.15-0ubuntu0.16.04.4 500
        500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
     7.0.4-7ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

> However the libzip4 package <a
href="https://packages.ubuntu.com/search?searchon=contents&keywords=libzip.so.4&mode=exactfilename&suite=xenial&arch=any">provides</a>:
>
> /usr/lib/x86_64-linux-gnu/libzip.so.5.0.0
> /usr/lib/x86_64-linux-gnu/libzip.so.5

Um, I find this incredibly confusing. You pasted a link which directly
contradicts what you state?

The list of files in xenial in libzip4 is:

File Packages
/usr/lib/aarch64-linux-gnu/libzip.so.4 libzip4 [arm64]
/usr/lib/arm-linux-gnueabihf/libzip.so.4 libzip4 [armhf]
/usr/lib/i386-linux-gnu/libzip.so.4 libzip4 [i386]
/usr/lib/powerpc-linux-gnu/libzip.so.4 libzip4 [powerpc]
/usr/lib/powerpc64le-linux-gnu/libzip.so.4 libzip4 [ppc64el]
/usr/lib/s390x-linux-gnu/libzip.so.4 libzip4 [s390x]
/usr/lib/x86_64-linux-gnu/libzip.so.4 libzip4 [amd64]

There is no libzip5 (which would be a SOVERSION bump) in Ubuntu or
Debian (it would be called libzip5) and it would be very wrong (and bad)
for a package named libzip4 to provide a libzip.so.5 file.

Are you claiming on your 16.04 system that you have a libzip.so.5 file?
Can you run `dpkg -S /usr/lib/x86_64-linux-gnu/libzip.so.5`?

Changed in php7.0 (Ubuntu):
status: New → Incomplete
Revision history for this message
Keen Mouse (keenmouse) wrote :

I have this issue on KDE Neon 16.04.

$ ldd -v /usr/lib/php/20151012/zip.so
        linux-vdso.so.1 => (0x00007fff225db000)
        libzip.so.4 => not found

$ locate libzip.so.5
/usr/lib/x86_64-linux-gnu/libzip.so.5
/usr/lib/x86_64-linux-gnu/libzip.so.5.0.0

$ dpkg -S /usr/lib/x86_64-linux-gnu/libzip.so.5
libzip4:amd64: /usr/lib/x86_64-linux-gnu/libzip.so.5

Revision history for this message
Nish Aravamudan (nacc) wrote : Re: [Bug 1697832] Re: /usr/lib/php/20151012/zip.so links to wrong libzip version in x64 arch

On 14.06.2017 [21:27:25 -0000], Keen Mouse wrote:
> I have this issue on KDE Neon 16.04.
>
> $ ldd -v /usr/lib/php/20151012/zip.so
> linux-vdso.so.1 => (0x00007fff225db000)
> libzip.so.4 => not found
>
> $ locate libzip.so.5
> /usr/lib/x86_64-linux-gnu/libzip.so.5
> /usr/lib/x86_64-linux-gnu/libzip.so.5.0.0
>
> $ dpkg -S /usr/lib/x86_64-linux-gnu/libzip.so.5
> libzip4:amd64: /usr/lib/x86_64-linux-gnu/libzip.so.5

Can you please provide the output of:

apt policy libzip4

Revision history for this message
Lithi (lithi) wrote :

Just a note on how to stop the error messages from occurring every time the cron script runs:

$ cd /usr/lib/x86_64-linux-gnu/
$ sudo ln -s libzip.so.5.0.0 libzip.so.4

description: updated
Revision history for this message
Keen Mouse (keenmouse) wrote :

$ apt policy libzip4
libzip4:
  Installed: 1.2.0-0neon+16.04+xenial+build2
  Candidate: 1.2.0-0neon+16.04+xenial+build2
  Version table:
 *** 1.2.0-0neon+16.04+xenial+build2 500
        500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.1-0ubuntu1 500
        500 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

Revision history for this message
Nish Aravamudan (nacc) wrote :

On Jun 14, 2017 18:02, "Keen Mouse" <email address hidden> wrote:

$ apt policy libzip4
libzip4:
  Installed: 1.2.0-0neon+16.04+xenial+build2
  Candidate: 1.2.0-0neon+16.04+xenial+build2
  Version table:
 *** 1.2.0-0neon+16.04+xenial+build2 500
        500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.1-0ubuntu1 500
        500 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64
Packages

You are not using an Ubuntu package. Please file a bug with neon, as they
are building library SOVERSION rules.

Revision history for this message
Nish Aravamudan (nacc) wrote :

On Jun 14, 2017 17:22, "Lithi" <email address hidden> wrote:

Just a note on how to stop the error messages from occurring every time
the cron script runs:

$ cd /usr/lib/x86_64-linux-gnu/
$ sudo ln -s libzip.so.5.0.0 libzip.so.4

Do not do this. You are telling the loader that your libzip is SOVERSION 4
when it is 5.

Please provide the apt policy output. Are you also using neon?

Revision history for this message
Stafox (stafox) wrote :

I can confirm that issue connected with KDE NEON distr. For example on kubuntu 16.04, no problems.

Revision history for this message
Nish Aravamudan (nacc) wrote :

@stafox, thank you for confirming. If anyone is able to reproduce this with actual Ubuntu (not any PPAs, not NEON), please mark this bug as New.

Changed in php7.0 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Keen Mouse (keenmouse) wrote :

For anyone on NEON, the bug report can be found here:

https://bugs.kde.org/show_bug.cgi?id=381183

Revision history for this message
Lithi (lithi) wrote :

On my amd64 system these are the contents of libzip4:

/usr/share/doc/libzip4/copyright
/usr/share/doc/libzip4/changelog.Debian.gz
/usr/lib/x86_64-linux-gnu/libzip.so.5.0.0
/usr/lib/x86_64-linux-gnu/libzip.so.5

$ lsb_release -a
No LSB modules are available.
Distributor ID: neon
Description: KDE neon User Edition 5.10
Release: 16.04
Codename: xenial

Revision history for this message
Nish Aravamudan (nacc) wrote :

@lithi, so it seems you are also using Neon, which is not Ubuntu. Please follow up with them on their (rather glaring) mistake.

Revision history for this message
Stafox (stafox) wrote :

Fixed with latest update.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.