Messages in this thread | | | Date | Wed, 2 Mar 2005 10:58:49 -0600 | From | Tommy Reynolds <> | Subject | Re: compilation problem of modules |
| |
Uttered "Randy.Dunlap" <rddunlap@osdl.org>, spake thus:
> compile/build is wrong. > a minimum 2.4 kernel build needs at least: > > gcc -c -D__KERNEL__ -DMODULE -O2 -nostdinc proc.c
Don't forget the kernel headers!
# gcc -c -D__KERNEL__ -DMODULE -O2 -I/usr/src/linux/include -nostdinc proc.c
and, if you have module symbol versioning turned on, you'll need still more! [unhandled content-type:application/pgp-signature] | |