From owner-freebsd-current Wed Sep 4 21:42:20 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BF6137B400; Wed, 4 Sep 2002 21:42:17 -0700 (PDT) Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2083243E42; Wed, 4 Sep 2002 21:42:13 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g854gA8Z093244; Thu, 5 Sep 2002 00:42:11 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <3D770E8E.6030600@hotmail.com> References: <3D770E8E.6030600@hotmail.com> Date: Thu, 5 Sep 2002 00:42:09 -0400 To: walt , freebsd-current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: gcore/elfcore.c broken? Cc: David Malone Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 12:58 AM -0700 9/5/02, walt wrote: >cc -O -pipe -mcpu=pentiumpro -c /usr/src/usr.bin/gcore/elfcore.c >/usr/src/usr.bin/gcore/elfcore.c: In function `elf_coredump': >/usr/src/usr.bin/gcore/elfcore.c:128: syntax error before "nleft" >/usr/src/usr.bin/gcore/elfcore.c:131: `nleft' undeclared (first use >in this function) >/usr/src/usr.bin/gcore/elfcore.c:131: (Each undeclared identifier is >reported only once >/usr/src/usr.bin/gcore/elfcore.c:131: for each function it appears in.) I suspect it was broken as part of the commit: dwmalone 2002/09/04 16:29:10 PDT Log: ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 Revision Changes Path ... ... ... 1.11 +10 -9 src/usr.bin/gcore/elfcore.c 1.28 +3 -1 src/usr.bin/gcore/gcore.c 1.6 +3 -3 src/usr.bin/gcore/md-nop.c ... ... ... I think it just needs to #include if you want to try a quick fix so you can finish the buildworld. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message