LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-20-2007, 05:17 AM   #1
pathak_ashish
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Unhappy Error while compiling module for kernel 2.6.15-1


Hi,

I am new to Linux. I am trying to build sample module having "Hello, world" for precompiled kernel 2.6.15-1.2054_FC5 (Fedora Core 5). I am not able get .ko file. I have written Makefile as :

obj-m += hello.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

So when I do make I get error as:

make -C /lib/modules/2.6.15-1.2054_FC5 M=/root modules
make[1]: Entering directory 'lib/modules/2.6.15-1.2054_FC5'
make[1]: ***No rule to make target 'modules'. Stop.
make[1]: Leaving directory 'lib/modules/2.6.15-1.2054_FC5'
make: *** [all] Error 2

Can anybody help me in sorting out this problem......

Waiting for reply....
ashish
 
  


Reply

Tags
compilation, external, module


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling NVIDIA kernel module on 2.6.23.1 kernel Slaco Linux - Hardware 6 10-31-2007 07:57 PM
Help me in compiling kernel module swift_a2002 Programming 1 05-05-2007 02:28 PM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
Error compiling Module in Linux kernel iannou Linux - Software 1 06-27-2003 07:06 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration