From: Victor Rodriguez <vm.rod25@gmail.com>
To: Mulyadi Santosa <mulyadi.santosa@gmail.com>
Cc: Balachandar <bala1486@gmail.com>,
kernelnewbies@nl.linux.org, linux-c-programming@vger.kernel.org
Subject: Re: Error in compiling a module
Date: Thu, 29 Jul 2010 08:56:31 -0500 [thread overview]
Message-ID: <AANLkTimJ+FCxy9-zRme57R_f3E2aq+395xt3eybnb46G@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimeJrRs4Bd1aw--FKPYyqcuu8_O-Xi5G0FOh0yd@mail.gmail.com>
On Wed, Jul 28, 2010 at 11:51 PM, Mulyadi Santosa
<mulyadi.santosa@gmail.com> wrote:
>
> Hi...
>
> On Thu, Jul 29, 2010 at 00:28, Balachandar <bala1486@gmail.com> wrote:
> > Thank you for your help. I figured out the mistake. I missed a
> > semicolon in one of the header file that was included in the file that
> > showed the error.
>
> I think it would be great if you and some guys here write about
> "mistakes I ever did when I write kernel codes" in kernelnewbies
> wiki....so that others might learn about it.
>
> Just 2 cents suggestion...
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Hey think it is a really god idea to write about common mistakes in
kernel codes. I have one , I realize that when you just copy and
paste the code for the makefiles from the Internet or PDF's it doesn't
compile the first time, you have to eliminate some tabs spaces first;
for example in the The Linux Kernel Module Programming Guide there is
a simple hello-1.c and its makefile is .
obj-m += hello-1.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
when you run make in the terminal
make[1]: *** No rule to make target `-C'. Stop.
Could appear
you have to copy in plain text or type yourself. well it is not a real
kenrel problem but mya help to others i realize it happens the first
time I compiled my "simplest module"
Thanks
Victor
next prev parent reply other threads:[~2010-07-29 13:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 21:17 Error in compiling a module Balachandar
2010-07-27 22:30 ` Michal Nazarewicz
2010-07-28 4:59 ` Mulyadi Santosa
2010-07-28 17:28 ` Balachandar
2010-07-29 4:51 ` Mulyadi Santosa
2010-07-29 13:56 ` Victor Rodriguez [this message]
2010-07-29 13:56 ` Victor Rodriguez
2010-07-29 16:21 ` Michal Nazarewicz
2010-07-29 17:52 ` Mulyadi Santosa
2010-07-29 18:10 ` Jim Cromie
2010-07-29 20:23 ` Mulyadi Santosa
2010-07-29 20:35 ` Greg Freemyer
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=AANLkTimJ+FCxy9-zRme57R_f3E2aq+395xt3eybnb46G@mail.gmail.com \
--to=vm.rod25@gmail.com \
--cc=bala1486@gmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-c-programming@vger.kernel.org \
--cc=mulyadi.santosa@gmail.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;
as well as URLs for NNTP newsgroup(s).