LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 07:10 AM   #1
vaishalicoep
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: Disabled
/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 07:11 AM.
 
Old 02-03-2009, 12:41 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 12:42 PM.
 
Old 02-04-2009, 02:53 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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



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 02:58 PM
make: File not found: /lib/modules/2.6.18-elive/build/ clhona Linux - Software 3 08-08-2007 12:09 PM
/lib/modules/2.6.15-1.2054_FC5/build: broken symbolic link sjw01748 Linux - Newbie 1 01-16-2007 05:32 AM
/lib/modules/2.6.15-1.2054_FC5/build: broken symbolic link sjw01748 Linux - Kernel 1 01-15-2007 10:19 AM
No build file in lib/modules/* Mlehliw Linux - Newbie 1 08-06-2004 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:54 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
Open Source Consulting | Domain Registration