Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65529 - Add /usr/X11R6/lib64 to LDPATH in /etc/env.d/10xorg
Summary: Add /usr/X11R6/lib64 to LDPATH in /etc/env.d/10xorg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-09-27 06:31 UTC by Johannes Hirte
Modified: 2004-10-12 21:32 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 Johannes Hirte 2004-09-27 06:31:47 UTC
Instead of installing all files/directories to /usr/X11R6/lib64 and creating /usr/X11R6/lib as a symlink, /usr/X11R6/lib is created as a directory, and most files/dir's are installed there. Only X11/~doc, X11/fonts modules and all .so-files are going to lib64. /usr/X11R6/lib64 istn't listed in /etc/ld.so.conf, so X11 and every app depending on xlibs fail to start.

Reproducible: Always
Steps to Reproduce:
1.unemerge xorg-x11
2.remove /usr/X11R6
3.emerge xorg-x11

Actual Results:  
result as discribed above, lib and lib64 are both directories in /usr/X11R6 

Expected Results:  
/usr/X11R6/lib have to be a symlink to /usr/X11R6/lib64
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-27 09:13:55 UTC
Does it work if you export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/X11R6/lib64"?
Comment 2 Johannes Hirte 2004-09-27 09:54:34 UTC
With export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/X11R6/lib64" applications linked against xlibs work again (tested with mc and mplayer), but startx still results in:

X: error while loading shared libraries: libXau.so.6: cannot open shared object
file: No such file or directory
xinit:  Server error.

Without LD_LIBRARY_PATH set I got:

xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory

six times.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-27 11:11:56 UTC
Run `qpkg -l xorg-x11 | grep libXau.so` please. If you don't have qpkg, emerge gentoolkit.
Comment 4 Johannes Hirte 2004-09-27 11:48:16 UTC
jo@theben:~$ qpkg -l xorg-x11 | grep libXau.so
/usr/X11R6/lib64/libXau.so.6.0
/usr/X11R6/lib64/libXau.so.6 -> libXau.so.6.0 1096284827
/usr/X11R6/lib64/libXau.so -> libXau.so.6.0 1096284827
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-10 23:51:10 UTC
Some AMD64 people, could you tell me whether both lib and lib64 should be in LDPATH or just one of them?

Thanks.
Comment 6 Travis Tilley (RETIRED) gentoo-dev 2004-10-11 03:33:42 UTC
eventually lib should hold 32bit libs, but that's a long ways off. i hadnt really thought much about it...

but yeah. the 64bit xorg-x11 should be using lib64 and not lib, since eventually lib should hold 32bit libs. however, the symlink needs to stay in place since not everything will install to lib64. in fact, nothing will unless you use the lib64 profile, and i do NOT suggest using the lib64 profile yet, as half the damn tree will break with it!

so yeah, the lib symlink should eventually be removed, but we just cant do that yet.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-12 21:32:11 UTC
Fixed in files tarball 0.4, applied to >=6.8.0-r1.