Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39945 - bnr2 unable to find libX11.so.6 when run (ldd can't find it either)
Summary: bnr2 unable to find libX11.so.6 when run (ldd can't find it either)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 01:17 UTC by Douglas Mayle
Modified: 2004-05-15 22:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Mayle 2004-01-31 01:17:49 UTC
libX11.so.6 is in /usr/X11R6/lib which is in the ld.so.conf.  I've tried putting it into the LD_LIBRARY_PATH variable, and I've tried making symbolic links inside bnr2's bin and lib directories, but no matter what I do, niether ldd, nor bnr2 are able to find and recognize the library.

Reproducible: Always
Steps to Reproduce:
1. Add ~amd64 to the keywords for any bnr2 ebuild
2. emerge it
3. attemt to run bnr2

Actual Results:  
the program quit because libX11.so.6 was not found

Expected Results:  
Started up
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-03-20 13:51:35 UTC
works here with xfree-4.3.99.902-r2, might be a problem with xfree-4.3.0-r?...

phi root # emerge info
Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-gentoo)
=================================================================
System uname: 2.6.4-gentoo x86_64 4
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm arts artswrappersuid avi berkdb cdr crypt cups dvb dvd dvdr encode esd foomaticdb freetype gdbm gif gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mozilla moznocompose moznoirc mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt qt-mt quicktime readline sdl slang spell ssl tcpd tetex truetype type1 v4l wmf wxwindows xml2 xmms xosd xv zlib"
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-04-07 16:03:42 UTC
install xorg-x11 and report back if the problem still exists for you
Comment 3 Simon Strandman 2004-05-15 06:46:44 UTC
I have the same problem here with libX11.so.0 and xorg-x11!

When I try to start gnome for example I get this error:
gnome-session: error while loading shared libraries: libX11.so.0: cannot open shared object file: No such file or directory

nxsty@isidor nxsty $ ldd /usr/bin/gnome-session | grep libX11
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40039000)
        libX11.so.0 => not found

The strange thing is that the file actually is there:

isidor nxsty# ls /usr/X11R6/lib/libX11*
/usr/X11R6/lib/libX11.a     /usr/X11R6/lib/libX11.so.6
/usr/X11R6/lib/libX11.so    /usr/X11R6/lib/libX11.so.6.2
/usr/X11R6/lib/libX11.so.0

And /usr/X11R6/lib is in /etc/ld.so.conf. But ldconfig wont find it:

isidor nxsty # ldconfig -v | grep libX11
        libX11.so.6 -> libX11.so.6.2

isidor nxsty # strings /etc/ld.so.cache | grep libX11
libX11.so.6
/usr/X11R6/lib/libX11.so.6
libX11.so
/usr/X11R6/lib/libX11.so

First I thought that libX11.so.0 was a broken symlink or something like that but it isn't. I have tried to run revdep-rebuild and it rebuilds everything that depends on libX11.so.0 and I have also tried to rebuild xorg-x11, but the problem remains!
Comment 4 Simon Strandman 2004-05-15 06:48:02 UTC
I forgot:

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6)
=================================================================
System uname: 2.6.6 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -mmmx -msse -mfpmath=sse -m3dnow -pipe -fomit-frame-pointer -fforce-addr -ffast-math -frerun-loop-opt -funroll-loops -fprefetch-loop-arrays -fPIC -DPIC"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mmmx -msse -mfpmath=sse -m3dnow -pipe -fomit-frame-pointer -fforce-addr -ffast-math -frerun-loop-opt -funroll-loops -fprefetch-loop-arrays -fPIC -DPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo ftp://ftp.rhnet.is/pub/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.rhnet.is/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb cdr crypt dga directfb dvd dvdr encode esd f77 fbcon foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib java jpeg libg++ libwww linguas_sv mad mikmod mmx mng motif mozilla mpeg ncurses nls nptl objc offensive oggvorbis opengl pam pdflib perl png pnp python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tiff truetype unicode usb x86 xine xinerama xml2 xmms xv xvid zlib"
Comment 5 SpanKY gentoo-dev 2004-05-15 22:01:41 UTC
Simon: your bug is unrelated ... i dont know what that .so.0 is but ive never seen it on any of my systems