Date: Sat, 31 Oct 1998 17:50:00 -0800 (PST) From: Peter Hawkins <thepish@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.ORG Subject: Re: conf/8517: rc.conf/rc fails to set ldconfig -aout Message-ID: <199811010150.RAA11749@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/8517; it has been noted by GNATS.
From: Peter Hawkins <thepish@FreeBSD.ORG>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811010150.RAA11749>
