Subject: bin/7146: ld.elf_so default object search path inconsistency
To: None <gnats-bugs@gnats.netbsd.org>
From: Klaus Klein <kleink@ira.uka.de>
List: netbsd-bugs
Date: 03/13/1999 15:40:14
>Number: 7146
>Category: bin
>Synopsis: ld.elf_so default object search path inconsistency
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 13 06:50:01 1999
>Last-Modified:
>Originator: Klaus Klein
>Organization:
Frobozz Magic Standards Company
>Release: any
>Environment:
MI
>Description:
ld.elf_so is configured to use a default shared object search path
of "/usr/lib:/usr/local/lib". This is bogus in two ways:
1) unlike ld.elf_so, ld.aout_so is configured to use a default
shared object search path of "/usr/lib" only, and has been so
~forever, and
2) the /usr/local hierarchy, albeit taken into consideration by
NetBSD.dist, is not actually supported by NetBSD in any manner
(see also the lenghty discussion on <tech-userlevel@netbsd.org>
regarding its proposed removal from NetBSD.dist).
I propose the removal of /usr/local/lib from the default search path,
and will proceed unless there are reasonable objections.
>How-To-Repeat:
Code inspection.
>Fix:
Index: rtld.h
===================================================================
RCS file: /cvsroot/src/libexec/ld.elf_so/rtld.h,v
retrieving revision 1.8
diff -c -r1.8 rtld.h
*** rtld.h 1999/03/01 16:40:07 1.8
--- rtld.h 1999/03/13 14:23:41
***************
*** 41,47 ****
#include "rtldenv.h"
#include "link.h"
! #define RTLD_DEFAULT_LIBRARY_PATH "/usr/lib:/usr/local/lib"
#if 0
#define SVR4_LIBDIR "/usr/lib"
--- 41,47 ----
#include "rtldenv.h"
#include "link.h"
! #define RTLD_DEFAULT_LIBRARY_PATH "/usr/lib"
#if 0
#define SVR4_LIBDIR "/usr/lib"
>Audit-Trail:
>Unformatted: