trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2011

Re: [trinity-devel] libpng version conflicts

From: /dev/ammo42 <mickeytintincolle@...>
Date: Fri, 15 Apr 2011 22:45:32 +0200
Fri, 15 Apr 2011 13:23:10 -0700 (PDT),
Darrell Anderson <humanreadable@...> 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@...> 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

Attachments: