Re: writting kernel modules on redhat 7.3 linux kernel 2.4.18-3

From: Arjan van de Ven (arjanv@redhat.com)
Date: Wed Mar 19 2003 - 03:15:12 EST


On Wed, 2003-03-19 at 08:07, Hemanshu Kanji Bhadra, Noida wrote:

> gcc -O2 -D__KERNEL__ -DMODULE -I/usr/src/linux/include -c
> helloworld_proc_module.c -o helloworld_proc_module.o

You are using the glibc headers to compile kernel modules, that's not
going to work. You need more than that; you could check the makefile at
http://people.redhat.com/arjanv/xircom_cb/Makefile for more info.



-
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/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:25 EST