Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2001 04:15:13 -0700
From:      Peter Wemm <peter@wemm.org>
To:        nate@yogotech.com (Nate Williams)
Cc:        tlambert2@mindspring.com, John Baldwin <jhb@FreeBSD.ORG>, Peter Pentchev <roam@orbitel.bg>, arch@FreeBSD.ORG, audit@FreeBSD.ORG
Subject:   Re: new kldpath(8): display/modify the module search path 
Message-ID:  <20010621111513.355F93808@overcee.netplex.com.au>
In-Reply-To: <15151.41572.721434.703837@nomad.yogotech.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Nate Williams wrote:
> > > To me, it seems more sensible to use the same interface that
> > > ldconfig uses.
> > 
> > Noooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!
> > 
> > ldconfig is a serious pain in the ass, ever since the "fix"
> > that made it not look in the linkage or configured directories
> > on a lookup miss.
> > 
> > This is particularly aggregious if you have a "/opt" or some
> > other place where you prefer to install your ports or locally
> > developed software.
> > 
> > Having to reboot to make things work really, really sucks --
> > and that is often necessary if you build code from the net,
> > which FreeBSD has mistakenly included as part os the base
> > system monolith.  OpenSSL, OpenSSH, and the resolver library
> > are three examples that leap lithely to mind.
> 
> Terry, it's simple to not have to reboot.  Many ports already do this,
> but a 'ldconfig -R' tells it to re-scan the known directories to pickup
> new entries, which can be done at any time (as root of course).

For the record, this is for 2.2.x and earlier systems only.  3.0 and above
does not 'scan' the directories with ldconfig and do not create a cache of
any sort.  ldconfig -R has done nothing since 3.0-RELEASE.  Only
'ldconfig -aout -R' actually does something these days.

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010621111513.355F93808>