LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   depmod -a: *** Unresolved symbols in /lib/ .... (https://www.linuxquestions.org/questions/linux-general-1/depmod-a-%2A%2A%2A-unresolved-symbols-in-lib-42056/)

qanopus 01-19-2003 04:23 PM

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?

mcleodnine 01-19-2003 06:01 PM

make moules
make modules_install

MasterC 01-19-2003 06:22 PM

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

qanopus 01-20-2003 03:14 AM

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? :(

moses 01-20-2003 03:22 AM

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


qanopus 01-20-2003 03:35 AM

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.

moses 01-20-2003 03:46 AM

No, no, no. . . You have to do:
Code:

make modules_install
you NEED the "_" between the words "modules" and "install"

qanopus 01-20-2003 08:34 AM

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.

Mik 01-20-2003 08:41 AM

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.

MasterC 01-20-2003 12:48 PM

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

qanopus 01-20-2003 01:15 PM

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

MasterC 01-20-2003 01:26 PM

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 :D

(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 ;) )

:D

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


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