LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   can't compile modules (https://www.linuxquestions.org/questions/linux-general-1/cant-compile-modules-562260/)

willyweedle 06-16-2007 12:52 PM

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:tisk: that complain about old gcc's, but in the end there is ALWAYS something missing leaving me clueless.:scratch: 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.:D

trickykid 06-16-2007 02:39 PM

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?

willyweedle 06-16-2007 03:35 PM

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.:rolleyes:


All times are GMT -5. The time now is 01:15 PM.