header files are not self-contained
To: None <gnats-bugs@gnats.netbsd.org>
From: Dr. Lex Wennmacher <wennmach@goofy.geo.Uni-Koeln.DE>
List: netbsd-bugs
Date: 07/27/2000 07:28:14
>Number: 10696
>Category: port-sparc
>Synopsis: <machine/*.h> header files are not self-contained
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-sparc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 27 07:29:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Lex Wennmacher
>Release: <NetBSD-current source date> NetBSD-1.4.2
>Organization:
The Echelon Network
>Environment:
System: NetBSD goofy 1.4.2 NetBSD 1.4.2 (GOOFY) #0: Fri Jul 21 11:56:22 MEST 2000 root@goofy:/mnt/usr/src/sys/arch/sparc/compile/GOOFY sparc
>Description:
% grep sparc/sparc /usr/include/machine/*.h
/usr/include/machine/cpu.h:#include <sparc/sparc/intreg.h>
/usr/include/machine/proc.h:#include <sparc/sparc/cpuvar.h>
If _KERNEL is defined, cpu.h and proc.h include files living in
/sys/arch/sparc/sparc. This basically only works when building kernels.
For building LKMs, it fails.
>How-To-Repeat:
Try to build arla from the packages collection:
% cd pkgsrc/net/arla
% make
[... mucho wugga wugga deleted]
configure:9156: checking if vnode_if.h needs to be built
configure:9172: gcc -E -D_KERNEL -D_LKM -DUVM -I/sys -I/sys/arch conftest.c >/
dev/null 2>conftest.out
In file included from /usr/include/machine/param.h:59,
from /usr/include/sys/param.h:141,
from configure:9165:
/usr/include/machine/cpu.h:65: sparc/sparc/intreg.h: No such file or directory
>Fix:
Sorry, none provided.
>Release-Note:
>Audit-Trail:
>Unformatted:
<machine/cpu.h> and <machine/proc.h> include files outside /usr/include