[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem compiling module



Help.  I've been trying to compile the lm_sensors source without much
success.  lm_sensors was written as a linux module that talks to the
voltage and temperature sensors on a motherboard and lets you query
/proc/sensors to view this information.  I haven't found a .deb for
this so I fetched the latest source yesterday and started trying toc
compile it.  I'm running debian 2.0, Kernel 2.0.34 and the standard
debian gcc, make, and libc6-dev packages.

Make works okay, but...

insmod ./lm_sensors.o

... tells me that the module was compiled for kernel 2.0.33 which
doesn't match my running kernel.  

/usr/doc/libc6-dev/FAQ.Debian.gz suggests adding
-I/usr/src/linux/include 

I added that to the CFLAGS of the Makefile.  It didn't help.  I
noticed that /usr/src/linux/include/linux does not contain a version.h
file.  Is that correct?  

If I do...

insmod -f ./lm_sensors.o 

... my machine lockc hard forcing me to push the reset button.

The author of the code isn't familiar with Debian's system of libc6
kernel header management.  His comments suggest he's used to the
symlink method of accessing kernel headers.  That's fine.  I don't
hold it against him or anything, it just means I'm pretty much on my
own in getting this to work with Debian.

What are my options?  Do I have to rebuild libc6-dev just so I can
compile this module?

Any help would be appreciated.  Thanks.

Jeff McWilliams
jjmcwill@yahoo.com





==
Jeff McWilliams (jjmcwill@yahoo.com)
"The minstrel boy has gone to war,
 in the fields of death you'll find him" - author unknown


_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply to: