Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26848 - lm-sensors doesn't compile
Summary: lm-sensors doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
: 31161 (view as bug list)
Depends on: 31180
Blocks:
  Show dependency tree
 
Reported: 2003-08-18 01:44 UTC by Philippe Lafoucrière
Modified: 2003-11-21 08:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Lafoucrière 2003-08-18 01:44:00 UTC
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)
Comment 1 Akinori Hattori gentoo-dev 2003-08-18 07:33:12 UTC
http://forums.gentoo.org/viewtopic.php?t=66323
Comment 2 Torgeir Hansen 2003-10-17 05:32:46 UTC
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.. 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-10-30 13:43:48 UTC
*** Bug 31161 has been marked as a duplicate of this bug. ***
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-11-21 08:58:33 UTC
fixed in cvs