Trying to build the I2C kernel modules for sensor monitoring (lm_sensors). It dies with the error message posted below. The kernel works fine without I2C support. Kernel Version: * sys-kernel/gentoo-sources Latest version available: 2.4.19-r10 Latest version installed: 2.4.19-r10 Error Message: if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.19-gentoo-r10; fi depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r10/misc/i2c-hydra. o depmod: i2c_bit_del_bus_R88f4afaf depmod: i2c_bit_add_bus_R933524db depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r10/misc/i2c-i810.o depmod: i2c_bit_del_bus_R88f4afaf depmod: i2c_bit_add_bus_R933524db depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r10/misc/i2c-savage 4.o depmod: i2c_bit_del_bus_R88f4afaf depmod: i2c_bit_add_bus_R933524db depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r10/misc/i2c-via.o depmod: i2c_bit_del_bus_R88f4afaf depmod: i2c_bit_add_bus_R933524db depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r10/misc/i2c-voodoo 3.o depmod: i2c_bit_del_bus_R88f4afaf depmod: i2c_bit_add_bus_R933524db
I have just compiled the kernel with the same .config file using vanilla-sources (2.4.19) and it compiled properly. I have not actually tried booting into it though. oktay
I have upgraded to gcc 3.2-r4 (it was -r2 before) and tried again. Same issue. 'make modules_install' fails when installing the i2c modules (for different chipsets) that will go in /lib/modules/2.4.19-gentoo-r10/misc . Core i2c modules (those that go in kernel/drivers/i2c work properly. oktay
This is NOT a bug. You need to ensure that the deps you built your kernel against are the same as the ones you built your i2c modules. Additionally the deps will probably appear bad until you reboot into the newly compiled kernel.
Okay, then how do we insure that the deps are valid! I've tried make mrproper, the make dep && make clean bzImage modules modules_install and also done a make clean before running menuconfig. Same result - the errors listed below.
Well, I don't know if it's a bug but removing the following from /lib/modules/*/misc fixed the unsresolved references. i2c-hydra.o i2c-I810.o i2c-savage4.o i2c-via.o i2c-voodoo3.o Thanks to Peter Ruskin for this.