lkml.org 
[lkml]   [1999]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] asm*/resource.h fix for glibc
Miquel van Smoorenburg wrote:
> Debian ships with a set of known-good and stable kernel headers in
> /usr/include/linux and /usr/include/asm. Seems to work pretty well,
> even though people like tytso don't really agree ;)

Doesn't work when you've

> People just need to understand that you have to compile modules
> with -I/usr/src/linux/include or -I/usr/src/linux-2.4.22/include

Modules aren't the only things which need kernel headers, unfortunately.
Glibc will never be magically up to date with the ioctl of the day.

> A Makefile fragment in /usr/src/linux (say, config.mk) that keeps
> the CFLAGS that were used to compile the kernel would go a long
> way to getting people to use -I/usr/src/linux-2.4.22/include
> pretty much automatically.

Some standard fragment would be very cool for add-on modules.
But where do you put it?

I find my installed kernel source tree is often different to the one I'm
running. Often because the kernel in the source tree has bugs ;-)

> Module Makefiles then would look like something like this:
>
> # Point to kernel you want to build against
> TOPDIR=/usr/src/linux
>
> include $(KERNEL)/config.mk

It would be great if it weren't for that pesky /usr/src/linux thing.

-- Jamie

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

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