From owner-freebsd-questions Tue May 7 6: 0:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id 0D7B737B404 for ; Tue, 7 May 2002 05:59:57 -0700 (PDT) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.3/8.12.2) with ESMTP id g47CxuD0073540; Tue, 7 May 2002 14:59:56 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.3/8.12.3/Submit) id g47Cxp9Q073539; Tue, 7 May 2002 14:59:51 +0200 (CEST) Date: Tue, 7 May 2002 14:59:51 +0200 From: Stijn Hoop To: GB Clark Cc: questions@freebsd.org Subject: Re: shared library versioning in FreeBSD Message-ID: <20020507145951.T58355@pcwin002.win.tue.nl> References: <20020506121059.A89646@pcwin002.win.tue.nl> <20020506073021.48a59f9e.gclarkii@vsservices.com> <20020506143634.A56935@pcwin002.win.tue.nl> <20020506095325.7cf41509.gclarkii@vsservices.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="zH41lVBEV8cLJnCl" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020506095325.7cf41509.gclarkii@vsservices.com>; from gclarkii@vsservices.com on Mon, May 06, 2002 at 09:53:25AM -0500 X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --zH41lVBEV8cLJnCl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 06, 2002 at 09:53:25AM -0500, GB Clark wrote: > On Mon, 6 May 2002 14:36:34 +0200 Stijn Hoop wrote: > > On Mon, May 06, 2002 at 07:30:21AM -0500, GB Clark wrote: > > > On Mon, 6 May 2002 12:10:59 +0200 Stijn Hoop wrote: > > > > I was reading http://abicheck.sourceforge.net/intro.html, and I was > > > > wondering why FreeBSD doesn't keep the double digits for dynamic > > > > libraries (eg .so.1.2 instead of .so.1). Is there an online referen= ce to > > > > a discussion about that somewhere? > > >=20 > > > I would say it is because FreeBSD does not change interfaces between = major > > > versions. In otherwords, if you have a libc.so.4 it will work for all > > > programs that require a version 4 library. The internals may change, > > > but the interface does not. If the interface changes, they do a major > > > version bump. > >=20 > > Yes, that's the idea of course. But as described in the URL above, the > > Linux & Solaris guys bump the minor number if the library is still ABI > > compatible, but some additions have been made to the interface. Old > > applications should of course still work in that case, but new applicat= ions > > can make the distinction between the newer and the older version. I can= 't > > find an equivalent 'marker' for that in FreeBSD. >=20 > As I said, if the interface changes, FreeBSD bumps the major version. Hmm. So you're saying there only have been 3 times when there were functions *added* to libc? > > > > Furthermore, is the mechanism to record public symbols between libr= ary > > > > releases, as described in the URL above, also used in FreeBSD? > > > >=20 > > > > I'm referring to the > > > >=20 > > > > PUBLIC_2: { > > > > symbol1, symbol2 > > > > } PUBLIC_1; > > > >=20 > > > > versioning, which somehow should be in the .so. I can't find it with > > > > objdump and friends. [snip] > FreeBSD does not need to due to the way that it is designed. Development > goes on in the current tree. If for some reason they had to change the > interface for lets say libc.4.so (security problem??), they then create a > minor number. Well my point wasn't about *changing* interfaces, but adding to them. I was wondering if there was a marker about that in a FreeBSD .so somewhere, but I guess it doesn't exist. Thanks for the answers! --Stijn --=20 Help Wanted: Telepath. You know where to apply. --zH41lVBEV8cLJnCl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE818/HY3r/tLQmfWcRAjtNAJ9sgorviIckBzc9A2aR7VdT0Lg5pQCgqcFm WB3Lz4eJuntsamC7pJtuMHk= =Whdc -----END PGP SIGNATURE----- --zH41lVBEV8cLJnCl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message