[Solved] undefined symbol: png_get_cICP, version PNG16_0

Tumbleweed.

I did an update this morning and it upgraded dt from 5.2.0-1.1 to 5.2.0-1.2 and now I get the error:

 $ /usr/bin/darktable
/usr/bin/darktable: symbol lookup error: /usr/bin/../lib64/darktable/libdarktable.so: undefined symbol: png_get_cICP, version PNG16_0

Which lib am I missing? It was working well under 5.2.0-1.1

$ zypper if darktable
Loading repository data...
Reading installed packages...


Information for package darktable:
----------------------------------
Repository     : repo-oss
Name           : darktable
Version        : 5.2.0-1.2
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 32.3 MiB
Installed      : Yes
Status         : up-to-date
Source package : darktable-5.2.0-1.2.src
Upstream URL   : http://www.darktable.org/
Summary        : A virtual Lighttable and Darkroom
Description    : 
    darktable is a virtual lighttable and darkroom for photographers: it manages
    digital negatives in a database and can show them through a zoomable
    lighttable. It also enables developing raw images and enhance them.

That looks more like a version mismatch somewhere. A missing library would give you a message about that library not being found. I guess you are using OpenSUSe Tumbleweed?

1 Like
zypper lr -u


rpm -q --qf '%{nvr} %{disturl}\n' darktable libpng16

also make sure you zypper dup at all times.

1 Like

Here is:

 $ rpm -q --qf '%{nvr} %{disturl}\n' darktable libpng16
darktable-5.2.0-1.2 obs://build.opensuse.org/openSUSE:Factory/standard/599d1b1e2a3375245738fcd091e933c5-darktable
package libpng16 is not installed

but when I do: it’s installed

 $ zypper se --provides libpng16
Loading repository data...
Reading installed packages...

S  | Name                            | Summary                                         | Type
---+---------------------------------+-------------------------------------------------+--------
i  | libpng16-16                     | Library for the Portable Network Graphics For-> | package
   | libpng16-16-32bit               | Library for the Portable Network Graphics For-> | package
i  | libpng16-16-x86-64-v3           | Library for the Portable Network Graphics For-> | package
   | libpng16-compat-devel           | Development tools for applications which will-> | package
   | libpng16-compat-devel-32bit     | Development tools for applications which will-> | package
   | libpng16-compat-devel-x86-64-v3 | Development tools for applications which will-> | package
   | libpng16-devel                  | Development tools for applications which will-> | package
   | libpng16-devel-32bit            | Development tools for applications which will-> | package
   | libpng16-devel-x86-64-v3        | Development tools for applications which will-> | package
i+ | libpng16-tools                  | Tools for Manipulating PNG Images               | package
  1. Do I miss something?
  2. Can’t update until Wednesday. I have to finish important things by Tuesday afternoon.

Can’t update until Wednesday. I have to finish important things by Tuesday afternoon.

BUT

I just did:

$ sudo zypper up libpng16-16 libpng16-16-x86-64-v3
[sudo] password for root: 
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 packages are going to be upgraded:
  libpng16-16 libpng16-16-x86-64-v3

2 packages to upgrade.

Package download size:   304.7 KiB

Package install size change:
              |     596.3 KiB  required by packages that will be installed
    -8.0 KiB  |  -  604.3 KiB  released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): 
Preloading: libpng16-16-x86-64-v3-1.6.50-1.1.x86_64.rpm [done]
Preloading: libpng16-16-1.6.50-1.1.x86_64.rpm [done]
Preload finished. [success (2.5 KiB/s) ] .................................................[done]
Retrieving: libpng16-16-1.6.50-1.1.x86_64 (repo-oss)                        (1/2), 144.3 KiB    
Retrieving: libpng16-16-x86-64-v3-1.6.50-1.1.x86_64 (repo-oss)              (2/2), 160.4 KiB    

Checking for file conflicts: .............................................................[done]
(1/2) Installing: libpng16-16-1.6.50-1.1.x86_64 ..........................................[done]
(2/2) Installing: libpng16-16-x86-64-v3-1.6.50-1.1.x86_64 ................................[done]
Running post-transaction scripts .........................................................[done]

and now it works. Thanks :grinning:

Like I said, it’s not a missing library, but a version mismatch, so yes :stuck_out_tongue:

And note that you upgraded the mibpng packages, meaning they were already installed.

1 Like

partially updating TW is just asking for pain.