cache.h breaks whowatch port
jake at locore.ca
Sat Jul 12 09:07:47 PDT 2003
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.
More information about the freebsd-sparc64