kbd-1.12 types.h parse error

Ken Moffat ken at kenmoffat.uklinux.net
Sat Apr 2 08:36:33 PST 2005

On Sat, 2 Apr 2005, Laurent Hugé wrote:

> Hi,
> I'm building the LFS-6.0, but I'm stucked at the build of kbd during
> chapter 6.

> | gcc -O2 -Wall -ansi   -c -o getfd.o getfd.c
> | In file included from /usr/include/linux/kd.h:3,
> |                  from getfd.c:4:
> | /usr/include/linux/types.h:143: error: parse error before "__le64"
> | /usr/include/linux/types.h:144: error: parse error before "__be64"

 I don't know exactly how 6.0 should look (I'm in the middle of building
a variant of the svn book with linux-libc-headers-, but I guess
those lines will be something like

typedef __u64 __bitwise __le64;
typedef __u64 __bitwise __be64;

: if so, it seems to be the '__bitwise' which is tripping gcc up.

If the earlier headers are like, it should be defined just
above this in types.h : mine has

#ifdef __CHECKER__
#define __bitwise __attribute__((bitwise))
#define __bitwise

How do your headers look ?

 das eine Mal als Tragödie, das andere Mal als Farce

More information about the lfs-support mailing list