Package: linux-kernel-headers Version: 2.5.999-test7-bk-9 Severity: important
I tried to build discover today & noticed the pal.h bug is back again. This used to be worked around in the kernel-headers package with this patch: --- linux/include/asm-ia64/pal.h 2002-07-11 12:06:59.000000000 -0600 +++ /usr/include/asm/pal.h 2002-08-28 21:48:00.000000000 -0600 @@ -1,6 +1,8 @@ #ifndef _ASM_IA64_PAL_H #define _ASM_IA64_PAL_H +#ifdef __KERNEL__ + /* * Processor Abstraction Layer definitions. * @@ -1402,4 +1404,6 @@ #endif /* __ASSEMBLY__ */ +#endif /* __KERNEL__ */ + #endif /* _ASM_IA64_PAL_H */ discover build failure: mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -g -O2 -Wall -Wp,-MD,.deps/bridge.pp -c bridge.c -fPIC -DPIC -o .libs/bridge.lo In file included from /usr/include/linux/device.h:17, from /usr/include/linux/genhd.h:15, from discover.h:25, from bridge.c:22: /usr/include/linux/list.h:576:2: warning: #warning "don't include kernel headers in userspace" In file included from /usr/include/asm/system.h:19, from /usr/include/linux/spinlock.h:17, from /usr/include/linux/device.h:18, from /usr/include/linux/genhd.h:15, from discover.h:25, from bridge.c:22: /usr/include/asm/pal.h:89: error: parse error before "pal_status_t" /usr/include/asm/pal.h:102: error: parse error before "pal_cache_level_t" /usr/include/asm/pal.h:110: error: parse error before "pal_cache_type_t" /usr/include/asm/pal.h:123: error: parse error before "pal_cache_line_state_t" /usr/include/asm/pal.h:130: error: parse error before "u64" /usr/include/asm/pal.h:135: error: parse error before "u64" /usr/include/asm/pal.h:146: error: parse error before "pcci1_data" /usr/include/asm/pal.h:151: error: parse error before "u64" /usr/include/asm/pal.h:162: error: parse error before "pcci2_data" /usr/include/asm/pal.h:167: error: parse error before "pal_status_t" /usr/include/asm/pal.h:169: error: parse error before "pcci_info_2" /usr/include/asm/pal.h:170: error: parse error before "pcci_reserved" /usr/include/asm/pal.h:207: error: parse error before "u32" ... -- System Information: Debian Release: testing/unstable Architecture: ia64 Kernel: Linux krebs 2.4.20-mckinley #1 Thu Sep 11 18:27:20 MDT 2003 ia64 Locale: LANG=C, LC_CTYPE=C -- no debconf information