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

Bug 31250

Summary: Can't emerge lm-sensors with 2.6 kernel
Product: Gentoo Linux Reporter: Dmitry Platonov <shadowjack>
Component: New packagesAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED INVALID    
Severity: major CC: mholzer, radek
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 31695    

Description Dmitry Platonov 2003-10-16 01:30:07 UTC
2.6 kernel have now lm-sensors in main tree, so only userspace programs are 
needed.

Reproducible: Always
Steps to Reproduce:
1. emerge & build 2.6 kernel (tested with 
2. ln -sf /usr/src/linux-beta /usr/src/linux
3. emerge lm-sensors (tested with lm-sensors-2.7.0-r1)

Actual Results:  
<skip>
Makefile:234: kernel/busses/i2c-voodoo3.d: No such file or directory
Makefile:234: kernel/chips/smartbatt.d: No such file or directory
Makefile:234: kernel/chips/smbus-arp.d: No such file or directory
Makefile:234: kernel/chips/vt8231.d: No such file or directory
Makefile:234: kernel/chips/adm1021.d: No such file or directory
Makefile:234: kernel/chips/adm1024.d: No such file or directory
Makefile:234: kernel/chips/adm1025.d: No such file or directory
Makefile:234: kernel/chips/adm9240.d: No such file or directory
Makefile:234: kernel/chips/bt869.d: No such file or directory
Makefile:234: kernel/chips/ddcmon.d: No such file or directory
Makefile:234: kernel/chips/ds1621.d: No such file or directory
Makefile:234: kernel/chips/eeprom.d: No such file or directory
Makefile:234: kernel/chips/fscpos.d: No such file or directory
Makefile:234: kernel/chips/fscscy.d: No such file or directory
Makefile:234: kernel/chips/gl518sm.d: No such file or directory
Makefile:234: kernel/chips/gl520sm.d: No such file or directory
Makefile:234: kernel/chips/it87.d: No such file or directory
Makefile:234: kernel/chips/lm75.d: No such file or directory
Makefile:234: kernel/chips/lm78.d: No such file or directory
Makefile:234: kernel/chips/lm80.d: No such file or directory
Makefile:234: kernel/chips/lm87.d: No such file or directory
Makefile:234: kernel/chips/lm92.d: No such file or directory
Makefile:234: kernel/chips/ltc1710.d: No such file or directory
Makefile:234: kernel/chips/matorb.d: No such file or directory
Makefile:234: kernel/chips/maxilife.d: No such file or directory
Makefile:234: kernel/chips/mtp008.d: No such file or directory
Makefile:234: kernel/chips/pcf8574.d: No such file or directory
Makefile:234: kernel/chips/pcf8591.d: No such file or directory
Makefile:234: kernel/chips/sis5595.d: No such file or directory
Makefile:234: kernel/chips/smsc47m1.d: No such file or directory
Makefile:234: kernel/chips/thmc50.d: No such file or directory
Makefile:234: kernel/chips/w83781d.d: No such file or directory
Makefile:234: kernel/chips/via686a.d: No such file or directory
Makefile:234: kernel/chips/vt1211.d: No such file or directory
Makefile:234: lib/data.ld: No such file or directory
Makefile:234: lib/general.ld: No such file or directory
Makefile:234: lib/error.ld: No such file or directory
Makefile:234: lib/chips.ld: No such file or directory
Makefile:234: lib/proc.ld: No such file or directory
Makefile:234: lib/access.ld: No such file or directory
Makefile:234: lib/init.ld: No such file or directory
Makefile:234: lib/data.ad: No such file or directory
Makefile:234: lib/general.ad: No such file or directory
Makefile:234: lib/error.ad: No such file or directory
Makefile:234: lib/chips.ad: No such file or directory
Makefile:234: lib/proc.ad: No such file or directory
Makefile:234: lib/access.ad: No such file or directory
Makefile:234: lib/init.ad: No such file or directory
Makefile:234: prog/sensors/main.rd: No such file or directory
Makefile:234: prog/sensors/chips.rd: No such file or directory
Makefile:234: prog/dump/isadump.rd: No such file or directory
Makefile:234: prog/dump/i2cdump.rd: No such file or directory
Makefile:234: prog/dump/i2cset.rd: No such file or directory
Makefile:234: prog/detect/i2cdetect.rd: No such file or directory
Makefile:234: prog/detect/dmidecode.rd: No such file or directory
<skip>
kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or 
greater required!
kernel/busses/i2c-ali15x3.c:158: conflicting types for `cleanup_module'
/lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:48: previous 
declaration of `cleanup_module'
kernel/busses/i2c-ali15x3.c: In function `ali15x3_setup':
kernel/busses/i2c-ali15x3.c:242: warning: `check_region' is deprecated (declared 
at /lib/modules/2.6.0-test7-bk3/build/include/linux/ioport.h:118)
kernel/busses/i2c-ali1535.c:167: conflicting types for `cleanup_module'
/lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:48: previous 
declaration of `cleanup_module'
kernel/busses/i2c-ali1535.c: In function `ali1535_setup':
kernel/busses/i2c-ali1535.c:245: warning: `check_region' is deprecated (declared 
at /lib/modules/2.6.0-test7-bk3/build/include/linux/ioport.h:118)
kernel/busses/i2c-ali15x3.c: In function `ali15x3_inc':
kernel/busses/i2c-ali15x3.c:563: warning: `MOD_INC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:482)
kernel/busses/i2c-ali15x3.c: In function `ali15x3_dec':
kernel/busses/i2c-ali15x3.c:569: warning: `MOD_DEC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:494)
kernel/busses/i2c-ali15x3.c: At top level:
kernel/busses/i2c-ali15x3.c:631: warning: data definition has no type or storage 
class
kernel/busses/i2c-ali1535.c: In function `ali1535_inc':
kernel/busses/i2c-ali1535.c:596: warning: `MOD_INC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:482)
kernel/busses/i2c-ali1535.c: In function `ali1535_dec':
kernel/busses/i2c-ali1535.c:602: warning: `MOD_DEC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:494)
kernel/busses/i2c-ali1535.c: At top level:
kernel/busses/i2c-ali1535.c:669: warning: data definition has no type or storage 
class
make: *** [kernel/busses/i2c-ali15x3.o] 
Comment 1 Dmitry Platonov 2003-10-16 01:30:07 UTC
2.6 kernel have now lm-sensors in main tree, so only userspace programs are 
needed.

