From owner-freebsd-questions@FreeBSD.ORG Mon Jan 7 15:32:46 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E2BD3CAB for ; Mon, 7 Jan 2013 15:32:46 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 7B1E812D for ; Mon, 7 Jan 2013 15:32:46 +0000 (UTC) Received: from rufus.webfusion.com (mail.heartinternet.co.uk [79.170.40.31]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.6/8.14.5) with ESMTP id r07FWOiZ080850 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 7 Jan 2013 15:32:36 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.7.3 smtp.infracaninophile.co.uk r07FWOiZ080850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1357572756; bh=m6fwImeHNW8FptVPFEcFlLAEB3ijpOAqmk06ykmfep4=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Mon,=2007=20Jan=202013=2015:32:21=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20Unreferenced=20Libraries?|Referen ces:=20|In-Reply-To:=20; b=j4i6IiQnsxia+3URqANmouez4k1xqX8O7cfI+h+pCLnPi0Os6odG7KNHRjsQ73zKQ uhH3ONWtPyVhP/eF2J7VfWCTR7rF0MGXmyuCC9J4zBaMaAnU68kOx2rPz0Ij/YU8S2 /ARlzyhW7p15dQh2sDgpIFry/KNznpt6JQk5FVc8= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host mail.heartinternet.co.uk [79.170.40.31] claimed to be rufus.webfusion.com Message-ID: <50EAEA85.7020704@infracaninophile.co.uk> Date: Mon, 07 Jan 2013 15:32:21 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Unreferenced Libraries? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2013 15:32:46 -0000 On 07/01/2013 14:27, Walter Hurry wrote: > 9.1-RELEASE on amd64. > > libchk reports the following libraries (among others) as unreferenced: > > /usr/lib/libBlocksRuntime.so.0 > /usr/lib/libform.so.5 > /usr/lib/libformw.so.5 > /usr/lib/libgpib.so.3 > /usr/lib/libgssapi_ntlm.so.10 > /usr/lib/libgssapi_spnego.so.10 > /usr/lib/libhistory.so.8 > /usr/lib/liblwres.so.80 > /usr/lib/libmenu.so.5 > /usr/lib/libmenuw.so.5 > /usr/lib/libmilter.so.5 > /usr/lib/libpanelw.so.5 > /usr/lib/librpcsec_gss.so.1 > /usr/lib/libstdbuf.so.1 > /usr/lib/libsupc++.so.1 > /usr/lib/libthread_db.so.3 > > All these are part of base. > > I note that in each case there is a .so symlink pointing to the > relevant library, as is, I believe, accepted best practice. Yes, that's right. > Would I be correct in assuming that the reason libchk is reporting these > as unreferenced is that everything which is actually using them is > referencing the symlink? Actually, it is probably reporting them because nothing is actually using them. libmilter.so.5 for instance won't have any consumers in the base system (not even /usr/libexec/sendmail/sendmail) but it is provided in case you want to install any mail filters from ports or otherwise. > Or is libchk clever enough to resolve symlinks, and there is a different > reason? The shlib sym-link without the ABI version number is generally only used at compile-time. Once the application has been linked, the dynamic loader will require the shared library with appended ABI version. There are instances of things that look at first sight like a shared library, but that don't have an ABI version no. In general, these are not in fact shared libraries, but loadable modules used by various specific programs. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk