From owner-freebsd-hackers Wed Dec 4 17:39: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 723C937B401 for ; Wed, 4 Dec 2002 17:39:03 -0800 (PST) Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id C443643EC5 for ; Wed, 4 Dec 2002 17:39:02 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0353.cvx40-bradley.dialup.earthlink.net ([216.244.43.98] helo=mindspring.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18Jkya-0007jG-00; Wed, 04 Dec 2002 17:38:54 -0800 Message-ID: <3DEEADDE.EB188490@mindspring.com> Date: Wed, 04 Dec 2002 17:37:34 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Reinier Kleipool Cc: freebsd-hackers@freebsd.org Subject: Re: question about shared libraries and the library cache. References: <004001c29bd9$be04cf70$5201a8c0@ovs.kleipool.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Reinier Kleipool wrote: > but it does not put some files in the hints cache: (Files listed above > deleted by hand from the listing below) > > root@mail:~# ls -l /usr/local/lib/*.so* | grep -v "^l" > -rwxr-xr-x 1 root wheel 699643 Dec 1 11:12 /usr/local/lib/libdb-4.1.so* > -rwxr-xr-x 1 root wheel 699643 Nov 29 11:32 /usr/local/lib/libdb4_1.so* > -rwxr-xr-x 1 root wheel 800336 Dec 1 11:13 /usr/local/lib/libdb_cxx-4.1.so* These are shared libraries, but they do not have version numbers associated with them (*.so.). You have built them incorrectly; they should be symlinked to a versioned library of the same name without the version. > -r-xr-xr-x 1 root wheel 32216 Nov 23 16:53 /usr/local/lib/pam_ldap.so* > -r--r--r-- 1 root wheel 10581 Nov 23 16:50 /usr/local/lib/pam_smb_auth.so These are *not* shared libraries. They are shared objects, which are intended to be dlopen'ed by the PAM library, as one of the allowed module types. See /etc/pam.conf. > My question is now: "Why those files not???" > In my opinion it has something to do with the "format" of those files. It > has nothing to do with reboots or upgrades. (it is a clean install of > FreeBSD 4.7) Also "ldconfig /usr/lib /usr/local/lib" should create a clean > new hintsfile with all libraries in those directories. > Any ideas about the way you generate good files and bad libraries??? See above. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message