Reproducible: Always
Steps to Reproduce:
1. emerge & build 2.6 kernel (tested with 
2. ln -sf /usr/src/linux-beta /usr/src/linux
3. emerge lm-sensors (tested with lm-sensors-2.7.0-r1)

Actual Results:  
<skip>
Makefile:234: kernel/busses/i2c-voodoo3.d: No such file or directory
Makefile:234: kernel/chips/smartbatt.d: No such file or directory
Makefile:234: kernel/chips/smbus-arp.d: No such file or directory
Makefile:234: kernel/chips/vt8231.d: No such file or directory
Makefile:234: kernel/chips/adm1021.d: No such file or directory
Makefile:234: kernel/chips/adm1024.d: No such file or directory
Makefile:234: kernel/chips/adm1025.d: No such file or directory
Makefile:234: kernel/chips/adm9240.d: No such file or directory
Makefile:234: kernel/chips/bt869.d: No such file or directory
Makefile:234: kernel/chips/ddcmon.d: No such file or directory
Makefile:234: kernel/chips/ds1621.d: No such file or directory
Makefile:234: kernel/chips/eeprom.d: No such file or directory
Makefile:234: kernel/chips/fscpos.d: No such file or directory
Makefile:234: kernel/chips/fscscy.d: No such file or directory
Makefile:234: kernel/chips/gl518sm.d: No such file or directory
Makefile:234: kernel/chips/gl520sm.d: No such file or directory
Makefile:234: kernel/chips/it87.d: No such file or directory
Makefile:234: kernel/chips/lm75.d: No such file or directory
Makefile:234: kernel/chips/lm78.d: No such file or directory
Makefile:234: kernel/chips/lm80.d: No such file or directory
Makefile:234: kernel/chips/lm87.d: No such file or directory
Makefile:234: kernel/chips/lm92.d: No such file or directory
Makefile:234: kernel/chips/ltc1710.d: No such file or directory
Makefile:234: kernel/chips/matorb.d: No such file or directory
Makefile:234: kernel/chips/maxilife.d: No such file or directory
Makefile:234: kernel/chips/mtp008.d: No such file or directory
Makefile:234: kernel/chips/pcf8574.d: No such file or directory
Makefile:234: kernel/chips/pcf8591.d: No such file or directory
Makefile:234: kernel/chips/sis5595.d: No such file or directory
Makefile:234: kernel/chips/smsc47m1.d: No such file or directory
Makefile:234: kernel/chips/thmc50.d: No such file or directory
Makefile:234: kernel/chips/w83781d.d: No such file or directory
Makefile:234: kernel/chips/via686a.d: No such file or directory
Makefile:234: kernel/chips/vt1211.d: No such file or directory
Makefile:234: lib/data.ld: No such file or directory
Makefile:234: lib/general.ld: No such file or directory
Makefile:234: lib/error.ld: No such file or directory
Makefile:234: lib/chips.ld: No such file or directory
Makefile:234: lib/proc.ld: No such file or directory
Makefile:234: lib/access.ld: No such file or directory
Makefile:234: lib/init.ld: No such file or directory
Makefile:234: lib/data.ad: No such file or directory
Makefile:234: lib/general.ad: No such file or directory
Makefile:234: lib/error.ad: No such file or directory
Makefile:234: lib/chips.ad: No such file or directory
Makefile:234: lib/proc.ad: No such file or directory
Makefile:234: lib/access.ad: No such file or directory
Makefile:234: lib/init.ad: No such file or directory
Makefile:234: prog/sensors/main.rd: No such file or directory
Makefile:234: prog/sensors/chips.rd: No such file or directory
Makefile:234: prog/dump/isadump.rd: No such file or directory
Makefile:234: prog/dump/i2cdump.rd: No such file or directory
Makefile:234: prog/dump/i2cset.rd: No such file or directory
Makefile:234: prog/detect/i2cdetect.rd: No such file or directory
Makefile:234: prog/detect/dmidecode.rd: No such file or directory
<skip>
kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or 
greater required!
kernel/busses/i2c-ali15x3.c:158: conflicting types for `cleanup_module'
/lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:48: previous 
declaration of `cleanup_module'
kernel/busses/i2c-ali15x3.c: In function `ali15x3_setup':
kernel/busses/i2c-ali15x3.c:242: warning: `check_region' is deprecated (declared 
at /lib/modules/2.6.0-test7-bk3/build/include/linux/ioport.h:118)
kernel/busses/i2c-ali1535.c:167: conflicting types for `cleanup_module'
/lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:48: previous 
declaration of `cleanup_module'
kernel/busses/i2c-ali1535.c: In function `ali1535_setup':
kernel/busses/i2c-ali1535.c:245: warning: `check_region' is deprecated (declared 
at /lib/modules/2.6.0-test7-bk3/build/include/linux/ioport.h:118)
kernel/busses/i2c-ali15x3.c: In function `ali15x3_inc':
kernel/busses/i2c-ali15x3.c:563: warning: `MOD_INC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:482)
kernel/busses/i2c-ali15x3.c: In function `ali15x3_dec':
kernel/busses/i2c-ali15x3.c:569: warning: `MOD_DEC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:494)
kernel/busses/i2c-ali15x3.c: At top level:
kernel/busses/i2c-ali15x3.c:631: warning: data definition has no type or storage 
class
kernel/busses/i2c-ali1535.c: In function `ali1535_inc':
kernel/busses/i2c-ali1535.c:596: warning: `MOD_INC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:482)
kernel/busses/i2c-ali1535.c: In function `ali1535_dec':
kernel/busses/i2c-ali1535.c:602: warning: `MOD_DEC_USE_COUNT' is deprecated 
(declared at /lib/modules/2.6.0-test7-bk3/build/include/linux/module.h:494)
kernel/busses/i2c-ali1535.c: At top level:
kernel/busses/i2c-ali1535.c:669: warning: data definition has no type or storage 
class
make: *** [kernel/busses/i2c-ali15x3.o] ïÛÉÂËÁ 1
make: *** ïÖÉÄÁÎÉÅ ÚÁ×ÅÒÛÅÎÉÑ ÚÁÄÁÎÉÊ...
make: *** [kernel/busses/i2c-ali1535.o] ïÛÉÂËÁ 1

