Skip to contentSkip to conversation

error when compiling lm_sensors

DISCUSSION Edouard Debry 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

hello,

I had some pb to install lm_sensors_2.8.3 package, I did not know who to talk to about this pb, so I first apologize if this mail disturbs you

I currently run a 2.4.22 kernel ( slackware 9.1 ) and I tried to install lm_sensors_2.8.3 package

first I patched the kernel with the advised patches on your downlaod page :

Quoted 5 lines

Users whose systems require additional i2c-related kernel modules (bttv, i2c-matrox, rivatv, zoran...) will require additional patches for the Linux 2.4.21 and 2.4.22 kernels. These patches fix compatibility differences between i2c-2.8.0 and the Linux 2.4 kernels. A complete installation guide is available here (and mirrored here).

the patch is called : unified patch for Linux 2.4.22 (i2c-2.8.2) then I recompiled my kernel, with all i2c software in modules it did well

then I downloaded : lm_sensors-2.8.3.tar.gz (FTP)
untared it and simply typed 'make' (as root) in the created lm-sensors directory, the compilation seemed to go well until I get a compilation error with one chip module wt**.c , sorry I did not remember the exact error message bu it told that there was one undefined variable

my config is a MSI K7N2delta-l ( chip nforce2 ) and a cpu : AMD duron

do you know this problem ? may be there was an option to pass with 'make' command that I would have forgotten, may be when reading what I have done you will obviously notice that I have forgotten one step

looking forward to hearing you
edouard

Signature · 9 lines
*-----------------------------------------------------------------*
|                          Edouard DEBRY                          |
| Ph-D student at E.N.P.C - C.E.R.E.A   http://www.enpc.fr/cerea/ |
|                                                                 |
| 21 Rue Nobel, Cité Descartes        TEL  : 33 1 64 15 21 52     |
| 77455 CHAMPS SUR MARNE              MAIL : [email protected]  |
|                                                                 |
| Thesis subject: MODELING OF AN ATMOSPHERIC AEROSOL DISTRIBUTION |
*-----------------------------------------------------------------*
#1 lore raw

[Please reply to the list, not to me directly.]

Quoting Edouard Debry <[email protected]>:

Quoted 3 lines

I had some pb to install lm_sensors_2.8.3 package, I did not know who to talk to about this pb, so I first apologize if this mail disturbs you

This is the right address for that kind of report.

Quoted 6 lines

I currently run a 2.4.22 kernel ( slackware 9.1 ) and I tried to install lm_sensors_2.8.3 package

first I patched the kernel with the advised patches on your downlaod page :
(...)

This is correct.

Quoted 5 lines

the patch is called : unified patch for Linux 2.4.22 (i2c-2.8.2) then I recompiled my kernel, with all i2c software in modules it did well

then I downloaded : lm_sensors-2.8.3.tar.gz (FTP)

This is likely to cause trouble. lm-sensors-2.8.3 needs a few IDs that are not in i2c-2.8.2.

Quoted 5 lines

untared it and simply typed 'make' (as root) in the created lm-sensors directory, the compilation seemed to go well until I get a compilation error with one chip module wt**.c , sorry I did not remember the exact error message bu it told that there was one undefined variable

More likely undefined constant in w83l785ts.c.

Quoted 6 lines

my config is a MSI K7N2delta-l ( chip nforce2 ) and a cpu : AMD duron

do you know this problem ? may be there was an option to pass with 'make' command that I would have forgotten, may be when reading what I have done you will obviously notice that I have forgotten one step

You did the correct thing except that the versions of i2c and lm_sensors don't match.

You can do one of the following things to solve the problem:

* Install lm_sensors 2.8.2 instead of 2.8.3.

* Manually copy a recent version of i2c-id.h to the correct place in your kernel source tree (include/linux). You can get a bleeding-edge version of that file here:
http://www2.lm-sensors.nu/~lm78/cvs/i2c/kernel/i2c-id.h
No need to recompile your kernel, just retry compiling lm_sensors and it should be fine.

* Use "make -k", which will ignore the error. Only the w83l785ts driver should be missing, so unless you need this paricular one, you won't care.

My personal choice would go to solution #2.

Let us know how it goes.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Edouard Debry
Quoted 2 lines

I currently run a 2.4.22 kernel ( slackware 9.1 ) and I tried to install lm_sensors_2.8.3 package

Oh, BTW: Slackware 9.1 has updated 2.4.24 kernel packages. Using these should also solve your problem (since we offer a patch based on i2c-2.8.3 for this version of the kernel).

But do as you wish.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/