mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjanv@redhat.com>
To: Alisha Nigam <mail_to_alisha@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: TCP/IP stack related prob.
Date: 11 Apr 2003 09:52:32 +0200	[thread overview]
Message-ID: <1050047551.1415.4.camel@laptop.fenrus.com> (raw)
In-Reply-To: <20030411073848.33517.qmail@web20106.mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-04-11  7:40 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 [this message]
2003-04-11  8:06   ` Alisha Nigam
2003-04-11  8:08   ` Francis Galiegue
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=1050047551.1415.4.camel@laptop.fenrus.com \
    --to=arjanv@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mail_to_alisha@yahoo.com \
    /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®