LinuxQuestions.org
Visit Jeremy's Blog.
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 01-28-2008, 04:25 AM   #1
jana05
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Rep: Reputation: 0
Basic Kernel Program Compilation problem


Hello all,

I am a newbie and I am struck ( and stuck. I got FC6 installaed up and running. I am using the hello.c (just the hello world on init and goodbye cruel world on exit) of LDD 3rd ed (Al Rub, et al...). Now I compiled this file with a Makefile containing just obj-m := hello.o and the command I gave was just make. The error was
make: *** No targets. Stop

Searching I found that my system does have the source. What is the procedure to install and make the source usable? How do I make this sample module work? I am stuck at this initial phase itself. Pls help

Thanks in advance.
Jana
 
Old 01-28-2008, 05:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,764

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
You should use your package manager to install the kernel-source-xyz package (where xyz matches your running kernel version).

Regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compilation problem ddaas SUSE / openSUSE 2 06-12-2007 06:07 AM
Associatin C program with kernel compilation nethunter Linux - Software 1 03-13-2006 03:01 PM
how to compile basic hello.c kernel program Suse Linux 9.3 pat_and_cami Programming 2 02-25-2006 01:13 PM
problem with GTK program compilation. pratsadhu Programming 2 02-20-2006 10:52 AM


All times are GMT -5. The time now is 01:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration