sparc64/54528: cache.h namespace pollution

Daniel Harris dh at askdh.com
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 15 19:20:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Harris
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
FreeBSD/sparc64


>Description:
	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;

>How-To-Repeat:
	cd /usr/ports/sysutils/whowatch ; make
>Fix:
	Message-ID: <20030712160849.GF63369 at locore.ca>

	"Its a bug in cache.h, namespace polution, the kernel variables
	should be protected by #ifdef _KERNEL."
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-sparc64 mailing list