Bug 16457 - kernel includes are linked incorrectly
kernel includes are linked incorrectly
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Michael K. Johnson
Depends On:
  Show dependency treegraph
Reported: 2000-08-17 12:09 EDT by vicr
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-08-17 15:06:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description vicr 2000-08-17 12:09:23 EDT
- /usr/include/asm is linked to -> /usr/src/linux-2.4/include/asm instead of /usr/src/linux/include/asm
 - /usr/include/linux is linked to -> /usr/src/linux-2.4/include/linux instead of /usr/src/linux/include/linux
   the above two cause problems because the actual kernel used for 7.0beta is 2.2.16 at this time.  In particular, this causes a problem when compiling new kernel modules and trying to insmod it into the wrong compiled kernel.
Comment 1 Bill Nottingham 2000-08-17 14:05:15 EDT
Not a bug; you should point the external module build
at the correct kernel source tree (for example,
Comment 2 vicr 2000-08-17 15:06:04 EDT
the module file should not have to include the direct include path.  it should especially not have to include based on version number if no specific version number is required.  #include <linux/module.h> ought to include the correct module file from /usr/src/<linux kernel version>/include/linux.  In the past, the links have been (correctly) from /usr/src/linux -> /usr/src/<linux kernel version> and /usr/include/linux (and asm) -> /usr/src/linux/include/linux (and asm).
Comment 3 Bill Nottingham 2000-08-17 16:35:55 EDT
Linebreaks,  please.

The problem is that /usr/include/linux is used by glibc for all userland
compiles; these should not be kernel-version dependent.

modules implicitly need to know the kernel version you're running, so
having them point at a separate directory is sensible. For example,
pointing it at /usr/src/linux should work OK on a beta box.

Plus, Linus himself has decreed that /usr/include/linux and /usr/include/asm
should be *directories* used by glibc, and should not be changed with
each new kernel installed; so has he said, so it shall be done (look
at rawhide; it's been changed this way there.)

In short, this was changed intentionally, and we aren't changing back.

Note You need to log in before you can comment on or make changes to this bug.