Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


Closed Thread
  Search this Thread
Old 11-20-2007, 06:21 AM   #1
LQ Newbie
Registered: Nov 2007
Posts: 7

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


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

make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

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....
Old 11-20-2007, 02:42 PM   #2
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 06:17 AM
Error compiling NVIDIA kernel module on kernel Slaco Linux - Hardware 6 10-31-2007 08:57 PM
Kernel source files for 2.6.15-1.2054_FC5 ? moc Fedora 1 01-17-2007 02:07 AM
Error compiling Module in Linux kernel iannou Linux - Software 1 06-27-2003 08:06 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:32 PM.

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