From: linux-os <linux-os@analogic.com>
To: Deepti Patel <pateldeepti@lycos.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Getting errors in compilation of Hello World!
Date: Wed, 9 Feb 2005 09:59:29 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.61.0502090957100.4106@chaos.analogic.com> (raw)
In-Reply-To: <20050209143629.1B610CA09D@ws7-4.us4.outblaze.com>
On Wed, 9 Feb 2005, Deepti Patel wrote:
> Hi all,
> I am new to Linux. I am tring to load a module in kernel of 'Fedora core2'.
> I wrote a simple Hello world program and tring to compile it with Makefile. I tried 3 differnt types of make file but still it is giving me error. I will really appritiate any help.
[SNIPPED..]
Dear future Linux Hacker.
Try this for your Makefile. It works fine.
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
obj-m := hello.o
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
Cheers,
Dick Johnson
Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.
prev parent reply other threads:[~2005-02-09 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-09 14:36 Deepti Patel
2005-02-09 14:59 ` linux-os [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=Pine.LNX.4.61.0502090957100.4106@chaos.analogic.com \
--to=linux-os@analogic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pateldeepti@lycos.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®