From: Shine Mohamed Jabbar <shinemohamed_j@naturesoft.net>
To: Lei Yang <leiyang@nec-labs.com>
Cc: Kernel Newbies Mailing List <kernelnewbies@nl.linux.org>,
linux-newbie@vger.kernel.org
Subject: Re: Error building 'Hello,World' kernel Module
Date: Thu, 05 Aug 2004 10:47:14 +0530 [thread overview]
Message-ID: <1091683034.1861.13.camel@shine.naturesoft.com> (raw)
In-Reply-To: <1091659420.5427.14.camel@bijar.nec-labs.com>
Hi,
I tried ur program in my machine and
its working fine.
Apart from what u've done I did two more things
1) Copied the config file from the /boot to kernel
source directory and done "make menuconfig"
2) Done a make in the kernel source till it compiles
the first c file (CC init/main.o). (I've done
because to make a link of include/asm->include/asm-i386).
Regards,
Shine Mohamed Jabbar
On Thu, 2004-08-05 at 04:13, Lei Yang wrote:
> Hello,
>
> I am learning about module programming and just tried to build a
> simplest module, Hello World.
>
> The code is as follows:
> /* hello.c
> #include <linux/module.h>
> #include <linux/kernel.h>
>
> int init_module(void)
> {
> printk("Hello world!\n");
> return 0;
> }
>
> void cleanup_module(void)
> {
> printk(KERN_ALERT "Goodbye world!\n");
> }
>
>
> The makefile is just one line:
> obj-m += hello.o
>
> Then as root, I did in the HelloWorld directory:
>
> make -C /usr/src/linux-`uname -r` SUBDIRS=$PWD modules
>
> There is such an error:
> make: Entering directory `/usr/src/linux-2.6.5-7.104-default'
>
> WARNING: Symbol version dump
> /usr/src/linux-2.6.5-7.104-default/Module.symvers is missing, modules
> will have CONFIG_MODVERSIONS disabled.
>
> make[1]: *** No rule to make target `/home/lei/HelloWorld/hello.c',
> needed by `/home/lei/HelloWorld/hello.o'. Stop.
> make: *** [_module_/home/lei/HelloWorld] Error 2
> make: Leaving directory `/usr/src/linux-2.6.5-7.104-default'
>
>
> Appreciate any comments and help!
>
> TIA
> Lei
>
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs
next prev parent reply other threads:[~2004-08-05 5:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-04 22:43 Error building 'Hello,World' kernel Module Lei Yang
2004-08-05 5:17 ` Shine Mohamed Jabbar [this message]
2004-08-05 22:44 ` Lei Yang
2004-08-06 5:20 ` Shine Mohamed Jabbar
2004-08-06 5:59 ` pa3gcu
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=1091683034.1861.13.camel@shine.naturesoft.com \
--to=shinemohamed_j@naturesoft.net \
--cc=kernelnewbies@nl.linux.org \
--cc=leiyang@nec-labs.com \
--cc=linux-newbie@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.