!!! 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:  
correct merging

Portage 2.0.49-r13 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test7-bk3)
=================================================================
System uname: 2.6.0-test7-bk3 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config 
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/new/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt encode foomaticdb gif jpeg libg++ libwww mad mikmod mpeg 
ncurses nls pdflib png quicktime spell truetype xml2 xv zlib gdbm berkdb slang 
readline svga ggi tcltk java guile ruby X sdl gpm tcpd pam ssl perl python imlib 
oggvorbis motif cdr dvd -xmms -3dnow -cups opengl gtk gtk2 -gnome alsa oss -qt 
-kde -esd -arts"
Comment 2 Dmitry Platonov 2003-10-16 01:32:22 UTC
Kernel is development-sources-2.6.0_beta7-r3
Comment 3 Brian Jackson (RETIRED) gentoo-dev 2003-10-16 08:15:35 UTC
What exactly are you trying to get? The modules aren't going to work with
2.6 since the module structure has changed drastically. If you are just trying
to get the sensors-detect script then write an ebuild that pulls that out
of the tarball and installs just that. If it looks good we'll add it to portage.
Comment 4 Dmitry Platonov 2003-10-16 09:54:52 UTC
I'd like to get correct build of userspace (libsensors and sensors).
There is no need for modules, as kernel part is now in main 2.6 kernel tree
(at least, stable drivers).
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2003-10-31 14:49:44 UTC
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket=1379

<quote>

Userspace tools for kernel 2.6 are not yet available.  The kernel modules
in our
2.8.0 release and in CVS are not compatible with kernel 2.6.

However, with kernel 2.6, the raw values are available via sysfs; look around
in
/sys/bus/i2c.

</quote>
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-12-21 07:58:14 UTC
lm-sensors 2.8.1 should work
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2003-12-21 08:46:09 UTC
Nope; it's 2.8.2 which should have lm-sensors support.