You are not logged in.

#1 2019-10-08 05:07:21

Polarity
Member
Registered: 2019-05-03
Posts: 32

[SOLVED] libpng Versions keep mixing up

Hey there!

I have libpng12, libpng14 and libpng16 on my system and more and more frequently I run into issues with this. For example when building software.

libpng warning: Application was compiled with png.h from libpng-1.6.37
libpng warning: Application  is  running with png.c from libpng-1.4.22
libpng warning: Incompatible libpng version in application and library

This is just one example, where I'd get warnings when building Blender. Another time I couldn't install https://aur.archlinux.org/packages/djv because I had some files from libpng14 in /usr/local/include/ (it worked after temporarily removing these files, but DJV now can't play png sequences.)

So, this seems like a bit of a mess. >>> How can I restore order?

Is it safe to use pacman to remove all versions and only reinstall the libpng package? (which is v 16)
Do I need to keep older versions?

What are all the locations where shared libraries should reside on a system?

This is where I could find libpng files so far:

/usr/include/libpng1[2/4/6]/ (header files)
/usr/lib/ (all versions)
/usr/lib32/ (versions 12 and 16)
/usr/lib64/ (all versions)
/usr/local/include (only 14) (this seems wrong! (?))

It would be really great if I could get some help with this. More generally, I'd like to understand the logic behind all this. (Where do applications search for shared libraries by default?)

Thank you for reading! smile

Last edited by Polarity (2019-10-08 19:00:40)

Offline

#2 2019-10-08 11:11:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,487

Re: [SOLVED] libpng Versions keep mixing up

There are no archlinux packages that install stuff in /usr/local .

You probably installed libpng 14 outside of pacman, maybe through a direct download and running an install as root.

output of pacman -Qs libpng ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-10-08 11:52:50

Polarity
Member
Registered: 2019-05-03
Posts: 32

Re: [SOLVED] libpng Versions keep mixing up

local/lib32-libpng 1.6.37-1
    A collection of routines used to create PNG format graphics files (32-bit)
local/lib32-libpng12 1.2.59-1
    A collection of routines used to create PNG format graphics files
local/libpng 1.6.37-1
    A collection of routines used to create PNG format graphics files
local/libpng12 1.2.59-1
    A collection of routines used to create PNG format graphics files

Yes, I believe I compiled libpng14 myself quite some time ago because I had software that needed that version. (Is now updated to libpng16)

Offline

#4 2019-10-08 12:20:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,410

Re: [SOLVED] libpng Versions keep mixing up

Remove that self compiled libpng and use the AUR package if need be.

As for understanding the underlying logic read the man pages of ld.so and ldconfig

Offline

#5 2019-10-08 19:00:18

Polarity
Member
Registered: 2019-05-03
Posts: 32

Re: [SOLVED] libpng Versions keep mixing up

I removed everything *14 and was now able to install djv from AUR with png support.

Thanks for the tips! I'll read up on ld.so and ldconfig.

Offline

Board footer

Powered by FluxBB