Now that 2.6.28 is in, my first problem with the headers has appeared (I'm sure there might be others when I build my desktop).
In kbd, In file included from fgconsole.c:9: /usr/include/linux/serial.h:164: error: expected specifier-qualifier-list before '__u32' make[2]: *** [fgconsole.o] Error 1 The fix is already upstream, repeating the chapter 10 build of linux-headers iwith this patch applied has solved the problem. Unless I'm misreading (again), we don't build kbd for people who boot, so this is only needed in chapter 10. ken taken from http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.28-git5.log for the moment I haven't formatted this to our standards, so I'm leaving in the "git preamble". commit 60c20fb8c00a2b23308ae4517f145383bc66d291 Author: Andy Whitcroft <[email protected]> Date: Fri Jan 2 13:49:04 2009 +0000 serial: RS485 ioctl structure uses __u32 include linux/types.h In the commit below a new struct serial_rs485 was introduced for a new ioctl: commit c26c56c0f40e200e61d1390629c806f6adaffbcc Author: Alan Cox <[email protected]> Date: Mon Oct 13 10:37:48 2008 +0100 tty: Cris has a nice RS485 ioctl so we should steal it This structure uses the __u32 types for some of its members, which leads to the following compile error: $ cc -I.../include -c X.c In file included from X.c:2: .../include/linux/serial.h:185: error: expected specifier-qualifier-list before ‘__u32’ $ It seems that these types are appropriate for this structure as it is to be exposed to userspace. These types are available via linux/types.h so move the include of that outside the __KERNEL__ section. Signed-off-by: Andy Whitcroft <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> include/linux/serial.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/linux/serial.h b/include/linux/serial.h index 1ea8d92..9136cc5 100644 --- a/include/linux/serial.h +++ b/include/linux/serial.h @@ -10,8 +10,9 @@ #ifndef _LINUX_SERIAL_H #define _LINUX_SERIAL_H -#ifdef __KERNEL__ #include <linux/types.h> + +#ifdef __KERNEL__ #include <asm/page.h> /* -- das eine Mal als Tragödie, das andere Mal als Farce _______________________________________________ Clfs-dev mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
