From owner-freebsd-hackers Sun Jan 31 10:51:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03747 for freebsd-hackers-outgoing; Sun, 31 Jan 1999 10:51:18 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA03740 for ; Sun, 31 Jan 1999 10:51:16 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id KAA27373; Sun, 31 Jan 1999 10:51:15 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id KAA07228; Sun, 31 Jan 1999 10:51:15 -0800 (PST) (envelope-from jdp@polstra.com) Date: Sun, 31 Jan 1999 10:51:15 -0800 (PST) Message-Id: <199901311851.KAA07228@vashon.polstra.com> To: asmodai@wxs.nl Subject: Re: ldconfig and libraries Newsgroups: polstra.freebsd.hackers In-Reply-To: Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Jeroen Ruigrok/Asmodai wrote: > > I just want to verify a few things before I go off ranting about broken > stuff in CURRENT. > > are libraries in /usr/lib and /usr/local/lib tied to naming standards? To be recognized by ldconfig, an a.out shared library must have a name that ends with ".so." followed by at least two version numbers, like this: libfoo.so.12.0 It accepts names with > 2 version numbers, but anybody who puts such a library into our code base will be sentenced to a long, slow, painful, suffering death. :-) To be recognized by ldconfig, an ELF shared library must have a name that ends with ".so." followed by exactly one version number, like this: libfoo.so.12 > for example, is this an accepted name for ldconfig: > > libgmodule-1.1.so.12.0 For a.out: yes. For ELF: no. > Also, should a library have special permissions? It just has to be readable. > Every library found by ldconfig in the specified paths should be > reported back with ldconfig -r, right? Only the ones with names that fit the rules above. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message