LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Closed Thread
  Search this Thread
Old 11-20-2007, 05:21 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.2054_FC5


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
 
Old 11-20-2007, 01:42 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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 while compiling module for kernel 2.6.15-1 pathak_ashish Linux - Newbie 0 11-20-2007 05:17 AM
Error compiling NVIDIA kernel module on 2.6.23.1 kernel Slaco Linux - Hardware 6 10-31-2007 07:57 PM
Kernel source files for 2.6.15-1.2054_FC5 ? moc Fedora 1 01-17-2007 01:07 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration