mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tommy Reynolds <Tommy.Reynolds@MegaCoder.com>
To: linux-kernel@vger.kernel.org
Subject: Re: compilation problem of modules
Date: Wed, 2 Mar 2005 10:58:49 -0600	[thread overview]
Message-ID: <20050302105849.1423f7f7.Tommy.Reynolds@MegaCoder.com> (raw)
In-Reply-To: <4225EBD4.8090302@osdl.org>

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

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!

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2005-03-02 17:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-02 14:59 sounak chakraborty
2005-03-02 16:37 ` Randy.Dunlap
2005-03-02 16:58   ` Tommy Reynolds [this message]

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=20050302105849.1423f7f7.Tommy.Reynolds@MegaCoder.com \
    --to=tommy.reynolds@megacoder.com \
    --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

Powered by JetHome