From owner-freebsd-hackers Sun Dec 1 8: 0:18 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 1391637B401 for ; Sun, 1 Dec 2002 08:00:16 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id DDF8543EC2 for ; Sun, 1 Dec 2002 08:00:11 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 29777 invoked by uid 1000); 1 Dec 2002 15:59:56 -0000 Date: Sun, 1 Dec 2002 17:59:56 +0200 From: Peter Pentchev To: Terry Lambert Cc: Reinier Kleipool , freebsd-hackers@freebsd.org Subject: Re: question about shared libraries and the library cache. Message-ID: <20021201155956.GA28451@straylight.oblivion.bg> Mail-Followup-To: Terry Lambert , Reinier Kleipool , freebsd-hackers@freebsd.org References: <000001c2991d$05083340$5201a8c0@ovs.kleipool.org> <3DE9E878.D49AC019@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <3DE9E878.D49AC019@mindspring.com> User-Agent: Mutt/1.5.1i 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 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 01, 2002 at 02:46:16AM -0800, Terry Lambert wrote: > Reinier Kleipool wrote: > > I have a question about shared libraries. I have compiled a new libra= ry, > > and installed it in /usr/local/lib. If I then ask ldconfig(8) to update= s its > > hints file, the new library is not listed in the hints file. In > > /usr/local/lib I see two other libraries that also are not listed: > > pam_ldap.so pam_smb_auth.so. > >=20 > > My question: What is so special about these libraries that they are n= ot > > listed in the ldconfig hints files? And for my own library: What do I n= eed > > to do to make my own library listed in ldconfig? Are there special ld(1) > > flags needed to get it listed? >=20 > You have to add /usr/local/lib to the ldconfig search path, e.g.: >=20 > ldconfig -m /usr/local/lib >=20 > If you want them to be there at boot time, you need to add: >=20 > ldconfig_paths=3D"/usr/lib /usr/local/lib" >=20 > in /etc/rc.conf. I think that /etc/defaults/rc.conf's ldconfig_paths variable has contained /usr/local/lib since at least February 1999, which is the start of the src/etc/defaults/rc.conf CVS history. Thus, all you need to worry about is running ldconfig(8) by hand, in which case you should not forget /usr/X11R6/lib, /usr/local/lib, and any other library directories where ports might have installed stuff, such as MySQL's /usr/local/lib/mysql/. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 When you are not looking at it, this sentence is in Spanish. --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE96jH87Ri2jRYZRVMRAvUeAKDA4DYAOo+WZ54Or5lxBTRqzzU0OACfbUUg Qljg00yy2d2tlGxBcFlYJiY= =xEBo -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message