lkml.org 
[lkml]   [2003]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: TCP/IP stack related prob.
From
Date
On Fri, 2003-04-11 at 09:38, Alisha Nigam wrote:

> then compile it
> gcc -c -O -W -Wall -Wstrict-prototypes
> -Wmissing-prototypes -DMODULE -D__KERNEL__ -mymodule.o
> mymodule.c
>
>
> i am getting a bundle of errors ......
>
>
> In file included from /usr/include/linux/fs.h:23,
> from
> /usr/include/linux/capability.h:17,
> from /usr/include/linux/binfmts.h:5,
> from /usr/include/linux/sched.h:9,
> from /usr/include/linux/skbuff.h:19,
> from p10.c:2:
> /usr/include/linux/string.h:8:2: warning: #warning
> Using kernel header in userland!

you are using glibc headers to compile a kernel.... that's not going to
work. Add -I/lib/modules/`uname -r`/build/include to the gcc commandline
to use the headers of the currently running kernel..

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.042 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site