From owner-freebsd-stable@FreeBSD.ORG Mon Apr 5 18:52:08 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A65A1065679 for ; Mon, 5 Apr 2010 18:52:08 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 512F98FC14 for ; Mon, 5 Apr 2010 18:52:08 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA" (verified OK)) (Authenticated sender: imb) by sarah.protected-networks.net (Postfix) with ESMTPSA id F25D360D2; Mon, 5 Apr 2010 14:52:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1270493527; bh=25KE4khgssZli+1bO9L89gr6LS2TupdyJPw6/h7vFv4=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=qHh2XO+3/pHMT4PF1L1iF52ICyLRE/4MTrt1OfYVYV/W5T9uGRXpQLtEY4WwIP3BN eDLQPtDCqrBWmZM1Ob963oPAnV5HdtNQmnaxaOcrcXEEhyyxzdIcKtKwq9VeBC4 DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=jVeTWOybmlMpFLNiip+5xZGPz+Zy6rsF/7wE42FIjT/IGcW/vukr4Z8CQ6AgniJXj sBxPEHFqVVZ9JfY849LYzXDrteRpY2jJRea+GrNJMuNLk2OEqJfUWQWCpJydnGX Message-ID: <4BBA3152.9010506@protected-networks.net> Date: Mon, 05 Apr 2010 14:52:02 -0400 From: Michael Butler User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: Garrett Cooper References: <4BBA2D66.5060702@gwdg.de> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: ldd manpage - example does not work X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2010 18:52:08 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/05/10 14:40, Garrett Cooper wrote: > On Mon, Apr 5, 2010 at 11:35 AM, Rainer Hurling wrote: >> The example looks as follows: >> >> find . -type f | xargs -n1 file -F | grep ELF | cut -f1 -d' ' | xargs ldd -f >> '%A %o\n' | grep libc.so.6 [ .. snip .. ] > 1. The file(1) usage looks incorrect (I get a lot of messages like the > following): > > Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] > [-m magicfiles] file... > file -C -m magicfiles > Try `file --help' for more information. > > 2. It's no longer libc.so.6 for many versions of FreeBSD; it can > potentially be libc.so.7... Try .. find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' \ | xargs ldd -f '%A %o\n' | grep libc.so.[67] ;-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAku6MVIACgkQQv9rrgRC1JLrXgCZAauZv2h8SrqkKdJNL5Xpv9KN ml8An20zgpbjrJVZ2XdLc6/HVch69f3w =sBOs -----END PGP SIGNATURE-----