From owner-freebsd-stable@FreeBSD.ORG Mon Apr 5 18:40:35 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 142EC106566B for ; Mon, 5 Apr 2010 18:40:35 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.221.175]) by mx1.freebsd.org (Postfix) with ESMTP id C38CC8FC1B for ; Mon, 5 Apr 2010 18:40:34 +0000 (UTC) Received: by qyk5 with SMTP id 5so4838678qyk.3 for ; Mon, 05 Apr 2010 11:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=eRj5+6xsTM0hdKH747BGYSVaZDMOF4ADTRcH2c5RdUk=; b=NeeuTKes/csHzMsUAAfeTnRctBC13L3+hbiJ0iXI12il5SDKAmwzClThXyr51+1n/k TA6uTgj0mOuEX97yCuhme4+5Ei/sA9Ra53sIj4kFnpICoqnDuDrVQdRrHrac/PJcykSr hyr09PgIDchiEQ/bDhQPszVahPXzcLJQ+eEUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xf/Gkrk8Pj7ddwSB1gkcO9aHCO01wj+WItBy5U6aJ70ytw8M7qppRcJSPcmk0/SHBi Zyys9VldJjQlYCCedcFU8IXXGhfJ+hDlGSWLwIN/wW50beEs48dy0vIUACBrAGQ6IlXv LpTaZsg4ak8+W4/35G7/LREFx5P8Gl02gA5qk= MIME-Version: 1.0 Received: by 10.229.33.72 with HTTP; Mon, 5 Apr 2010 11:40:32 -0700 (PDT) In-Reply-To: <4BBA2D66.5060702@gwdg.de> References: <4BBA2D66.5060702@gwdg.de> Date: Mon, 5 Apr 2010 11:40:32 -0700 Received: by 10.229.38.69 with SMTP id a5mr2393419qce.15.1270492832295; Mon, 05 Apr 2010 11:40:32 -0700 (PDT) Message-ID: From: Garrett Cooper To: Rainer Hurling Content-Type: text/plain; charset=ISO-8859-1 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:40:35 -0000 On Mon, Apr 5, 2010 at 11:35 AM, Rainer Hurling wrote: > The manpage for ldd(1) gives a nice example of finding binaries, which link > against a given library, see > > http://www.freebsd.org/cgi/man.cgi?query=ldd&apropos=0&sektion=0&manpath=FreeBSD+8.0-RELEASE&format=html > > > 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 > > > Unfortunately this example does not work for me. Is seems that the part with > xargs does not output anything and so is the showstopper (?) > > It would be nice if someone could give me some advice what is wrong here. 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... HTH, -Garrett