Bruce Dubbs wrote:
Jim Gifford wrote:
Bruce Dubbs wrote:
Jim Gifford wrote:
.so files belong in /usr/lib .so.version belong in /lib.
I'm not sure what you are saying here Jim. If the library file
is either referenced as a symlink or a regular file by an excutable file in /bin or /sbin, it needs to be in /lib. There should be no links from /lib to a location outside of /lib. The rule here is that the programs must be execuatable if /usr is not mounted.
-- Bruce
I had a long discussion with a lot of people on this issue.
The actualy libaries get installed into /lib, but the symlinks for those libraries (.so) are in /usr/lib. Tushar and others corrected me on this issue in the past. Look in lfs-dev from when I changed the shadow and readline to use --libdir.
If /usr is not mounted and an executable needs a .so library defined by one of those symlinks placed on /usr/lib/, how does the program find it?
-- Bruce
It's part of the ld-2.3.4.so file, it checks the ld.so.cache file.
To see where the symlink was created, and have a dynamic link that's valid. That's why most packages run ldconfig after the library install so the correct file could be found.
Here is a little information I found */lib/ld-linux.so.** ELF dynamic linker/loader
*/etc/ld.so.cache* File containing a compiled list of directories in which to search for libraries and an ordered list of candidate libraries.
------
[EMAIL PROTECTED] [EMAIL PROTECTED]
LFS User # 2577 Registered Linux User # 299986
-- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
