LinuxQuestions.org
Review your favorite Linux distribution.
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 06-16-2007, 12:52 PM   #1
willyweedle
LQ Newbie
 
Registered: Jan 2007
Location: Arkansas
Distribution: Zenwalk as desktop, Zenlive as router, XP as game box
Posts: 19

Rep: Reputation: 0
can't compile modules


I'm trying to follow the Linux Kernel Module Programming Guide but compiling the first example always results in like a million errors. I've tried downloading a different kernel, compiling, and installing but I still have no luck. I've tried downgrading the preinstalled gcc from 3.4.6 to four slightly lower versions but compiling them eventually results in errors I don't know how to fix (c++ templates, ugh!). I've tried gcc2.95 and, uh... commented out any error pragmas that complain about old gcc's, but in the end there is ALWAYS something missing leaving me clueless. I'm using Zenwalk4.2 but have decided to abandon it for now to find a distro that dosen't need to have anything done to it before it can compile modules. Anyone out there have any pointers? Anyone have any success compiling modules on their distro without having to go through any crap.
 
Old 06-16-2007, 02:39 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What's the exact error or example error you are seeing? That might give us some insight of what the problem is and what commands or steps are you exactly doing before it starts to error?
 
Old 06-16-2007, 03:35 PM   #3
willyweedle
LQ Newbie
 
Registered: Jan 2007
Location: Arkansas
Distribution: Zenwalk as desktop, Zenlive as router, XP as game box
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, I figured out what I was doing wrong. Zenwalk had a broken symlink to the kernel headers. Just had to install them, sheesh. Never mind.
 
  


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
didnt compile as modules, a way to get modules? android6011 Linux - General 6 09-06-2006 08:38 PM
no modules after kernel compile glorsplitz Slackware 7 09-20-2005 10:26 AM
compile or modules? redjokerx Linux - General 3 01-27-2005 12:08 AM
How to compile individual modules in 2.6 kule Linux - General 0 07-16-2004 06:07 AM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM

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

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