From owner-freebsd-current Wed Dec 2 15:56:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA23026 for freebsd-current-outgoing; Wed, 2 Dec 1998 15:56:01 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nina.pagesz.net (nina.pagesz.net [208.194.157.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA22995 for ; Wed, 2 Dec 1998 15:55:56 -0800 (PST) (envelope-from rhh@pagesz.net) Received: from stealth.dummynet. (juana-9.pagesz.net [208.213.126.9]) by nina.pagesz.net (8.8.7/8.8.7) with ESMTP id SAA15544 for ; Wed, 2 Dec 1998 18:56:05 -0500 Received: (from rhh@localhost) by stealth.dummynet. (8.9.1/8.8.8) id SAA01355; Wed, 2 Dec 1998 18:56:33 -0500 (EST) (envelope-from rhh) Message-ID: <19981202185633.A868@pagesz.net> Date: Wed, 2 Dec 1998 18:56:33 -0500 From: Randall Hopper To: current@FreeBSD.ORG Subject: Bugs/features w/ "ldconfig" (3.0-RELEASE) Mail-Followup-To: current@FreeBSD.ORG References: <19981129102800.A1657@pagesz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981129102800.A1657@pagesz.net>; from Randall Hopper on Sun, Nov 29, 1998 at 10:28:00AM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG No response, so let me try once more before filing a PR. Two things I notice that are rather strange. Are these bugs? =============================================================================== 1) You can completely re-initialize the LD path for ELF, but not for AOUT. An example to illustrate: # ldconfig -elf / # ldconfig -elf -r /var/run/ld-elf.so.hints: search directories: / # ldconfig -aout / # ldconfig -aout -r /var/run/ld.so.hints: !! ===> search directories: /usr/lib/aout:/ 0:-lalias.2.5 => /usr/lib/aout/libalias.so.2.5 1:-latm.2.0 => /usr/lib/aout/libatm.so.2.0 ... 37:-lstdc++.2.0 => /usr/lib/aout/libstdc++.so.2.0 It seems that ldconfig won't let you remove /usr/lib/aout. Why? =============================================================================== 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"). =============================================================================== 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 4) Why is this directory in the default $ldconfig_paths (ELF)? It's all AOUT: /usr/lib/compat =============================================================================== 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`" Thanks, Randall Hopper To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message