Skip to contentSkip to conversation

via-cputemp: can't compile it

lm-sensors singumal 3 participants 3 messages Oct 24, 2010 – Oct 26, 2010

lore
Share & tools
lore

singumal

author
#0 lore raw

V3.2.0 sensors-detect told me that my VIA M800 Mini-ITX has a VIA Nano thermal sensor. Checked the lm-sensors.org wiki on Devices as instructed. For the indicated via-cputemp driver, my CentOS 5.5 kernel is just 2.6.18 so I'd need to make a kernel module; got the Makefile and via-cputemp.c from the indicated site, but can't compile it, no instructions, doing "make" in a directory with those two files, I get a number of errors starting with:

via-cputemp.c: In function âvia_cputemp_probeâ:
via-cputemp.c:106: error: called object âcpu_dataâ is not a function

I already have the matching kernel-devel and kernel-headers installed in the system.

Please tell me what I am missing in assumptions or environment setup.

Also, in the main package, I noticed a "make install" grammar error:

*** * As off lm-sensors 3.1.0, ...

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 8 lines · singumal

V3.2.0 sensors-detect told me that my VIA M800 Mini-ITX has a VIA Nano thermal sensor. Checked the lm-sensors.org wiki on Devices as instructed. For the indicated via-cputemp driver, my CentOS 5.5 kernel is just 2.6.18 so I'd need to make a kernel module; got the Makefile and via-cputemp.c from the indicated site, but can't compile it, no instructions, doing "make" in a directory with those two files, I get a number of errors starting with:

Quoted 8 lines

via-cputemp.c: In function "via_cputemp_probe":
via-cputemp.c:106: error: called object "cpu_data" is not a function

I already have the matching kernel-devel and kernel-headers installed in the system.

Please tell me what I am missing in assumptions or environment setup.

Your kernel is simply too old for the via-cputemp driver as it exists today. You run kernel 2.6.18 and the via-cputemp was added in kernel 2.6.33, that's over 3 years apart.

So you will have to adjust the code yourself, or find someone who is willing to spend time on this task. But be aware that kernel developers usually don't work on old versions for free.

Quoted 4 lines

Also, in the main package, I noticed a "make install" grammar error:

   ***  * As off lm-sensors 3.1.0, ...

Thanks for reporting, I've just fixed it.

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to singumal
Quoted 18 lines · Jean Delvare
Quoted 8 lines · singumal

V3.2.0 sensors-detect told me that my VIA M800 Mini-ITX has a VIA Nano thermal sensor. Checked the lm-sensors.org wiki on Devices as instructed. For the indicated via-cputemp driver, my CentOS 5.5 kernel is just 2.6.18 so I'd need to make a kernel module; got the Makefile and via-cputemp.c from the indicated site, but can't compile it, no instructions, doing "make" in a directory with those two files, I get a number of errors starting with:

Quoted 8 lines

via-cputemp.c: In function "via_cputemp_probe":
via-cputemp.c:106: error: called object "cpu_data" is not a function

I already have the matching kernel-devel and kernel-headers installed in the system.

Please tell me what I am missing in assumptions or environment setup.

Quoted 8 lines

Your kernel is simply too old for the via-cputemp driver as it exists today. You run kernel 2.6.18 and the via-cputemp was added in kernel 2.6.33, that's over 3 years apart.

So you will have to adjust the code yourself, or find someone who is willing to spend time on this task. But be aware that kernel developers usually don't work on old versions for free.

Or just get and compile a more recent version, such as 2.6.35, on your system, and see if it boots. That is what I usually do.

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors