Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Dec 2002 17:37:34 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Reinier Kleipool <Reinier@kleipool.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: question about shared libraries and the library cache.
Message-ID:  <3DEEADDE.EB188490@mindspring.com>
References:  <004001c29bd9$be04cf70$5201a8c0@ovs.kleipool.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.<version number>).  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DEEADDE.EB188490>