LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2009, 10:27 AM   #1
hoangcuong2011
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Can't compile kernel modules


Hi every one, thanks for reading my topic. I hope all of us can change the future of linux, or even change the world!
I've installed a new kernel version 2.6.30.5
This is a directory visting:
http://i442.photobucket.com/albums/q..._directory.png
there are many files .h : module.h, list.h ....
And this is a source code of module.h
http://i442.photobucket.com/albums/q...reenshot-5.png
I don't know why in module.h:
#include <linux/list.h>
or
#include <linux/...> ( so on...)
but why not just #include </....>
Because all of this file both child of the path: ( Like fist image
/usr/src/linux2..../include/linux, i think the code will be (for example)
#include </list.h>, not #include <linux/list.h>
I don't know how can i write a linux kernel module cause i can't build it
The error usually : "/usr/src/linux-2.6.30.5/include/linux/module.h:9:24: error: linux/list.h: No such file or directory"
 
Old 09-07-2009, 10:36 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by hoangcuong2011 View Post
[...snip...]
That post doesn't make much sense, and second: this is not your thread. Open a new one for your problem and don't hijack other people's thread.

Next time, order a bit your thoughts before posting because I am not sure at all what your question is. You need to be clear when asking, and please, try to tidy up the posts a bit.

In any case, you are not supposed to be editing the sources of your kernel. You are not definitely going to be able to program a kernel module until you at least know how to correctly build a kernel. So that's the first thing you should be looking at. As said, open a new thread if you need help with that. This thread is about a different topic.
 
Old 09-07-2009, 02:13 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
split out and moved to Programming, and it's very incoherent indeed.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
How to compile a new kernel with modules? frenchn00b Linux - General 2 12-13-2008 07:14 PM
no modules after kernel compile glorsplitz Slackware 7 09-20-2005 10:26 AM
Modules error after compile 2.6.8.1 kernel mathias1975 Slackware 12 10-05-2004 02:52 AM
modules after re-compile kernel skarim Linux - Software 3 10-15-2003 01:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:34 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