Subject: Re: one down, one up (ldconfig on i386)
To: Brett Lymn <blymn@baea.com.au>
From: Jonathan Marsden <Jonathan@XC.Org>
List: netbsd-help
Date: 08/20/1997 23:17:50
On 21 Aug 1997, Brett Lymn writes:

> According to Brian H. Trammell:

>> After the ldconfig, the duplicate references disappear. er, what's
>> going on?

> I am guessing that you are using an i386 architecture ... if that is
> the case then the xinit is setuid which means that unless the
> libraries have been ldconfig'ed they will not be used.

On NetBSD/i386 (versions 1.1, 1.2, and 1.2.1), the supplied
/etc/rc.local contains:

      if [ -f /sbin/ldconfig ]; then
	echo 'creating runtime link editor directory cache.'
	ldconfig
      fi 

so that libs are supposed to be ldconfig'ed every time the machine is
booted.  That way, the sysadmin doesn't normally have to think about
this stuff.

If the lack of ldconfig in Brian's problem, perhaps checking whether
his /etc/rc.local really runs ldconfig would be useful?  Say by adding
a -v switch to it and watching the machine boot?

Jonathan
--
Jonathan Marsden   | Internet: jonathan@xc.org  | Making electronic 
1849 N. Wabash Ave.| Phone: +1 (909) 794 1151   | communications work 
Redlands, CA 92374 | FAX:   +1 (909) 794 3016   | reliably for Christian 
USA                | http://www.xc.org/jonathan | missions worldwide