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

Re: Error building lm-sensors (can't find i2c headers) - More info

Ok, I found something odd...

socrates lm-sensors:: echo $MODULE_LOC 
socrates lm-sensors::  ./debian/rules KVERS="2.4.7-pre6" KSRC="/home/jeronimo/Linux/kernel/linux-2.4.7-pre6"     
echo /usr/src/modules
You don't appear to have i2c header files
available under /usr/src/modules/i2c.
You need a current version of i2c installed to
use this version of lm-sensors.

The line with the echo was inserted by me in the sanity-check target
in debian/rules. It should echo  $(MODULE_LOC).

So... Even though I set MODULE_LOC correctly, it is unset by the
script. heodd thing is that KSRC is not changed. The only part of the
script that seems to change these variables is in the tpo of the file:


I commented out the second line, and the script passed
sanity-check. It is odd that I did *not* comment out the first one,
and yet, it didn't complain. (I do not have a /usr/src/linux dir).

But then, running the script gives me:

gcc -M -MG -I. -Ikernel/include -I/home/jeronimo/Linux/kernel/modules/i2c \
make[2]: *** No rule to make target `linux/i2c-proc.h', needed by `kernel/chips/via686a.d'.  Stop.
make[2]: Leaving directory `/home/jeronimo/Linux/kernel/modules/lm-sensors'
make[1]: *** [build-modules] Error 2
make[1]: Leaving directory `/home/jeronimo/Linux/kernel/modules/lm-sensors'
Module /home/jeronimo/Linux/kernel/modules/lm-sensors failed.

Because it is loking for headers in the i2c dir, and not in i2c/linux,
and I'd expect (that's where the headers are).

And if I change the script to use I2C_HEADERS=$(MODULE_LOC)/i2c/linux
(I don't think I should have to mess with that!) then I'll get

make[2]: Entering directory `/home/jeronimo/Linux/kernel/modules/lm-sensors'
make[2]: *** No rule to make target `linux/i2c-proc.h', needed by `kernel/chips/via686a.d'.  Stop.
make[2]: Leaving directory `/home/jeronimo/Linux/kernel/modules/lm-sensors'

What's going on? I feel like I missed something really basic and I
shouldn't need to change the rules script, but things don't seem to
work here...

Thanks for any help!



Reply to: