From: Francis Galiegue <fg6@wanadoo.fr>
To: linux-kernel@vger.kernel.org
Subject: Re: TCP/IP stack related prob.
Date: Fri, 11 Apr 2003 10:08:15 +0200 [thread overview]
Message-ID: <200304111008.16700.fg6@wanadoo.fr> (raw)
In-Reply-To: <1050047551.1415.4.camel@laptop.fenrus.com>
On Friday 11 April 2003 09:52, Arjan van de Ven 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..
Not only that but aren't modules supposed to be compiled with -O2?
--
Francis Galiegue <fgaliegue@tbs-internet.com>
"98% of DNS Queries at the Root Level are Unnecessary" - Slashdot headline
"Scientists at the Vatican Praying Center found that 98% of the prayer queries
at the God level are unnecessary." - Anonymous Coward
next prev parent reply other threads:[~2003-04-11 7:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-11 7:38 Alisha Nigam
2003-04-11 7:52 ` Arjan van de Ven
2003-04-11 8:06 ` Alisha Nigam
2003-04-11 8:08 ` Francis Galiegue [this message]
2003-04-11 8:34 ` Alisha Nigam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304111008.16700.fg6@wanadoo.fr \
--to=fg6@wanadoo.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®