lkml.org 
[lkml]   [2005]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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]
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.035 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site