Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 62896

Summary: nvidia-kernel could not be loaded by 2.6.7 kernel because of unresolved symbols
Product: Gentoo Linux Reporter: Christoph Peltz <firefreaky>
Component: [OLD] UnspecifiedAssignee: Gentoo X packagers <x11>
Status: VERIFIED FIXED    
Severity: normal CC: tklauser
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christoph Peltz 2004-09-05 02:29:54 UTC
I have tried with gentoo-dev-2.6.7-r1 r6 r13 and 2.6.8-r3 to load the nvidia-kernel module, but as I emerged it i got many unresolved symbols errors:
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/a3d.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/adi.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/analog.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/cobra.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/cs461x.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/db9.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/emu10k1-gp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/gamecon.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/gf2k.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/grip.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/iforce.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/interact.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/lightning.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/magellan.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/ns558.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/pcigame.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/serport.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/sidewinder.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/spaceball.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/spaceorb.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/stinger.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/tmdc.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/turbografx.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/drivers/char/joystick/warrior.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/misc/svgalib_helper.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_REJECT.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_ah.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_conntrack.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_dscp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_ecn.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_esp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_helper.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_length.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_limit.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_mac.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_mark.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_multiport.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_pkttype.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_recent.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_state.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_stealth.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_tcpmss.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_tos.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/kernel/net/ipv4/netfilter/ipt_ttl.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/video/nvidia.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-gentoo-r5/misc/svgalib_helper.o

ATM I am using 2.4.22-gentoo-r5 like you can see above, but the same error comes with a running 2.6.7 kernel.
But with a 2.6.7 the modutils prints QM-MODULE: Not implemented (something like that, sry I do not have the message exactly anymore)
BTW I am using 6111 of the nvidia-kernel, but the error occures even with 6106.

Reproducible: Always
Steps to Reproduce:
1. Install a kernel 2.6.7 or higher
2. Emerge nvidia-kernel 6111
3.
Actual Results:  
nvidia-kernel cannot be loaded

Expected Results:  
nvidia-kernel should be loaded

AMD Athlon 2000+, 
512 MB DDR-RAM, 
GeForce 4 Ti 4200 with 128 MB DDR, 
Standard Via Motherboard
Comment 1 tklauser 2004-09-05 13:20:51 UTC
Are you having any error messages during the compilation of the kernel oder the nvidia-module? Are you having problems only with nvidia.{ko,o} or with other modules too?
Comment 2 Andrew Bevitt 2004-09-05 17:24:13 UTC
Check /usr/src/linux points to the proper directory you wish to build nvidia against.
Comment 3 Christoph Peltz 2004-09-06 01:53:34 UTC
1. The link in /usr/src ist correct, it points to /usr/src/linux-2.6.7-gentoo-r6
2. No error messages during compiling, only a warning, but thats always the case with 2.6 kernels, something about void-Pointers:
In file included from include/linux/list.h:7,
                 from include/linux/wait.h:14,
                 from include/asm/semaphore.h:41,
                 from include/linux/sched.h:18,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.6111/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
                 from /var/tmp/portage/nvidia-kernel-1.0.6111/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic

And I now have seen a ebuild warning:
* By not using the kernel's ability to output to an alternative
* directory, some external module builds may fail.

Maybe theres the failure?

3. No I do not have any problems with other modules only with the nvidia.ko (okai, its the one and only module, everything else I need is directly in the kernel)
Comment 4 tklauser 2004-09-06 02:04:02 UTC
Supid questioen, but did you actually compile in support for modules since you have no other modules? If so, compile some features as a module and try to load them. Check if there are any unresolved symbols too.
Comment 5 tklauser 2004-09-06 02:04:52 UTC
Stupid question, but did you actually compile the kernel with support for modules since you have no other modules? If so, compile some features as a module and try to load them. Check if there are any unresolved symbols with them too.
Comment 6 Christoph Peltz 2004-09-06 13:09:14 UTC
Yes, I compiled support for modules, module versioning, unloading and forced unloading, etc...
Comment 7 Andrew Bevitt 2004-09-09 17:42:02 UTC
Did you run : make modules_install

You need to even if you dont have any modules (for some reason but basically) to ensure the proper module environment for the kernel exists
Comment 8 Christoph Peltz 2004-09-21 22:58:36 UTC
I have used genkernel to compile the kernel and the modules and install them. They seem to be at the right place.
Comment 9 Christoph Peltz 2004-09-22 12:41:46 UTC
I've got rid of these bug. Thebreaking point was the new vesa-driver I have used in the kernels above 2.6.5 (vesa-tng), it even hang-up my system or broke my ethernet-card once. Now it works very fine with the old vesa driver (vesa).

Comment 10 Christoph Peltz 2004-09-30 00:15:20 UTC
I think after a week I mark this bug as closed.