LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 01-08-2012, 05:40 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 434

Rep: Reputation: 19
Why does emacs-23.3-r2 still need libpng12.so.0?


I have just completed
Code:
emerge -avDu world
revdep-rebuild
cfg-update -u
and cannot run emacs.
Code:
$ emacs
emacs: error while loading shared libraries:  libpng12.so.0: cannot open shared object file: No such file or directory
Why does emacs still need libpng12?
How do I get past the problem?

Jim
 
Old 01-08-2012, 06:16 AM   #2
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 54
I think there was a thread in forums.gentoo.org about updating libpng. If I remember right I run:
Code:
revdep-rebuild --library '/usr/lib64/libpng14.so.14'
and after that there was a five-line-one-liner that ensured every symbolic link was updated. Have you done these?
 
Old 01-08-2012, 06:46 AM   #3
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 434

Original Poster
Rep: Reputation: 19
No, only what I did in the previous message. I have 64-bit hardware but the system is 32-bit.

I have tried linking libpng12.so.0 to other versions, but emacs (or something it calls) checks for an identification string in the library and rejects the link.

Edit: I just tried the above command, changing lib64 to lib, and nothing was rebuilt.

Last edited by CollieJim; 01-08-2012 at 06:53 AM.
 
Old 01-08-2012, 06:50 AM   #4
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 54
Restore the link and try the revdep-rebuild I posted above. You can try it with --pretend option first to see what is going to happen. If that fails too, you could try reemerge emacs.

Edit: probably you want this:
Code:
revdep-rebuild --pretend --library '/usr/lib/libpng12.so.12'
Also, check this.

Last edited by segmentation_fault; 01-08-2012 at 06:56 AM.
 
Old 01-08-2012, 06:58 AM   #5
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 434

Original Poster
Rep: Reputation: 19
All that happens with the revdep-rebuild is it wants to rebuild app-text/xpdf but could not find anything.
I have tried rebuilding emacs to no avail.
 
Old 01-09-2012, 05:02 AM   #6
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 434

Original Poster
Rep: Reputation: 19
I got a copy of libpng12.so.0 from a backup.
It's curious, though, that emacs still depends on an old library...
 
Old 01-09-2012, 04:26 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,040

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
There are a few things you should try.

First, check the output for "which emacs" (or whatever the command is) and then double check that the listed binary file is part of the emacs package, using your favourite portage tool (i.e. equery or the like), and not some other emacs version you installed by hand.

It should probably be under /usr/bin/emacs, so try running it with the fully qualified path just to be sure.

Use find or whatever tool you prefer to locate all the libpng versions in your system. There's probably some leftover somewhere causing this pain. Also, see what libpng versions portage lists.

You should also try searching at forums.gentoo.org and read about the issues people experienced when migrating to libpng-1.4 because of the infamous ABI break. I don't remember anything about emacs, concretely, but it might worth a check.

Last, but not least, even if emacs truly needs libpng-1.2 (and I really doubt it, but I am not going to bother installing emacs just to check), you could just do "emerge emacs:1.2" and at least portage will know that the lib is installed. No need to pick random libs and put them into your fs. And in any case, I really disregard that kind of practice, because it can cause issues like the one you are experiencing right now and some darker ones.
 
Old 01-10-2012, 11:21 PM   #8
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 434

Original Poster
Rep: Reputation: 19
Thanks. It's not the first time (or even the 10th) that I've been caught out executing something other than what I expect. There was an old copy in /usr/local/bin. The current emacs does not need libpng12 after all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I get emacs -nw when I call emacs from a terminal but GUI emacs elsewhere? Blackened Justice Linux - Newbie 4 09-08-2011 07:57 AM
Error while loading shared library : libpng12.so.0 dhanilshah Linux - Software 5 08-18-2011 07:38 AM
/usr/lib/libpng12.so.0 no version information available H_TeXMeX_H Slackware 18 04-18-2010 06:01 AM
libpng12.so.0??? wr3ck3d Slackware 2 01-03-2003 12:00 PM


All times are GMT -5. The time now is 09:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration