LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-26-2010, 11:56 AM   #1
trumpet_tom
Member
 
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Rep: Reputation: 19
libpng clash in kopete and kmess - slackware current x86_64


Hi all, I'm primarily trying to use kmess but have found the same problem in using kopete. A lot of the icons are missing and both applications crash. Running them both in the terminal reveals the problem:

in kmess:
Code:
libpng warning: Application was compiled with png.h from libpng-1.2.37
libpng warning: Application  is  running with png.c from libpng-1.4.1
in kopete:
Code:
libpng warning: Application was compiled with png.h from libpng-1.4.1
libpng warning: Application  is  running with png.c from libpng-1.2.43
I only have one package installed: libpng-1.4.1, although I can see that it contains both of the versions. Both apps crash as a result of this error, curiously each for the opposite reason!

I have tried the kmess slackbuilds from slacky.eu and slackbuilds.org, I have also tried compiling from source myself. I guess I need to force kmess to compile using the newer libpng, although I'm not really sure how to do that..

Thanks,
Tom
 
Old 03-26-2010, 01:06 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The package should have been named libpng-1.2.43+1.4.1 :
It is made from two sources, please see slackware/source/..

Hiding libpng12.pc or libpng14.pc can decide the compiling.
May be create a link from one ? : cd /usr/lib64/pkgconfig/
# ln -s libpng14.pc libpng.pc

It may also be required to hide the ".so" :
cd /usr/lib64/ , # mv libpng12.so libpng12.so-back

.....

Last edited by knudfl; 03-26-2010 at 01:08 PM.
 
Old 03-27-2010, 09:13 AM   #3
trumpet_tom
Member
 
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Original Poster
Rep: Reputation: 19
There was already the symbolic link between libpng.pc and libpng14.pc. I tried moving the .so file as you said and also moved the libpng12.pc but it still comes up with the same error.
 
Old 03-27-2010, 09:26 AM   #4
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
I had the same problem with wxGTK and wxMaxima. The answer was in this ChangeLog, where in the configure script you'll have to replace the deprecated functions with the new ones, and maybe (I don't remember this) force link with -lpng14. Keep an eye on your ./configure log.

Last edited by rfernandez; 03-27-2010 at 09:27 AM. Reason: writing errors
 
Old 03-27-2010, 12:52 PM   #5
trumpet_tom
Member
 
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Original Poster
Rep: Reputation: 19
The source for kmess has a "configure" script but it's only provided as a compatibility layer. It actually uses cmake. I'm not too sure how cmake works and where you would specify the libpng version, do you know?
 
Old 03-27-2010, 06:53 PM   #6
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Now that you said that, I remember that I didn't have any problem with Kmess... but, I can't help to notice that I have both libpng12 and libpng14.

By the way, mine is Slackware-current i686
 
Old 03-28-2010, 04:26 AM   #7
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
What libraries does kmess need ?

I had the same problem with amule. I compiled amule after the libpng
upgrade and i guess it linked with 1.4 png, but my wxGTK was compiled
before the upgrade so i got the same message like yours. Now i have
compiled wxGTK again and the message is gone and icons work fine.

It may be irrelevant but it seems to be the same cause to your problem.
 
Old 03-28-2010, 02:59 PM   #8
trumpet_tom
Member
 
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Original Poster
Rep: Reputation: 19
I've sorted it out now..

I've been using the packages from AlienBob and somewhere along the line missed out on a key bit of information. I upgraded to the kde 4.4.1 packages and read that the dependencies were the same as before so I didn't re-download or upgrade any of those. I hadn't realised that there was also a previous update to these dependencies. I also upgraded all the multilib packages, which had also been rebuilt.

I was searching all over the place for things to do with kmess and libpng and didn't realise that the solution was right under my nose . Thanks to everyone that tried to help. Sorry that I didn't mention I was using these packages as well, it was obviously quite relevant!

Note to self: keep an eye on http://alien.slackbook.org/blog/!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libgmp and libpng in latest -current upgrades dive Slackware 37 03-05-2010 11:40 AM
Slackware x86_64 '-current' FireFox & Thunderbird issues with linking onebuck Slackware 6 01-22-2010 02:38 PM
Have you been running slackware-current for the first time for x86_64? If so . . . foodown Slackware 19 08-20-2009 12:06 AM
Slackware-current (x86_64) Xorg crash chaosorama Slackware 3 08-01-2009 02:09 AM
libz error when installing messenger sw - kopete, kmess darrenj Linux - Newbie 4 08-29-2003 12:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration