Description of problem:
While trying to build the openbios package on PPC I've noticed that there seems to be a problem with the kernel headers:
HOSTCC host/kernel/bootstrap.o
In file included from /usr/include/asm/ptrace.h:27:0,
from /usr/include/asm/sigcontext.h:11,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:339,
from ../kernel/bootstrap.c:13:
/usr/include/linux/types.h:27:1: error: unknown type name '__u16'
/usr/include/linux/types.h:28:1: error: unknown type name '__u16'
/usr/include/linux/types.h:29:1: error: unknown type name '__u32'
/usr/include/linux/types.h:30:1: error: unknown type name '__u32'
/usr/include/linux/types.h:31:1: error: unknown type name '__u64'
/usr/include/linux/types.h:32:1: error: unknown type name '__u64'
/usr/include/linux/types.h:34:1: error: unknown type name '__u16'
/usr/include/linux/types.h:35:1: error: unknown type name '__u32'
In file included from /usr/include/asm/sigcontext.h:11:0,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:339,
from ../kernel/bootstrap.c:13:
/usr/include/asm/ptrace.h:201:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:202:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:203:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:204:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:205:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:206:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:207:2: error: unknown type name '__u64'
/usr/include/asm/ptrace.h:223:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:224:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:225:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:226:2: error: unknown type name '__u32'
/usr/include/asm/ptrace.h:227:2: error: unknown type name '__u64'
/usr/include/asm/ptrace.h:228:2: error: unknown type name '__u64'
/usr/include/asm/ptrace.h:229:2: error: unknown type name '__u64'
This is reproducable with kernel-2.6.37-0.rc8.git3.1.fc15 and kernel-2.6.38-1.fc15
Looking further into this, ppc64 succeeds because it doesn't actually build anything... I suspect this is is actually a bug of somesort in openbios's ppc support, since I can't see anything wrong with kernel-headers.