lkml.org 
[lkml]   [2002]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kbuild 2.5 is ready for inclusion in the 2.5 kernel


On Thu, 2 May 2002, John Covici wrote:

> So what should it point to? I have had more trouble when some Debian
> package made it not a symlink and if I tried to compile something

"some package" being libc6-dev. I.e. the first thing that puts something
in /usr/include...

> which needed correct headers for the version I am using I get very
> strange errors which are hard to diagnose.

Fix your application. The rules are very simple - /usr/include/linux contains
versions of headers used to build libc. If you are linking against libc,
you don't want to have different parts of resulting executable to be
compiled with different versions of these headers. If you want several
definitions from headers of your current kernel - extract them (and make
damn sure that you don't pull a conflict with libc headers).

IOW, create a private header with definitions you need. And you'd better
make sure that stuff you are pulling is stable, obviously - if it changes
from version to version you are going to run into serious trouble at
runtime. "Rebuild whenever you boot into new kernel" is not a good idea...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.068 / U:1.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site