From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17690 invoked by alias); 16 Aug 2007 21:17:03 -0000 Received: (qmail 17664 invoked by uid 22791); 16 Aug 2007 21:17:02 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Aug 2007 21:16:52 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l7GLGoZH028240 for ; Thu, 16 Aug 2007 17:16:50 -0400 Received: from gateway.sf.frob.com (vpn-14-158.rdu.redhat.com [10.11.14.158]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l7GLGncX029158; Thu, 16 Aug 2007 17:16:50 -0400 Received: from magilla.localdomain (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id B1F31357B; Thu, 16 Aug 2007 14:16:48 -0700 (PDT) Received: by magilla.localdomain (Postfix, from userid 5281) id 8405F4D0461; Thu, 16 Aug 2007 14:16:48 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Jakub Jelinek Cc: Ulrich Drepper , Glibc hackers Subject: Re: [PATCH] Fix checking of ld.so undefined symbols on sparc64 In-Reply-To: Jakub Jelinek's message of Thursday, 16 August 2007 22:33:51 +0200 <20070816203351.GD2279@sunsite.mff.cuni.cz> X-Zippy-Says: You should all JUMP UP AND DOWN for TWO HOURS while I decide on a NEW CAREER!! Message-Id: <20070816211648.8405F4D0461@magilla.localdomain> Date: Thu, 16 Aug 2007 21:17:00 -0000 Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00030.txt.bz2 > On Thu, Aug 16, 2007 at 01:23:03PM -0700, Roland McGrath wrote: > > Might as well just use { print; exit 2 } in the awk. > > Well, that would print just one line, we want to see all undefined > symbols, don't we? > But > awk '($7 ~ /^UND(|EF)$/ && $1 != "0:" && $4 != "REGISTER") { print; p=1 } END { exit p != 0 }' > could work... Sure. I just meant no need for the cmp when using awk.