From owner-freebsd-bugs Sat Oct 31 17:50:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18106 for freebsd-bugs-outgoing; Sat, 31 Oct 1998 17:50:00 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18101 for ; Sat, 31 Oct 1998 17:49:59 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA11749; Sat, 31 Oct 1998 17:50:00 -0800 (PST) Date: Sat, 31 Oct 1998 17:50:00 -0800 (PST) Message-Id: <199811010150.RAA11749@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Peter Hawkins Subject: Re: conf/8517: rc.conf/rc fails to set ldconfig -aout Reply-To: Peter Hawkins Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/8517; it has been noted by GNATS. From: Peter Hawkins To: root@gli.pn.wagsky.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: conf/8517: rc.conf/rc fails to set ldconfig -aout Date: Sun, 1 Nov 1998 12:46:09 +1100 (EST) > # Default the a.out ldconfig path, in case the system's > # /etc/rc.conf hasn't been updated. > : ${ldconfig_paths_aout=${ldconfig_paths}} > _LDC=/usr/lib/aout > for i in $ldconfig_paths_aout; do > if test -d $i; then > _LDC="${_LDC} $i" > fi > done > echo 'setting a.out ldconfig path:' ${_LDC} > ldconfig -aout ${_LDC} > >Executing ldconfig manually results in: > >bash-2.02# ldconfig -elf /usr/lib/compat /usr/X11R6/lib /usr/local/lib >bash-2.02# ldconfig -aout /usr/lib/compat/aout /usr/X11R6/lib/aout \ >/usr/local/lib/aout >ldconfig: /usr/local/lib/aout: No such file or directory 2 points: 1. you should remove /usr/local/lib/aout from your rc.config if you don't have such a directory 2. if you take a look at the syntax in rc (above) it tests each directory in your ldconfig_paths_aout string before appending them to _LDC anyway! in short, your rc will execute the ldconfig command as: ldconfig -aout /usr/lib/compat/aout /usr/X11R6/lib/aout You can verify this yourself by taking a cut-down version of rc and executing it with -x. You'll see: [...] + : /usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aout + _LDC=/usr/lib/aout + test -d /usr/lib/compat/aout + _LDC=/usr/lib/aout /usr/lib/compat/aout + test -d /usr/X11R6/lib/aout + _LDC=/usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout + test -d /usr/local/lib/aout + echo setting a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aout setting a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aout + ldconfig -aout /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout >as /usr/local/lib/aout apparently is not created by the 'make world' >process. Actually, it is if you use make aout_to_elf and have aout libs to be moved. Peter (thepish@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message