LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-03-2009, 08:10 AM   #1
vaishalicoep
LQ Newbie
 
Registered: Feb 2009
Distribution: fedora
Posts: 4

Rep: Reputation: 0
/lib/modules/kernel/build file broken


Hi,
I am trying to write a simple "hello world" module from Linux Device Drivers of Rubini, but whenever i am giving make command error comes up as build file is broken... my makefile is given below

ifneq ($(KERNELRELEASE),)
obj-m := hello.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
endif


what should i do? i am using fedora 9...

Last edited by vaishalicoep; 02-03-2009 at 08:11 AM.
 
Old 02-03-2009, 01:41 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
Welcome to LQ.

Take care, that the package 'kernel-devel' is installed.
Installs to /usr/src/kernels/ , and the link 'build' in
/lib/modules/Žuname -rŽ)/ is a link to that "package"

uname -r ( to see version )

# yum search kernel-devel

# yum install kernel-devel-Žuname -rŽ
....

Last edited by knudfl; 02-03-2009 at 01:42 PM.
 
Old 02-04-2009, 03:53 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel headers & /lib/modules/uname -r/build fof3 Linux - Newbie 4 12-16-2008 03:58 PM
make: File not found: /lib/modules/2.6.18-elive/build/ clhona Linux - Software 3 08-08-2007 01:09 PM
/lib/modules/2.6.15-1.2054_FC5/build: broken symbolic link sjw01748 Linux - Newbie 1 01-16-2007 06:32 AM
/lib/modules/2.6.15-1.2054_FC5/build: broken symbolic link sjw01748 Linux - Kernel 1 01-15-2007 11:19 AM
No build file in lib/modules/* Mlehliw Linux - Newbie 1 08-06-2004 10:40 AM


All times are GMT -5. The time now is 07:19 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration