On Fri, 23 Mar 2001, Seth Arnold wrote:

> > John Summerfield wrote:
> > 
> > > Kernel headers are part of glibc and commonly have symlinks into
> > > /usr/src/linux

And this symlink thing is something that differs among distributions
and is certainly not true in Debian. /usr/include/{asm,linux} are
precisely there. Why some distributions use symbolic links, I don't know.
Maybe historical reasons, because before glibc you had to set up these
symlinks directly into the kernel source.

<...>
> everything will work as expected. However, kernel modules cannot be
> compiled so blindly -- trying to load a kernel module programmed on a
> Debian unstable system into a linux 2.2.18 kernel will fail miserably
> because the module was compiled against 2.4.2-pre2 (at the moment) no
> matter the running kernel version.

No problem, since in Debian you _can_ just have /usr/src/linux as a
symlink to the kernel source and use -I/usr/src/linux/include for kernel
modules.

Bart


Reply via email to