Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13746 - Linux headers for kernel 2.5
Summary: Linux headers for kernel 2.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL: http://www.kernel.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-11 18:10 UTC by David Nielsen
Modified: 2003-08-26 08:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Nielsen 2003-01-11 18:10:12 UTC
I noticed that while Gentoo offers the development kernel there is header ebuild of 
this kernel, thus compiling stuff that relies on the headers being in place will often 
fail.. I would be nice if there was a generic metode of linking the /usr/src/linux dir 
to /usr/include or simply ebuilds for the development kernels as well.
Comment 1 Eric Shattow 2003-03-12 03:23:52 UTC
the linux kernel-specific include files and directories in /usr/include are the ones for the version of the linux kernel that was run when glibc was built.   the /usr/src/linux symlink is really awful and needs to die.

what i did was make /usr/include-old  directory and move the following from /usr/include/* there....

asm  linux  net  scsi  sound


then from the 2.5.x development sources /usr/src/yourkernelversion-2.5.something/include   you'll want to copy (cp -a) the following to /usr/include/  ....

asm  linux  net  scsi  sound  asm-generic


hope this helps!
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2003-08-26 08:14:42 UTC
For most kernel ebuilds, you can just change ETYPE to "headers" in the file and that kernel version will be installed as headers [ if that was the problem ].

/usr/include serves a global include directory [not just for the linux kernel] but the /usr/include/linux includes should be the ones you used to compile glibc with to avoid incompatibility problems when building kernel-reliant applications.