[SOLVED] Why does emacs-23.3-r2 still need libpng12.so.0?
GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.