All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] via-cputemp: can't compile it
@ 2010-10-24  4:20 singumal
  2010-10-26 13:30 ` Jean Delvare
  2010-10-26 14:01 ` Guenter Roeck
  0 siblings, 2 replies; 3+ messages in thread
From: singumal @ 2010-10-24  4:20 UTC (permalink / raw)
  To: lm-sensors

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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] via-cputemp: can't compile it
  2010-10-24  4:20 [lm-sensors] via-cputemp: can't compile it singumal
@ 2010-10-26 13:30 ` Jean Delvare
  2010-10-26 14:01 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2010-10-26 13:30 UTC (permalink / raw)
  To: lm-sensors

On Sat, 23 Oct 2010 21:20:17 -0700, singumal wrote:
> 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.

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.

> 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.

-- 
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] via-cputemp: can't compile it
  2010-10-24  4:20 [lm-sensors] via-cputemp: can't compile it singumal
  2010-10-26 13:30 ` Jean Delvare
@ 2010-10-26 14:01 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2010-10-26 14:01 UTC (permalink / raw)
  To: lm-sensors

On Tue, Oct 26, 2010 at 09:30:44AM -0400, Jean Delvare wrote:
> On Sat, 23 Oct 2010 21:20:17 -0700, singumal wrote:
> > 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.
> 
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-26 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-24  4:20 [lm-sensors] via-cputemp: can't compile it singumal
2010-10-26 13:30 ` Jean Delvare
2010-10-26 14:01 ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.