Re: kernel-module version missmatch !??????

From: Michael Mueller (malware_at_t-online.de)
Date: 09/01/03

  • Next message: Dr. David Kirkby: "Re: Why does code fail to find *exact* amouut of RAM??"
    Date: Mon, 01 Sep 2003 21:58:56 +0200
    
    

    Martin Huang wrote:
    > # gcc -c hello.c

    You have to specify the include directory for the kernel header files.
    Usally /lib/modules/`uname -r`/build/include these days. The glibc
    header files used by default are a sanitized copy from the kernel
    version glibc was compiled with.

    As others already pointed out adding '-D__KERNEL__' is a good idea too.

    Michael

    -- 
    Linux@TekXpress
    http://www-users.rwth-aachen.de/Michael.Mueller4/tekxp/tekxp.html
    

  • Next message: Dr. David Kirkby: "Re: Why does code fail to find *exact* amouut of RAM??"