View previous topic :: View next topic |
Author |
Message |
mark_lagace Tux's lil' helper
Joined: 19 Nov 2002 Posts: 77 Location: Ottawa, Canada
|
Posted: Tue Nov 19, 2002 7:08 pm Post subject: Error: Failed to calculate dependencies |
|
|
I've been using the Slackware distribution of Linux for several years now to run a x86 machine as a router/firewall to share my DSL internet connection. Since I like to fiddle around way too much, I decided to blow away my Slackware Linux and try out Gentoo (since it came highly recommended by a friend).
I've installed Gentoo 1.4 rc1, using the vanilla-sources, and everything has gone relatively smoothly except that when I boot up I see the various services starting up and I get the following (error?) message:
Quote: |
* Calculating modules dependencies ...
* Failed to calculate module dependencies [ !! ]
|
Looking into this as closely as I can (I don't fully understand the init sequence at this point yet...) I could see that this message was generated from the modules script in the boot runlevel. /usr/sbin/update-modules was the command run.
When I run the command /usr/sbin/update-modules myself, here is the output:
Quote: |
/etc/modules.d/ppp: alias: `char-major-108' not found
/etc/modules.d/ppp: alias: `ppp_generic' not found
/etc/modules.d/ppp: alias: `/dev/ppp' not found
/etc/modules.d/ppp: alias: `ppp_generic' not found
/etc/modules.d/ppp: alias: `tty-ldisc-3' not found
/etc/modules.d/ppp: alias: `ppp_async' not found
/etc/modules.d/ppp: alias: `tty-ldisc-13' not found
/etc/modules.d/ppp: alias: `n_hdlc' not found
/etc/modules.d/ppp: alias: `tty-ldisc-14' not found
/etc/modules.d/ppp: alias: `ppp_synctty' not found
/etc/modules.d/ppp: alias: `ppp-compress-21' not found
/etc/modules.d/ppp: alias: `bsd_comp' not found
/etc/modules.d/ppp: alias: `ppp-compress-24' not found
/etc/modules.d/ppp: alias: `ppp_deflate' not found
/etc/modules.d/ppp: alias: `ppp-compress-26' not found
/etc/modules.d/ppp: alias: `ppp_deflate' not found
/etc/modules.d/ppp: alias: `net-pf-24' not found
/etc/modules.d/ppp: alias: `pppoe' not found
|
Since all of these errors seem to be generated by the /etc/modules.d/ppp file, I took a look in there. Here is a copy of that file:
Quote: |
alias char-major-108 ppp_generic
alias /dev/ppp ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-13 n_hdlc
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
alias net-pf-24 pppoe
|
Nothing spectacular jumps out at me there, so I decided to take a look in my /lib/modules directory to see if I was missing the needed modules. Some exist there, while others I couldn't see. Here's a directory listing from my net modules directory:
Quote: |
2.4.19/kernel/drivers/net:
3c509.o bsd_comp.o ne2k-pci.o ppp_synctty.o slhc.o
3c59x.o dummy.o ppp_async.o pppoe.o smc-ultra.o
8139too.o ewrk3.o ppp_deflate.o pppox.o winbond-840.o
8390.o mii.o ppp_generic.o shaper.o
|
Does anyone have any idea what "update-modules" is actually doing and why it's complaining about my ppp modules?
Thanks in advance,
Mark. |
|
Back to top |
|
|
Rajesh n00b
Joined: 12 Nov 2002 Posts: 14
|
Posted: Tue Nov 19, 2002 7:30 pm Post subject: |
|
|
Welcome to Gentoo!
Assuming that you need PPPOE and other ppp options in your kernel to get
DSL to work, simply recompile your kernel with all the needed PPP
options turned into modules and reboot.
In Slackware terms, the update-modules script, does a "depmod -a" to check
dependencies of all your installed modules against the running kernel,
and also it runs module init scripts from /etc/modules.d (like you would
from modules.conf or conf.modules.)
Once you have recompiled the ppp modules that you need, you can alias
the rest of the modules to off in /etc/modules.d/ppp to prevent messages
related to those modules during boot. E.g.:
Code: |
alias tty-ldisc-13 off
|
Good luck. |
|
Back to top |
|
|
iqt n00b
Joined: 23 Oct 2002 Posts: 23
|
Posted: Tue Nov 19, 2002 7:59 pm Post subject: |
|
|
Hi,
please check if the x flags are NOT set. update-modules tries to execute the files in that case.
correct: -rw-r--r-- 1 root root 242 Nov 19 20:49 ppp
wrong: -rwxr-xr-x 1 root root 242 Nov 19 20:49 ppp
Dirk |
|
Back to top |
|
|
mark_lagace Tux's lil' helper
Joined: 19 Nov 2002 Posts: 77 Location: Ottawa, Canada
|
Posted: Tue Nov 19, 2002 10:06 pm Post subject: |
|
|
Thanks for the quick responses! I had already compiled the kernel with all the ppp options I need configured as modules, so that wasn't the problem. Also depmod -a runs with no problems at all (which had me really confused at the beginning until I realized the startup script wasn't just running depmod )
iqt had the problem nailed - /etc/modules.d/ppp was listed as executable. Getting rid of the executable bit solved the problem.
Thanks again!
Mark. |
|
Back to top |
|
|
krueger n00b
Joined: 11 Dec 2002 Posts: 5 Location: Sweden
|
Posted: Wed Dec 11, 2002 8:06 am Post subject: |
|
|
Same problem here with update-modules and ppp related modules for 1.4 rc1-r2. Will try the solution found here.
Good work! _________________ /Krueger |
|
Back to top |
|
|
|