Maximillian, Look in your system if you have this headers: sched.h, module.h,jiffies.h, bitmap.h. If not, you should install them. Excuse me, but I dont known where you can find it.
--- Maximillian Murphy <[EMAIL PROTECTED]> escreveu: > Dear All, > > 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, > from /usr/include/linux/module.h:10, > from hello_world_module.c:2: > /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, > from /usr/include/linux/sched.h:15, > from /usr/include/linux/module.h:10, > from hello_world_module.c:2: > /usr/include/linux/bitmap.h: In function > `bitmap_empty': > /usr/include/linux/bitmap.h:15: error: > `BITS_PER_LONG' undeclared (first > use in > this function) > > > and so on.... > > > Any help appreciated. > > Regards, Max > > > -- > To UNSUBSCRIBE, email to > [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > Att, Rogério Eduardo de Oliveira ____________________________ (61)5521233/(61)96270199 "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowl) _______________________________________________________ Promoção Yahoo! Acesso Grátis: a cada hora navegada você acumula cupons e concorre a mais de 500 prêmios! Participe! http://yahoo.fbiz.com.br/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]