Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2002 00:42:09 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        walt <wa1ter@hotmail.com>, freebsd-current@FreeBSD.ORG
Cc:        David Malone <dwmalone@FreeBSD.ORG>
Subject:   Re: gcore/elfcore.c broken?
Message-ID:  <p05111703b99c8e488287@[128.113.24.47]>
In-Reply-To: <3D770E8E.6030600@hotmail.com>
References:  <3D770E8E.6030600@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdint.h>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111703b99c8e488287>