Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error while loading share libraries: libtinfo.so.5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 66

PostPosted: Thu Jul 24, 2014 11:23 pm    Post subject: error while loading share libraries: libtinfo.so.5 Reply with quote

I'm trying to run ePSXe on a multilib system. It requires libtinfo which is now in libncurses so I had to create a symlink /lib32/libtinfo.so.5 -> /lib32/libncurses.so.5.9 but the epsxe executable still cant find it. I think it has something to do with the loader caching it as libncurses.so.5. If I run epsxe with LD_LIBRARY_PATH=/lib32 it works just fine. So my question is, is there any way to get the loader to cache this library correctly? Bellow is the ldd output with and without LD_LIBRARY_PATH=/lib32 as you can see in both cases it loads ncurses but without the LD_LIBRARY_PATH it still tries to load libtinfo as if it doesnt know its already loaded?

Code:

# sudo ldd epsxe
   linux-gate.so.1 (0xf7763000)
   libncurses.so.5 => /lib32/libncurses.so.5 (0xf76e9000)
   libtinfo.so.5 => not found
   libdl.so.2 => /lib32/libdl.so.2 (0xf76e4000)
   libz.so.1 => /lib32/libz.so.1 (0xf76cd000)
   libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7594000)
   libgtk-x11-2.0.so.0 => /usr/lib32/libgtk-x11-2.0.so.0 (0xf712c000)
   libgdk-x11-2.0.so.0 => /usr/lib32/libgdk-x11-2.0.so.0 (0xf707b000)
   libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf7028000)
   libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf6ef5000)
   libasound.so.2 => /usr/lib32/libasound.so.2 (0xf6e0b000)
   libSDL-1.2.so.0 => /usr/lib32/libSDL-1.2.so.0 (0xf6dc6000)
   libSDL_ttf-2.0.so.0 => /usr/lib32/libSDL_ttf-2.0.so.0 (0xf6dbe000)
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf6da3000)
   libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf6da0000)
   libc.so.6 => /lib32/libc.so.6 (0xf6bf3000)
   /lib/ld-linux.so.2 (0xf7764000)
   libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf6bce000)
   libgmodule-2.0.so.0 => /usr/lib32/libgmodule-2.0.so.0 (0xf6bc9000)
   libpangocairo-1.0.so.0 => /usr/lib32/libpangocairo-1.0.so.0 (0xf6bbb000)
   libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf6bb5000)
   libatk-1.0.so.0 => /usr/lib32/libatk-1.0.so.0 (0xf6b91000)
   libcairo.so.2 => /usr/lib32/libcairo.so.2 (0xf6a8e000)
   libgdk_pixbuf-2.0.so.0 => /usr/lib32/libgdk_pixbuf-2.0.so.0 (0xf6a69000)
   libgio-2.0.so.0 => /usr/lib32/libgio-2.0.so.0 (0xf68fa000)
   libpangoft2-1.0.so.0 => /usr/lib32/libpangoft2-1.0.so.0 (0xf68e5000)
   libpango-1.0.so.0 => /usr/lib32/libpango-1.0.so.0 (0xf6897000)
   libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf685b000)
   libm.so.6 => /lib32/libm.so.6 (0xf6818000)
   libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf680d000)
   libXi.so.6 => /usr/lib32/libXi.so.6 (0xf67fc000)
   libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf67f0000)
   libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf67e4000)
   libXcomposite.so.1 => /usr/lib32/libXcomposite.so.1 (0xf67e0000)
   libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf67dc000)
   libXext.so.6 => /usr/lib32/libXext.so.6 (0xf67c9000)
   libffi.so.6 => /usr/lib32/libffi.so.6 (0xf67c0000)
   librt.so.1 => /lib32/librt.so.1 (0xf67b7000)
   libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf6714000)
   libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6710000)
   libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6709000)
   libpixman-1.so.0 => /usr/lib32/libpixman-1.so.0 (0xf6691000)
   libpng16.so.16 => /usr/lib32/libpng16.so.16 (0xf665a000)
   libresolv.so.2 => /lib32/libresolv.so.2 (0xf6643000)
   libharfbuzz.so.0 => /usr/lib32/libharfbuzz.so.0 (0xf65e4000)
   libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf65bb000)
   libbz2.so.1 => /lib32/libbz2.so.1 (0xf65a9000)
   libgraphite2.so.3 => /usr/lib32/libgraphite2.so.3 (0xf658b000)


