LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2001, 10:40 PM   #1
cyberclaus
LQ Newbie
 
Registered: Oct 2001
Location: Virginia
Distribution: Mandrake 8.1
Posts: 4

Rep: Reputation: 0
Thumbs down "modules shouldn't use kernel headers . . ."


Ok I get this message any time I try to use the Make command......"modules shouldn't use kernel headers . . .". I am running Mandrake 8.1 and when I looked at the installed components in the package manager it shows the kernel-headers as being installed.
When I looked in my modversions.h file all that was in there wa 2 lines which basically said ......#modules shouldn't use kernel headers....blah blah blah. Well after 2 weeks and trying to install several different things using the make command and geting this same error, I deleted the modversions.h file in hopes that I would get anything else but this error. I do but it's still wrong.
I have been searching the web for answers for 2 weeks with no luck and hopefully someone in this forum can shed some light on this.
I am a linux newbie so please explain everything very detailed as if I were a 3 year old. I will not be offended. What will offend me is if I have to stay with MicroSloth Windblows.
Thanks in advance for any help.

cyberclaus@home.com
 
Old 10-07-2001, 05:41 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Just curious - what's on the CONFIG_MODVERSIONS line in your /usr/src/linux/.config file? I ran into a similar problem a while back and I found this to be the problem when it was enabled.
 
Old 10-07-2001, 07:31 PM   #3
cyberclaus
LQ Newbie
 
Registered: Oct 2001
Location: Virginia
Distribution: Mandrake 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
cannot find .config

I actually cannot find the .config file you are referring to. I also do not have a /usr/src/linux directory. I have a usr/include/linux directory but no .config file. This is the frustrating part of linux.... so many different distros.
 
Old 10-07-2001, 08:46 PM   #4
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
cyberclaus,

Are you sure you don't have a /usr/src/linux directory? I'm running Mandrake 8.0, an that directory exists on my box. I wouldn't think there would be that much difference between Drake 8.0 and 8.1 (although I could be wrong). The line mcleodnine refers to in my .config file looks like this:
Code:
CONFIG_MODVERSIONS=y
As far as the /usr/include/linux directory goes, that's where the actual header (.h) files live, including modversions.h.
 
Old 10-07-2001, 09:41 PM   #5
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
Try
$ urpmf /usr/src/linux

This shows me that kernel-source is what has that directory, which contains, BTW, various header files, consistent with your error.

$ rpm -q kernel-source

will tell you if it is installed. If not,

# urpmi kernel-source

(It has to be the same version as the kernel you are running; will be if you are running the stock installed kernel).

hth
 
Old 10-07-2001, 11:11 PM   #6
cyberclaus
LQ Newbie
 
Registered: Oct 2001
Location: Virginia
Distribution: Mandrake 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
Ok I am closer. Thank you rolf. Now I have the /usr/src/linux directory. Everytime I tried to install the rpm off of the disc it said "Package already installed" but apparently not. Now I have that I try to run the "make install" I get depmod: /lib/modules/2.4.8-26mdk/kernel/drivers/input/joydev.o.gz is not an ELF
file

followed by:

depmod: *** Unresolved symbols in /lib/modules/2.4.8-26mdk/joy-sidewinder.o

I think this is because I tried to make install before I had the kernel-source installed but I don't know how to break this link to /lib/modules/2.4.8-26mdk.
 
Old 10-07-2001, 11:23 PM   #7
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
You're welcome. Two things: as root, you could try depmod -a. I think that gets done at boot and shouldn't hurt.

Also, if you are going to do make in a directory where you did make before, do make clean first.

Just a couple of guesses but maybe worth a try.

Good luck.
 
Old 10-07-2001, 11:57 PM   #8
cyberclaus
LQ Newbie
 
Registered: Oct 2001
Location: Virginia
Distribution: Mandrake 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
Unfortunately still get the :
/lib/modules/2.4.8-26mdk/kernel/drivers/input/joydev.o.gz is not an ELF file

if I do a depmod -a I get the same message.

This is really the last hurdle I have to getting linux up and running to the point that I do not need to reboot to Windows. I know I am new at this but I have spent countless hours reading posts from several different sites before I ask any questions and thus far I have been very lucky to find most of my problems have been addressed before. I would love to get this last task accomplished so I can start enjoying this new OS instead of wrestling with it. Thanks for everyone's help.
 
Old 10-08-2001, 12:20 AM   #9
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
There's some similar language at google groups and this page,too, a good place to search for solutions, if you didn't know.
 
  


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
modules "tainting kernel"...help pAn1k Linux - Wireless Networking 13 09-18-2005 12:00 AM
IPX kernel modules missing SuSE 9.1 "professional" peterthesing SUSE / openSUSE 1 10-15-2004 05:03 PM
Running yum asks for "sysadmin to update headers" Equisilus Fedora 0 06-25-2004 04:52 PM
kernel 2.6.0 debian "No module symbols loaded - kernel modules not enabled." toovato Linux - General 2 01-07-2004 07:56 PM
xscreensaver - "couldn't find X11 headers" error teal Linux - Newbie 2 07-02-2003 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 AM.

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