I can't emerge lm-sensors on a fresh 1.4 install. All I2C modules has been compiled successfully with gentoo-sources-2.4.20-r6. Reproducible: Always Steps to Reproduce: 1. emerge lm-sensors 2. 3. Actual Results: [...] gcc -DMODVERSIONS -include /lib/modules/2.4.20-gentoo-r6/build/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/var/tmp/portage/lm-sensors-2.7.0-r1/work/i2c-headers -I/lib/modules/2.4.20-gentoo-r6/build/include -O2 -mcpu=i686 -O3 -pipe -c kernel/busses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or greater required! kernel/busses/i2c-amd8111.c: In function `amd8111_access': kernel/busses/i2c-amd8111.c:238: `I2C_CLIENT_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:238: (Each undeclared identifier is reported only once kernel/busses/i2c-amd8111.c:238: for each function it appears in.) kernel/busses/i2c-amd8111.c:298: `I2C_SMBUS_BLOCK_PROC_CALL' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:309: `I2C_SMBUS_WORD_DATA_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:310: `I2C_SMBUS_BLOCK_DATA_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:311: `I2C_SMBUS_PROC_CALL_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:312: `I2C_SMBUS_BLOCK_PROC_CALL_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c: In function `amd8111_func': kernel/busses/i2c-amd8111.c:385: `I2C_FUNC_SMBUS_BLOCK_PROC_CALL' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:386: `I2C_FUNC_SMBUS_HWPEC_CALC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c: In function `amd8111_probe': kernel/busses/i2c-amd8111.c:426: `I2C_HW_SMBUS_AMD8111' undeclared (first use in this function) make: *** [kernel/busses/i2c-amd8111.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-apps/lm-sensors-2.7.0-r1 failed. !!! Function src_compile, Line 45, Exitcode 2 !!! lm_sensors requires the source of a compatible kernel\nversion installed in /usr/src/linux and >=i2c-2.7.0 support built as a modules this support is included in gentoo-sources as of 2.4.20-r1 Expected Results: a successfull emerge trying to emerge on an IBM Netvista pIII 750. lspci output : 00:00.0 Host bridge: Intel Corp. 82810E DC-133 GMCH [Graphics Memory Controller Hub] (rev 03) 00:01.0 VGA compatible controller: Intel Corp. 82810E DC-133 CGC [Chipset Graphics Controller] (rev 03) 00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 02) 00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 02) 00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02) 00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 02) 00:1f.3 SMBus: Intel Corp. 82801AA SMBus (rev 02) 00:1f.5 Multimedia audio controller: Intel Corp. 82801AA AC'97 Audio (rev 02) 01:00.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 08)
http://forums.gentoo.org/viewtopic.php?t=66323
I got this error even when I disabled I2C from kernel-config section "I2C Device Support", however I'd acually enabled it under 'Character Devices -> I2C Support" might be worth a look, it appears that the forum-link addresses another problem. here's the clue: kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or greater that the error message is printed includes "kernel\nversion" should also be considered a bug, as the function used obviously does not handle '\n' as the maintainer of this package thought it would..
*** Bug 31161 has been marked as a duplicate of this bug. ***
fixed in cvs