This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: ldconfig.c considers ld.so.conf entries before /lib,/usr/lib
- To: Dirk Eddelbuettel <edd at debian dot org>
- Subject: Re: PATCH: ldconfig.c considers ld.so.conf entries before /lib,/usr/lib
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 29 Aug 2001 20:34:34 -0700
- Cc: libc-alpha at sources dot redhat dot com, Ben Collins <bcollins at debian dot org>, Camm Maguire <camm at enhanced dot com>
- References: <email@example.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Dirk Eddelbuettel <firstname.lastname@example.org> writes:
> ldconfig -v [from Debian's libc6_2.2.4-1 package] reads /lib and /usr/lib
> before it considers the directories in /etc/ld.so.conf. This is in conflict
> with ld.so(8) as well as ldconfig(8).
It's completely irrelevant what the man pages say. If they are not in
line with the implementation it's the implementation setting the
The current way ldconfig works is how it worked ever since. There is
no reason to change it since this will have negative effects and might
suddenly change the behavior of people's systems.
If you depend on the order ldconfig searches directories you are doing
something wrong. This is no tool to resolve conflicts. There never
should be any conflicts since it's not possible to overwrite whatever
decision ld.so makes. Solve it explicitly in the program (or via
shell script wrappers setting LD_LIBRARY_PATH or using LD_PRELOAD).
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------