Message: previous - next
Month: April 2011

libpng version conflicts

From: Darrell Anderson <humanreadable@...>
Date: Fri, 15 Apr 2011 13:23:10 -0700 (PDT)
While the work with cmake continues I have been working with building 3.5.10 on newer Slackware systems. Some of the effort will help Trinity, which is part of my goal. Such as testing patches for libpng and KDE4 compatibility.

I found some preliminary patches for KDE4 compatibility and have expanded those quite a bit. I will submit those patches to Trinity when I am confident the entire package set is working, which will require several days or more of actual usage.

I've rebuilt the entire 3.5.10 package set except koffice. Everything works wonderfully except when I use kdesu to open kate. That is the only problem I have noticed so far. When I open kate through kdesu there are no icons in the toolbars. Usually that indicates a problem with libpng.

I'm guessing that this problem might eventually hit Trinity too.

Indeed, when I run that command from a terminal I see oodles of messages like this:

kate: WARNING: Pixmap not found for mimetype text/plain
libpng warning: Application was compiled with png.h from libpng-1.4.3
libpng warning: Application  is  running with png.c from libpng-1.2.44
libpng error: Incompatible libpng version in application and library

So apparently kdebase (at least) linked to libpng 1.4.3 when compiling but oddly wants to run using libpng 1.2.44.

Searching the web hasn't helped me nail the solution other than the obvious that there is a conflict between the two versions.

I have two versions of libpng installed because that is the way Slackware is now bundled.

/usr/lib/pkgconfig/libpng.pc -> /usr/lib/pkgconfig/libpng14.pc

I'm thinking I should change the libpng.pc sym link from 1.4 to 1.2. I am hoping that will force the packages to build with libpng 1.2. I'm going to try that but I thought I'd post and see whether there might be something else I'm missing.

Oddly, I can open kate directly with my user account. I can log in to KDE as root and kate behaves. I can open other apps with kdesu and there are no toolbar icon problems. I can open konqueror with kdesu and then open a file from there with kate and the toolbar icons are fine. I temporarily deleted all of root's related kate config files and saw the same results.

I don't really care which version the packages link against as long as they all use that same version after being installed.

Any ideas how to avoid these libpng conflicts?