Need to recompile to test ati driver.

I know this is somehow my fault, but do not know how or why:

  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/i486-linux-gnu/4.0.4/include/limits.h:122,
                 from /usr/lib/gcc/i486-linux-gnu/4.0.4/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.0.4/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:214: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:214: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:214: error: for each function it appears in.)
scripts/basic/fixdep.c:214: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:310: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:310: warning: unused variable ‘s’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


The build log for the driver module describes a mismatch:

[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Error] Kernel Module : No kernel module build environment - please consult readme.


What I would like is to have a complete build environment where I can simply modules. 


Module assistant tells me the the kernel headers for the target kernel versions cannot be found.

(yes I have both kernel headers from grml and mod ass installed its own....

none of them work


What is the easiest way to make sure that building modules from non grml sources will work every time?

Best,

Martin







"...children and young people feel instinctively the difference between those who genuinely wish them well and those who regard them merely as raw material for some scheme." --Russell