From: /dev/ammo42 <mickeytintincolle(a)yahoo.fr>
Subject: Re: [trinity-devel] libpng version conflicts
To: trinity-devel(a)lists.pearsoncomputing.net
Date: Friday, April 15, 2011, 3:45 PM
Fri, 15 Apr 2011 13:23:10 -0700
(PDT),
Darrell Anderson <humanreadable(a)yahoo.com>
wrote :
[...]
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/include/libpng12/*
/usr/include/libpng14/*
/usr/lib/libpng*
/usr/lib/pkgconfig/libpng12.pc
/usr/lib/pkgconfig/libpng14.pc
/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.
[...]
Any ideas how to avoid these libpng conflicts?
From the
Slackbuilds.org mailing
list :
----
Wed, 9 Jun 2010 18:49:26 -0300,
Max Miorim <miorimmax(a)gmail.com>
wrote :
Hi,
The following patches will fix libkate build (using
libpng12) and make
the SlackBuild conform to the template.
As a side note, I have decided to use PNG_CFLAGS and
PNG_LIBS instead
of writing a patch to the source itself or doing
something like 'sed
-e "s#libpng#&12#g configure.ac
&&
autoreconf -f -i' before the
'./configure'.
Also, this SlackBbuild got removed in
c0730536a1d3fdcdd0a8d00f637ce97246a0e42e, the patches
will apply
cleanly on a revert of said commit.
-- Max
----
I attached the patches to this e-mail.
>
> Thanks.
>
> Darrell
Thanks for the reply. I was quite confused for a while with the patches until I realized
we were discussing two different kates.
I was referring to Kate the advanced text editor, not the codec. :)
Anyway, there might be a simple fix. I ran configure --help on kdelibs and kdebase. For
both packages there is a configure option called --with-extra-includes.
Interestingly, kdelibs automatically links to libpng12 while kdebase does not. I'm
building a new kdebase package right now with
--with-extra-includes=/usr/include/libpng12.
I added a simple test in the kdebase build script:
if [ -d /usr/include/libpng12 ] && [ -d /usr/include/libpng14 ]; then
if [ "`readlink /usr/include/libpng | grep libpng14`" ]; then
EXTRA_INCLUDES="/usr/include/libpng12"
fi
fi
I'll report back in an hour or so with the results.
Darrell