Re: Kernel Module Compilation Error

From: Alan Cox
Date: Tue Aug 31 2004 - 08:04:21 EST


On Maw, 2004-08-31 at 13:39, Jeba Anandhan A wrote:
> # gcc -c -DMODULE -D__KERNEL__ currenttask.c
> the following error is shown.
> what should i do?.

You need to build against the kernel headers not the C library headers.
For FC1 see the kernel-source package and for 2.6 see /lib/modules/...
which now contains the right header set and is a more standardised way
of doing it

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