Re: compilation problem of modules

From: Tommy Reynolds
Date: Wed Mar 02 2005 - 12:23:39 EST


Uttered "Randy.Dunlap" <rddunlap@xxxxxxxx>, 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!

Attachment: pgp00000.pgp
Description: PGP signature