Re: Who is Kernel Headers ?

From: David (thunderbolt01_at_netscape.net)
Date: 12/29/03


Date: Mon, 29 Dec 2003 19:50:24 GMT

Wiseguy wrote:
>
> do the following symlinks exist? ... create them!
>
> /usr/src/linux -> /usr/src/linux{currentversion}
> /usr/include/linux -> /usr/src/linux/include/linux/

TO QUOTE: Linux Torvalds

I would suggest that people who compile new kernels should:

  - not have a single symbolic link in sight (except the one that
the kernel build itself sets up, namely the "linux/include/asm"
symlink that is only used for the internal kernel compile itself)

And yes, this is what I do. My /usr/src/linux still has the old
2.2.13 header files, even though I haven't run a 2.2.13 kernel
in a _loong_time. But those headers were what Glibc was compiled
against, so those headers are what matches the library object files.

And this is actually what has been the suggested environment for
at least the last five years. I don't know why the symlink
business keeps on living on, like a bad zombie. Pretty much every
distribution still has that broken symlink, and people still
remember that the linux sources should go into "/usr/src/linux"
even though that hasn't been true in a _loong_ time.

-- 
Confucius:  He who play in root, eventually kill tree.
Registered with The Linux Counter.  http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.23 SMP i686 (GCC) 3.3.2
Uptime: 11 days, 2:11, 1 user, load average: 1.08, 1.20, 1.13


Relevant Pages

  • Re: PROOF: Windows makes you stupid
    ... > No support for my RAID gear unless I work out how to compile the kernel, ... > or compile modules for it. ... > issue I had this morning on linux... ... but instead started in root mode all of it's own. ...
    (comp.os.linux.misc)
  • Re: kernel compile and the 8139too.o module
    ... > Hello you all linux OS newbies and experts. ... > compile of linux kernel 2.4.31. ... What happens is that when I compile the ... > directly building the driver into the kernel, making module out of it, ...
    (comp.os.linux.development.system)
  • Re: Review of FreeBSD 5.4
    ... Note how I simply stated that I was a Slackware Linux user, ... Oh sure there are users who couldn't compile it, ... That's hardly the kernel dev's fault. ... that then caused trouble for cdrecord because cdrecord used that at the ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Ive thought better of Linux
    ... The whole point of moving to Linux was to get away from having to compile up tons of things manually for MinGW, and it turns out I wasn't actually saving any labor over that drill. ... rebuild the kernel to get the support you needed - this seems very odd ... There is some debate over whether I needed to compile a kernel, or just compile a driver and link it into the kernel. ...
    (comp.lang.lisp)
  • Re: Video editing in Linux?
    ... Im not a linux die hard. ... Linux drivers are in the kernel source tree for eternity. ... MB, or even a few hundred KB, if you compile a specific kernel for your ...
    (alt.linux)