Date: Thu, 10 Sep 1998 22:05:32 GMT From: dmaddox@scsn.net (Donald J. Maddox) To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/7889: move_aout_libs.sh doesn't use ldconfig correctly. Message-ID: <199809102205.WAA14662@rhiannon.scsn.net>
next in thread | raw e-mail | index | archive | help
>Number: 7889
>Category: misc
>Synopsis: move_aout_libs.sh doesn't use ldconfig correctly.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 10 19:10:01 PDT 1998
>Last-Modified:
>Originator: Donald J. Maddox
>Organization:
>Release: FreeBSD 3.0-CURRENT i386
>Environment:
FreeBSD rhiannon.scsn.net 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Mon Sep 7 13:22:29 GMT 1998 root@rhiannon.scsn.net:/usr/src/sys/compile/RHIANNON i386
>Description:
Recent changes to the ldconfig command require that the -aout
switch be used when configuring the search path for aout libs. The
src/tools/tools/upgrade/move_aout_libs.sh script moves libs, then rebuilds
the lib search path using ldconfig; however, it uses ldconfig without the
-aout switch, and on systems where ELF is the default objformat, this only
succeeds in building a bogus ELF lib search path, and doesn't affect the
aout lib search path at all.
>How-To-Repeat:
# sh /usr/tools/tools/upgrade/move_aout_libs.sh /usr/X11R6/lib /usr/local/lib
>Fix:
I'm not sure if this tool is ever intended to be used on
non-current systems or not... If it is then a few conditionals will
need to be added to this patch:
--- /usr/src/tools/tools/upgrade/move_aout_libs.sh Wed Sep 9 05:28:18 1998
+++ move_aout_libs.sh Thu Sep 10 21:45:33 1998
@@ -32,7 +32,7 @@
else
echo "Creating directory $dir/aout"
mkdir $dir/aout
- ldconfig -m $dir/aout
+ ldconfig -aout -m $dir/aout
fi
fname=${file#$dir/}
if test -f $dir/aout/$fname; then
@@ -63,7 +63,7 @@
if test $answer = "y"; then
echo Overwriting $dir/aout/$fname with $file
mv $file $dir/aout/$fname
- ldconfig -R
+ ldconfig -aout -R
else
echo "You need to move $file out of $dir because that's an elf directory"
fi
@@ -71,7 +71,7 @@
else
echo Move $fname from $dir to $dir/aout
mv $file $dir/aout/$fname
- ldconfig -R
+ ldconfig -aout -R
fi
return
}
>Audit-Trail:
>Unformatted:
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?199809102205.WAA14662>
