Re: Device Drivers -- Error compiling

From: Rogerio Eduardo Oliveira (roedoliver_at_yahoo.com.br)
Date: 10/08/05

  • Next message: anoop aryal: "Re: PyKDE"
    Date: Sat, 8 Oct 2005 14:19:14 -0300 (ART)
    To: debian-user@lists.debian.org
    
    

    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 <m@de-minimis.co.uk> 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
    > debian-user-REQUEST@lists.debian.org
    > with a subject of "unsubscribe". Trouble? Contact
    > listmaster@lists.debian.org
    >
    >

    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 debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: anoop aryal: "Re: PyKDE"

    Relevant Pages

    • Custom kernel problems: PCMCIA
      ... I've recently compiled a new kernel to bring woody up to a 2.4.23 kernel. ... Is someone familiar with font setup in X here, ... I am in the process of cleaning up my fonts installation (in Debian ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
      (Debian-User)
    • [opensuse] Kernel only see 3 of 4GB
      ... My kernel ... Do i have to setup anything to see the whole memory? ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ...
      (SuSE)
    • export config in proc for the debian kernels
      ... I was thinking why not the kernel which is packaged with the debian ... can export /proc/config.gz so that the config can be used to setup ... Registered Linux user: #306349 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • ksoftirqd causing severe network performance problems
      ... failover setup), with a new one. ... At the end of last week, the new setup had network problems and what we saw on ... the linux router was that the kernel threads ksoftirqd_CPU1 and ksoftirqd_CPU0 ... When the backup is working fine, we can't use the faulty server anymore ...
      (Linux-Kernel)
    • ksoftirqd causing severe network performance problems
      ... failover setup), with a new one. ... At the end of last week, the new setup had network problems and what we ... When the backup is working fine, we can't use the faulty server ... switching drivers and switching between kernel versions (2.4.21/2.4.22/ ...
      (comp.os.linux.networking)