LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2004, 08:29 AM   #1
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Rep: Reputation: 15
help - "unresolved symbols" configuring kernel 2.62


I am trying to configure and install kernel-2.6.2 onto my system (dual-boot, RH9 and WinXP). These are the steps I have successfully managed: extracting tarball, make config (I chose the option for PII computers), make dep ,and make clean . All ran without error. I then ran make bzImage , and make modules without difficulty. However, when I ran make modules_install the following error was generated:

[root@localhost linux-2.6.2]# make modules
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
Building modules, stage 2.
MODPOST
[root@localhost linux-2.6.2]# make modules_install
depmod: *** Unresolved symbols in /lib/modules/2.4.24/kernel/crypto/autoload.o
depmod: *** Unresolved symbols in /lib/modules/2.4.24/kernel/crypto/proc.o
Warning: you may need to install module-init-tools
See (there is an URL here, but the forum will not let me post it)
INSTALL drivers/net/dummy.ko
INSTALL fs/smbfs/smbfs.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.2; fi


I went to the suggested link (which the forum will not allow me to post) and saw that this was a "known gotcha"

Known gotchas.
~~~~~~~~~~~~~~
Certain known bugs are being reported over and over. Here are the
workarounds.
... snip ...
- depmod reports Unresolved symbols? depmod from modutils instead of
depmod from module-init-tools is first in $PATH (might be different
$PATHs as $USER and $ROOT)

My problem, is I do not know what I am supposed to do at this point, or how to do it. It appears that I have to re-order the commands in my $PATH, though I am not sure where that is, or how to do it.

Can anyone provide some help?
 
Old 02-08-2004, 09:30 AM   #2
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
I'm don't think this would effect anything, but instead of running make dep/bzimage/modules, you can just run 'make'. If you type 'make help' it puts a * by each thing that is done when you run 'make'.

If you have installed the correct version of module-init-tools, try appending .OLD to the end of the old binaries (move the old depmod to depmod.OLD, etc.).
That worked fine for me back under 2.6.0-test1, and should still work with 2.6.2.
You can always move the old binaries back to their original file names if you end up needing to.
 
Old 02-08-2004, 10:39 AM   #3
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
[QUOTE]Originally posted by pilot1
[B]I'm don't think this would effect anything, but instead of running make dep/bzimage/modules, you can just run 'make'.

I receive the same error messages.

If you have installed the correct version of module-init-tools, try appending .OLD to the end of the old binaries (move the old depmod to depmod.OLD, etc.).

Now for the newbie question. How do I find out if I have installed teh correct version of module-init-tools?

I appreciate the help you are giving me.
 
Old 02-08-2004, 10:59 AM   #4
Hcman
Member
 
Registered: Jan 2003
Location: Holland
Distribution: OpenBSD 3.6 - Arch Linux 0.7
Posts: 210

Rep: Reputation: 30
What does 'modprobe -V' return?

For me it returns 'module-init-tools version 0.9.14' and I'm running 2.6.1 without any problems.

Something weird is going on there though cuz it is complaining about unresolved symbols in the 2.4.24 module dir. Did you edit the makefile at all?

You also might wanna try to do 'make menuconfig' instead of 'make config'. This will give you a nice ncurses window where you can easily configure your kernel.

HC
 
Old 02-08-2004, 11:40 AM   #5
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Hcman
What does 'modprobe -V' return?

For me it returns 'module-init-tools version 0.9.14' and I'm running 2.6.1 without any problems.

HC

'modprobe -V' returned the following:

[root@localhost linux-2.6.2]# /sbin/modprobe -V
modprobe version 2.4.22
modprobe: Nothing to load ???
Specify at least a module or a wildcard like \*

perhaps I am not compiling the kernel properly?

If I need to install the 'module-init-tools' module, would this be found if I run 'make menuconfig'?

Thanks again.
 
Old 02-08-2004, 01:39 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you need to install the module-init-tools. It's a requirement since kernel 2.5.something. Download the sources and then make sure you follow the instructions in the README file (if you don't, bad things might happen) and also look at the FAQ if errors occur.

Whether or not you need this won't be found with menuconfig. But your output of modprobe -V shows that you don't have the module-init-tools installed. I would use make xconfig, though, since it's much easier to deal with.
 
Old 02-08-2004, 03:59 PM   #7
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks for the help! I'll try what you suggested and will post the result here.
 
Old 02-08-2004, 05:53 PM   #8
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
On second glance, the Unresolved Symbols error messages don't appear to be anything that matters. Once you install module-init-tools, 2.6 should run fine.
 
Old 02-08-2004, 09:58 PM   #9
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
I have downloaded and installed module-init-tools following the instructions that come with the download.

However, when I use the modprobe command, I still do not see the module:

[root@localhost linux-2.6.2]# /sbin/modprobe module-init-tools
modprobe: Can't locate module module-init-tools

Do I need to rebuild the 2.6.2 kernel againl at this point? Or is there something else that I am not doing correctly?

Thanks for your help!
 
Old 02-08-2004, 11:24 PM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
module-init-tools is not a module. It replaces the old versions of modprobe, insmod and the like with new versions. Try
/sbin/modprobe -V
If everything installed correctly, you should get something like

module-init-tools version 3.0-pre9

as output. Do
make modules_install
again. And then do whatever you still need to do to get things going (like moving the right files to /boot and making changes to lilo.conf or grub).
 
Old 02-09-2004, 12:14 AM   #11
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Something is not working right. I have just run modprobe -V again and got the following output:

[root@localhost michael]# /sbin/modprobe -V
modprobe version 2.4.22
modprobe: Nothing to load ???
Specify at least a module or a wildcard like \*

Any ideas? I am about ready to give up on upgrading the kernel.
 
Old 02-09-2004, 10:29 AM   #12
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
when you installed module-init-tools, where did you install it? If you did just
./configure
then it got installed in /usr/local/sbin and not /sbin. You can check with
whereis modprobe

btw, I think it's better to install it in /sbin.
 
Old 02-09-2004, 04:15 PM   #13
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
Type "whereis modprobe"
If you see it's installed to multiple sbin directories, that's your problem. Find out which one is the old one, and move it.
 
Old 02-10-2004, 07:01 AM   #14
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Here is the output from whereis modprobe .

[root@localhost michael]# whereis modprobe
modprobe: /sbin/modprobe /sbin/modprobe.old /etc/modprobe.conf /usr/share/man/man8/modprobe.8

It looks like I have modprobe in /sbin. What else should I be checking? Thanks again!
 
Old 02-10-2004, 07:05 AM   #15
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
hmm..
Do "/sbin/modprobe -V"
and then "/sbin/modprobe.old -V" just to see what it says
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what does "depmod: *** Unresolved symbols" mean when compiling 2.4.25 kernel? andrewstr Linux - Software 2 03-01-2004 03:01 PM
Configuring kernel: Impact of "Y" or "N" vs. "M" Mark_E_Wallace Linux - Newbie 2 02-22-2004 07:02 PM
kernel 2.6.0 debian "No module symbols loaded - kernel modules not enabled." toovato Linux - General 2 01-07-2004 08:56 PM
"Unresolved symbols" when compiling kernel. Uncreative Slackware 6 05-09-2003 11:44 AM
kernel symbols have no "goo" bbeers Slackware 2 08-06-2002 08:47 AM


All times are GMT -5. The time now is 09:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration