Subject: port-sparc/10696: header files are not self-contained
To: None <>
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
>Originator:     Lex Wennmacher
>Release:        <NetBSD-current source date> NetBSD-1.4.2
The Echelon Network
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

% 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.
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 

Sorry, none provided.
 <machine/cpu.h> and <machine/proc.h> include files outside /usr/include