Code:

# sudo LD_LIBRARY_PATH=/lib32 ldd epsxe
   linux-gate.so.1 (0xf7733000)
   libncurses.so.5 => /lib32/libncurses.so.5 (0xf76e6000)
   libdl.so.2 => /lib32/libdl.so.2 (0xf76e1000)
   libz.so.1 => /lib32/libz.so.1 (0xf76ca000)
   libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7565000)
   libgtk-x11-2.0.so.0 => /usr/lib32/libgtk-x11-2.0.so.0 (0xf70fc000)
   libgdk-x11-2.0.so.0 => /usr/lib32/libgdk-x11-2.0.so.0 (0xf704b000)
   libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf6ff8000)
   libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf6ec5000)
   libasound.so.2 => /usr/lib32/libasound.so.2 (0xf6ddc000)
   libSDL-1.2.so.0 => /usr/lib32/libSDL-1.2.so.0 (0xf6d96000)
   libSDL_ttf-2.0.so.0 => /usr/lib32/libSDL_ttf-2.0.so.0 (0xf6d8e000)
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf6d73000)
   libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf6d70000)
   libc.so.6 => /lib32/libc.so.6 (0xf6bc4000)
   /lib/ld-linux.so.2 (0xf7734000)
   libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf6b9e000)
   libgmodule-2.0.so.0 => /usr/lib32/libgmodule-2.0.so.0 (0xf6b99000)
   libpangocairo-1.0.so.0 => /usr/lib32/libpangocairo-1.0.so.0 (0xf6b8b000)
   libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf6b85000)
   libatk-1.0.so.0 => /usr/lib32/libatk-1.0.so.0 (0xf6b62000)
   libcairo.so.2 => /usr/lib32/libcairo.so.2 (0xf6a5e000)
   libgdk_pixbuf-2.0.so.0 => /usr/lib32/libgdk_pixbuf-2.0.so.0 (0xf6a39000)
   libgio-2.0.so.0 => /usr/lib32/libgio-2.0.so.0 (0xf68ca000)
   libpangoft2-1.0.so.0 => /usr/lib32/libpangoft2-1.0.so.0 (0xf68b5000)
   libpango-1.0.so.0 => /usr/lib32/libpango-1.0.so.0 (0xf6868000)
   libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf682b000)
   libm.so.6 => /lib32/libm.so.6 (0xf67e8000)
   libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf67dd000)
   libXi.so.6 => /usr/lib32/libXi.so.6 (0xf67cc000)
   libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf67c1000)
   libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf67b4000)
   libXcomposite.so.1 => /usr/lib32/libXcomposite.so.1 (0xf67b0000)
   libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf67ac000)
   libXext.so.6 => /usr/lib32/libXext.so.6 (0xf6799000)
   libffi.so.6 => /usr/lib32/libffi.so.6 (0xf6791000)
   librt.so.1 => /lib32/librt.so.1 (0xf6787000)
   libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf66e4000)
   libXau.so.6 => /usr/lib32/libXau.so.6 (0xf66e0000)
   libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf66d9000)
   libpixman-1.so.0 => /usr/lib32/libpixman-1.so.0 (0xf6662000)
   libpng16.so.16 => /usr/lib32/libpng16.so.16 (0xf662a000)
   libresolv.so.2 => /lib32/libresolv.so.2 (0xf6613000)
   libharfbuzz.so.0 => /usr/lib32/libharfbuzz.so.0 (0xf65b4000)
   libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf658b000)
   libbz2.so.1 => /lib32/libbz2.so.1 (0xf6579000)
   libgraphite2.so.3 => /usr/lib32/libgraphite2.so.3 (0xf655b000)
Back to top
View user's profile Send private message
mmogilvi
n00b
n00b


Joined: 13 May 2011
Posts: 27

PostPosted: Fri Jul 25, 2014 7:53 am    Post subject: Reply with quote

To answer your specific question, the ">>> Regenerating /etc/ld.so.cache..." step of emerging any library essentially runs "ldconfig -X", which you can also run manually.

But the cleaner solution is probably to enable ncurses' "tinfo" USE flag, either globally or with "echo sys-libs/ncurses tinfo >> /etc/portage/package.use". (And/or fix the ebuild dependency for that flag, if you are writing an ebuild for ePSXe.) Although see discussions for bug 452532 and bug 487844, and if you haven't switched to USE=amd_x86_32, I'm not sure if emul-linux supplies libtinfo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum