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 01-19-2003, 04:23 PM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
depmod -a: *** Unresolved symbols in /lib/ ....


Hello guy's. I just recompiled my kernel. Because I only needed some drivers to get build in to my kernel, I only did: "make mrproper", "make xconfig", "make dep", "make clean" and "make bzImage". So no "make modules" or "make modules install".
When I do "depmod -a" I get "depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/net/dummy.o".
What can I do about this?
 
Old 01-19-2003, 06:01 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
make moules
make modules_install
 
Old 01-19-2003, 06:22 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If all you did was change modules, then *I think* you could just get away with not creating a new kernel, but would still need make dep... make modules and make modules_install just not make bzImage.

However if you are adding things into the kernel, not just modules then I do think you need to whole process, as McLeodnine just said.

Cool
 
Old 01-20-2003, 03:14 AM   #4
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Okey, pleace don't mind my very stupid question. It was quite late at night. Pleace tell me it (asking things that you should of known) happens to every one .... right?
 
Old 01-20-2003, 03:22 AM   #5
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Schatoor, did you move drivers that had been modules into the
kernel? If so, then you need to remove the old modules from
lib/modules/.... An easy way to do this (though it takes a while)
is:
Code:
cd /usr/src/linux 
make modules && make modules_install
If you removed drivers from the kernel and made them modules
you HAVE to do it.

MasterC, you are correct, if you just want to build modules, you
can do a:
Code:
make (x|menu)config 
make dep && make modules && make modules_install

Last edited by moses; 01-20-2003 at 03:23 AM.
 
Old 01-20-2003, 03:35 AM   #6
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Thanks for your reply moses. I needed to build some drivers in to the kernel. But I had'nt compiled them as modules as well. So the modules that I had in the first place are unchanged.It's just that I forgot to compile things in the first time round.
Any, to my susrprise, the problem is still there after I did "make modules" and "make modules install"
"make modules" went fine. But when I wanted to do "make modules install" it asked me if I wanted to make boot disks, which I didn't. Then it complained that there was no lilo on /dev/hda, which is correct. There is no lilo on the mbr, I know that. Any way, it went down with an error. So I tried again, this time making the boot disks. Which worked in some much that there was no error.
But after all this, depmod is still complaining.
 
Old 01-20-2003, 03:46 AM   #7
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
No, no, no. . . You have to do:
Code:
make modules_install
you NEED the "_" between the words "modules" and "install"
 
Old 01-20-2003, 08:34 AM   #8
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Whups, forgot that. I will try as soon as I get the chance.
But wait, so what does "make modules install" do? It did somthing.
 
Old 01-20-2003, 08:41 AM   #9
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
make modules install

would be the same as running
make modules &&
make install

The make install is what failed. It tries to install the new kernel and add it to your lilo config.
 
Old 01-20-2003, 12:48 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Which in this situation is probably a good thing since you are having problems currently, so it didn't overwrite your old config's and such.

And I wasn't aware that you could do that Mik, thanks for the tip.

Cool
 
Old 01-20-2003, 01:15 PM   #11
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
I hope you guy's don't think i'm stupid now. God, i'm not a newbie any more so these crewups are really imberacing
BTW, make modules_install did the trick
 
Old 01-20-2003, 01:26 PM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I don't think you are stupid. Have you seen some of my questions lately? I think by now I should be able to write an Oreilly book, but I'm still on picture books

(Simpson's quote):
"It's all relative, I mean, is Moe that ugly, is Homer that bald, is Barney that fat stupid and drunk?" (Ok, so it's not completely accurate, I can't find a wav to help me out right now )



Anyway, it's all learning, we are all at LQ to learn, and luckily there are those here who also know ALOT and can help us to learn when we make these kinds of mistakes.

Cool
 
  


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
What does this mean: depmod: *** Unresolved symbols in /lib/modules... ? atheist Linux - Software 4 07-20-2004 02:30 PM
depmod -a error: Unresolved Symbols rose_bud4201 Linux - Software 2 04-23-2004 08:49 PM
Problem: depmod = Unresolved symbols the_rydster Slackware 2 02-27-2004 01:39 PM
depmod: *** Unresolved symbols in /lib/modules/2.2.14-5.0/scsi/megaraid.o rich_d_thomas Red Hat 0 09-01-2003 06:18 AM
unresolved symbols when doing depmod -a qanopus Linux - General 1 12-05-2002 10:43 PM

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

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