LWN.net Logo

GoboLinux

GoboLinux

Posted Jan 12, 2008 13:05 UTC (Sat) by nix (subscriber, #2304)
In reply to: GoboLinux by dh
Parent article: GoboLinux

Symlinks to shared libraries are picked up by /sbin/ldconfig just fine 
(and thus used by ld-linux.so.2). Back in the glibc 2.2.x days, they 
weren't, so you had to add heaps of entries to /etc/ld.so.conf instead: 
but this was fixed long ago:

2001-05-07  H.J. Lu  <hjl@gnu.org>

        * elf/ldconfig.c (dir_entry): Add ino and dev.
        (add_single_dir): Compare ino and dev to check if 2 directory
        paths are the same or not.  Free entry->path for duplicates.
        (add_dir): Initialize ino and dev for entry.
        (search_dir): Handle symlink to directory.

2003-07-21  HJ Lu  <hongjiu.lu@intel.com>

        * elf/ldconfig.c (search_dir): Treat symlink as regular file
        if it won't point to itself.

2003-08-25  Jakub Jelinek  <jakub@redhat.com>

        * elf/ldconfig.c (search_dir): Treat symlink as regular file
        if it won't point to itself unless it is .so symlink for the 
linker.


(Log in to post comments)

GoboLinux

Posted Jan 14, 2008 21:23 UTC (Mon) by dh (subscriber, #153) [Link]

Hi,

thanks for clarification. Could be that I was wrong about the lib 
problems. Perhaps I remember the switch from a.out to elf or from Irix to 
Linux (which was long before 2001...). I do not install much software this 
way any more as most simply comes with the distributions. And if, I 
usually just make the link in /usr/local/bin by hand.

Best regards,
Dirk

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds