From owner-freebsd-stable@FreeBSD.ORG Mon Apr 5 20:10: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 F3E87106566C for ; Mon, 5 Apr 2010 20:10:07 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id AF0848FC25 for ; Mon, 5 Apr 2010 20:10:00 +0000 (UTC) Received: from p578b68b8.dip0.t-ipconnect.de ([87.139.104.184] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Nysbx-0006PM-6l; Mon, 05 Apr 2010 22:09:29 +0200 Message-ID: <4BBA4378.5040402@gwdg.de> Date: Mon, 05 Apr 2010 22:09:28 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.1.9) Gecko/20100405 Thunderbird/3.0.4 MIME-Version: 1.0 To: Michael Butler References: <4BBA2D66.5060702@gwdg.de> <4BBA3152.9010506@protected-networks.net> In-Reply-To: <4BBA3152.9010506@protected-networks.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: Garrett Cooper , 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 20:10:08 -0000 Thank you very much for your answers! On 05.04.2010 20:52 (UTC+1), Michael Butler wrote: > -----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... I want to create a list of binaries, which are linked against the old libz.so.5 and must be upgraded ... find /usr/local/ -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %o\n' | grep libz.so.5 > ~/libz.so.5.txt > > 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-----