From owner-freebsd-sparc64@FreeBSD.ORG Sat Jul 12 09:07:47 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A98E37B401 for ; Sat, 12 Jul 2003 09:07:47 -0700 (PDT) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8172743F93 for ; Sat, 12 Jul 2003 09:07:46 -0700 (PDT) (envelope-from jake@locore.ca) Received: by k6.locore.ca (Postfix, from userid 1000) id 0D1B91CB31; Sat, 12 Jul 2003 12:08:50 -0400 (EDT) Date: Sat, 12 Jul 2003 12:08:50 -0400 From: Jake Burkholder To: Kris Kennaway Message-ID: <20030712160849.GF63369@locore.ca> References: <200307112119.14473.dh@askdh.com> <20030712053921.GA57890@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030712053921.GA57890@rot13.obsecurity.org> User-Agent: Mutt/1.4.1i cc: Daniel Harris cc: sparc64@freebsd.org Subject: Re: cache.h breaks whowatch port X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 16:07:47 -0000 Apparently, On Fri, Jul 11, 2003 at 10:39:21PM -0700, Kris Kennaway said words to the effect of; > On Fri, Jul 11, 2003 at 09:19:14PM -0400, Daniel Harris wrote: > > Hello, > > > > I maintain the whowatch port, which is currently failing on bento with the > > following (on sparc64): > > > > proctree.c:107: conflicting types for `cache' > > /usr/include/machine/cache.h:111: previous declaration of `cache' > > > > which is from src/sys/sparc64/include/cache.h,v 1.8: > > > > extern struct cacheinfo cache; > > > > Is the namespace collision a fault of the software or of the sparc64 header? > > If it's the software (whowatch)'s fault, please advise me on how to fix this. > > It's probably just a variable name collision, which would be fixed by > renaming it in whowatch. Its a bug in cache.h, namespace polution, the kernel variables should be protected by #ifdef _KERNEL. Jake