LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sensors (https://www.linuxquestions.org/questions/linux-software-2/sensors-237804/)

marco_f 10-02-2004 03:45 AM

Sensors
 
I people.. i'm follow a tuturial to install the lm-sensors but when i do make in the lm-sensors directory :

marco@Linux:~/lm_sensors-2.7.0$ make
gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/src/linux/include -I/usr/src/linux/include -O2 -c kernel/busses/i2c-ipmb.c -o kernel/busses/i2c-ipmb.o
kernel/busses/i2c-ipmb.c:56: error: `I2C_ALGO_IPMB' undeclared here (not in a function)
kernel/busses/i2c-ipmb.c:56: error: initializer element is not constant
kernel/busses/i2c-ipmb.c:56: error: (near initialization for `i2c_ipmb_algorithm.id')
make: *** [kernel/busses/i2c-ipmb.o] Error 1
marco@Linux:~/lm_sensors-2.7.0$

anyone know?

mdg 10-02-2004 05:32 AM

Are you using a 2.4 kernel? If you are, you need to install i2c-2.7.0 before installing lm_sensors-2.7.0



If you're using a 2.6 kernel, lm_sensors-2.7.0 is not recommended. Choose the version you need according to lm_sensors kernel info
Quote:

Recommended kernel and lm_sensors combinations:

* Kernels 2.6.5-rc1 and later: lm_sensors 2.8.6 or any later version
* Kernels 2.6.3-rc2 to 2.6.4: lm_sensors 2.8.5
* Kernels 2.6.2-rc1 to 2.6.3-rc1: lm_sensors 2.8.4
* Kernels 2.6.1-rc1 to 2.6.1: lm_sensors 2.8.3
* Kernels 2.6.0 and earlier: lm_sensors 2.8.2
2.6 kernel already has i2c included

marco_f 10-02-2004 07:57 AM

tks mdg..

yes, i use kernel 2.4.26...

i do make and make install on i2c-2.7.0 but the problem is the same.. make: *** [kernel/busses/i2c-ipmb.o] Error 1

mdg 10-02-2004 09:44 AM

You might not have your kernel-source installed. Go to a terminal and type "uname -r", then check if you have a full kernel tree in /lib/modules/(result of uname -r)/build

You should see (amongst others):
arch
crypto
Documentation
drivers
fs

If not, you'll need to download and install your kernel-source

marco_f 10-02-2004 12:40 PM

thanks again.. i'll do that

zorlock 11-18-2004 06:12 PM

Quote:

Originally posted by mdg
You might not have your kernel-source installed. Go to a terminal and type "uname -r", then check if you have a full kernel tree in /lib/modules/(result of uname -r)/build

You should see (amongst others):
arch
crypto
Documentation
drivers
fs

If not, you'll need to download and install your kernel-source

I am having this same problem. I checked my /lib/modules/2.4.26/build directory and it contains all directories mentioned above. What else could I look at?

HeWhoNeverSleep 11-18-2004 06:41 PM

right


All times are GMT -5. The time now is 01:54 PM.