From owner-freebsd-current Thu Dec 3 06:18:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA12642 for freebsd-current-outgoing; Thu, 3 Dec 1998 06:18:33 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from sawmill.grauel.com (sawmill.grauel.com [199.233.104.39]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA12636 for ; Thu, 3 Dec 1998 06:18:30 -0800 (PST) (envelope-from rjk@sawmill.grauel.com) Received: (from rjk@localhost) by sawmill.grauel.com (8.8.8/8.8.7) id JAA25411; Thu, 3 Dec 1998 09:19:12 -0500 (EST) From: "Richard J. Kuhns" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <13926.40416.596095.477350@sawmill.grauel.com> Date: Thu, 3 Dec 1998 09:19:12 -0500 (EST) To: Randall Hopper Cc: current@FreeBSD.ORG Subject: Bugs/features w/ "ldconfig" (3.0-RELEASE) In-Reply-To: <19981202185633.A868@pagesz.net> References: <19981129102800.A1657@pagesz.net> <19981202185633.A868@pagesz.net> X-Mailer: VM 6.56 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to help John with documentation for the ELF stuff, so I'll make a couple of comments... Randall Hopper writes: > 1) You can completely re-initialize the LD path for ELF, but not for AOUT. > ... > ... > It seems that ldconfig won't let you remove /usr/lib/aout. Why? > > =============================================================================== Well, ldconfig is documented to always include the standard search directories (/usr/lib or /usr/lib/aout) unless you tell it not to (via `-s'), so it looks like the bug is in the -elf part. > 2) In /etc/rc.conf, we have: > > $ldconfig_paths & $ldconfig_paths_aout > > but we also have: > > /etc/ld.so.conf & /etc/ld-elf.so.conf > > (as documented in the ldconfig(8) man page) as places to store LD paths. > So: > > a) Which should be used? > b) What arguments cause "ldconfig" to read the /etc/ld*.so.conf files? > > It would make sense to have one place to store this information. > It'd also be useful to have simple ldconfig arguments that re-read this > information, wherever it is stored (something like "ldconfig -i"). > Pretend you've never seen /etc/ld*.so.conf; it should never have been mentioned, has nothing to do with ldconfig, and the man page will be updated soon. > and a few questions: > > 3) Why aren't these two directories in the default $ldconfig_paths_aout (AOUT) > in /etc/rc.conf? AFAIK, they're all AOUT: > > /usr/lib/aout /usr/lib/compat > I don't know about /usr/lib/compat, but as you noticed in 1) above, /usr/lib/aout is always there unless you specifically ask for it not to be. > 4) Why is this directory in the default $ldconfig_paths (ELF)? It's all AOUT: > > /usr/lib/compat > No idea. > > I'd appreciate any insights. Should the defs in /etc/rc.conf possibly be > changed to: > > ldconfig_paths="`cat /etc/ld-elf.so.conf`" > ldconfig_paths_aout="`cat /etc/ld.so.conf`" > See the answer to 2). -- Richard Kuhns rjk@grauel.com PO Box 6249 Tel: (765)477-6000 \ 100 Sawmill Road x319 Lafayette, IN 47903 (800)489-4891 / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message