Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2003 22:12:21 -0400 (EDT)
From:      Daniel Harris <dh@askdh.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   sparc64/54528: cache.h namespace pollution
Message-ID:  <20030716021221.A2F152F8A8@dunnevant.worksforfood.com>
Resent-Message-ID: <200307160220.h6G2KFcY033696@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@locore.ca>

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



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