From owner-freebsd-hackers Sat Jul 8 13:11:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from racine.cybercable.fr (racine.cybercable.fr [212.198.0.201]) by hub.freebsd.org (Postfix) with SMTP id BDAE337B569 for ; Sat, 8 Jul 2000 13:11:10 -0700 (PDT) (envelope-from mhenrion@cybercable.fr) Received: (qmail 7528603 invoked from network); 8 Jul 2000 20:11:04 -0000 Received: from r121m199.cybercable.tm.fr (HELO cybercable.fr) ([195.132.121.199]) (envelope-sender ) by racine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 8 Jul 2000 20:11:04 -0000 Message-ID: <39678B9C.C9166C11@cybercable.fr> Date: Sat, 08 Jul 2000 22:14:20 +0200 From: Maxime Henrion X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: ldconfig behaviour when no parameters are given Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi everybody, When ldconfig is invoked without any parameters, the shared library cache is reseted to the contents of /usr/lib only. I think such a behaviour isn't very useful, especially when one knows that a lot of people come to FreeBSD after having used Linux. The first time they get an error message like "foo.so not found", they, nearly automatically, run ldconfig and so screw up their shared library cache. Is there a special reason why ldconfig behaves this way ? And is there any application that rely on that behaviour ? This would at least estonish me. That's why, i wanted to suggest that ldconfig prints a usage screen when invoked without parameters, or else that it performs a default and safe action, like a refresh (ldconfig -R). If it happens that what I say make sense, and that the two requirements above are met (see the two questions), i'll be happy to submit a patch. Waiting for your comments, - Maxiime Henrion To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message