Subject: kern/23114: linux #defines != sys/ufs/ufs/dir.h defines
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <munch@acm.org>
List: netbsd-bugs
Date: 10/09/2003 23:13:38
>Number:         23114
>Category:       kern
>Synopsis:       linux <dirent.h> #defines != sys/ufs/ufs/dir.h defines
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 09 23:14:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     j paulson
>Release:        -current
>Organization:
>Environment:
slackware linux 2.4.21 i386
>Description:
When doing a build with

USETOOLS=yes ./build.sh -U -j3 -m i386 -O /usr/src/netbsd-obj tools kernel=GENERIC.MP

many "warning: DT_blah redefined" warnings are generated.

The #defines for DT_UNKNOWN .. DT_WHT  in ufs/dir.h conflict 
with the #defines from linux's /usr/include/dirent.h.  The names 
appear to resolve to identical values.

>How-To-Repeat:
Build on a slackware linux box.  Most likely occurs on other linux 
distributions too.
>Fix:
The build-host's <dirent.h> should not be #included by the cross 
build.

>Release-Note:
>Audit-Trail:
>Unformatted: