lm_sensors-2.4.5 on RedHat 8.0 default kernel
Hi!
There is problem during compilation "lm_sensors-2.4.5"
on RedHat 8.0 kernel "2.4.18-14" (default installation kernel).
As it is known, RedHad uses deeply patced kernel with
"i2c" v2.6.3 built-in. It is _very_ difficult to change "i2c" to new version, so I need to build old "lm_sensors-2.4.5"
====== insmod works OK ====
[root@xeon ~]# insmod i2c-i801
[root@xeon ~]# dmesg
...
i2c-core.o: i2c core module
i2c-i801.o version 2.6.3 (20020322)
i2c-core.o: adapter SMBus I801 adapter at 0580 registered as adapter 0. i2c-i801.o: I801 bus detected and initialized
i2c-core.o: adapter unregistered: SMBus I801 adapter at 0580
=====
Unfortunately, it is impossible to build "lm_sensors-2.4.5"
with this kernel :( It seems, some *.h are changed, so I need to change "linux/malloc.h" --> "linux/slab.h" in all of files.
=======
[root@xeon lm_sensors-2.4.5]# make
..
..
gcc -I. -Ikernel/include -I/usr/local/include -I/usr/src/linux/include -O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -D__SMP__ -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c kernel/chips/lm80.c -o kernel/chips/lm80.o
In file included from kernel/chips/lm80.c:24:/usr/src/linux/include/linux/malloc.h:4:2: #error linux/malloc.h is deprecated, use linux/slab.h instead.
make: *** [kernel/chips/lm80.o] Error 1
=======
Is it possible to issue version "lm_sensors-2.4.5.1" for this kind of
kernels ?
--
-=AV=-
Quoted 9 lines
Hi!
There is problem during compilation "lm_sensors-2.4.5"
on RedHat 8.0 kernel "2.4.18-14" (default installation kernel).As it is known, RedHad uses deeply patced kernel with
"i2c" v2.6.3 built-in. It is _very_ difficult to change "i2c" to new version, so I need to build old "lm_sensors-2.4.5"
Why don't you build lm_sensors 2.6.3 instead? Usually, the good thing to do is to use a i2c version and a lm_sensors version as close as possible.
What's more, I know that Red Hat provide packages for lm_sensors for quite a good time now. Why don't you simply use them?
And, finally, it is not _that_ difficult to change i2c to a new version, as long as you don't use the newest 2.8.x releases. You don't have to patch your kernel. So you could think of installing i2c 2.7.0 and lm_sensors 2.7.0 instead of using older versions.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/