Re: Configuration error running su in unstable
Purchased the "Linux Device Drivers" 2nd edition book. First bit of
code: A hello world module. Won't compile on my system. Instead it
comes back with a stream of errors complaining about code in the
_main_linux_source_tree_ .. so there's evidently something wrong with my
setup. Can anyone help me? First steps sometimes being the hardest!
Also, do you know of any device driver or kernel forums that specialise
in this kind of thing and don't mind being asked dumb questions?
Details of my setup and the errors I'm getting:
gcc version: 3.3.5 (apt-get upgrade running as I type to pull this up
to the latest version)
kernel version: 2.6.6
beginning of the error stream:
In file included from /usr/include/linux/sched.h:12,
/usr/include/linux/jiffies.h:16: error: parse error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: parse error before "get_jiffies_64"
In file included from /usr/include/linux/cpumask.h:8,
/usr/include/linux/bitmap.h: In function `bitmap_empty':
/usr/include/linux/bitmap.h:15: error: `BITS_PER_LONG' undeclared (first
and so on....
Any help appreciated.