sparc64/54528: cache.h namespace pollution

Daniel Harris dh at
Tue Jul 15 19:20:17 PDT 2003

>Number:         54528
>Category:       sparc64
>Synopsis:       cache.h namespace pollution
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-sparc64
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 15 19:20:14 PDT 2003
>Originator:     Daniel Harris
>Release:        FreeBSD 4.8-STABLE i386

	whowatch port is broken on sparc64 thusly:
	proctree.c:107: conflicting types for `cache'
	/usr/include/machine/cache.h:111: previous declaration of `cache'

	cache.h line 111:
	extern struct cacheinfo cache;

	cd /usr/ports/sysutils/whowatch ; make
	Message-ID: <20030712160849.GF63369 at>

	"Its a bug in cache.h, namespace polution, the kernel variables
	should be protected by #ifdef _KERNEL."

More information about the freebsd-sparc64 mailing list