Re: TCP/IP stack related prob.

Alisha Nigam (mail_to_alisha@yahoo.com)
Fri, 11 Apr 2003 01:06:33 -0700 (PDT)


hi
thanks a lot it compiled. but while inserting
module
with insmod i am getting errors..

mymodule.o was compiler for kernel version 2.4.9-9
while this kernel is version 2.4.18-14.

i am running RedHat-8.0 and i compile it
including the headers of current running kernel as
mentioned by you only.

WHAT COULD BE THE PROBLEM ??????

--- Arjan van de Ven <arjanv@redhat.com> wrote:
> 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..
>
>

> ATTACHMENT part 2 application/pgp-signature
name=signature.asc

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
-
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/