I2c (cvs upload) compile problem.

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

 



You probably have a linux/version.h in the kernel tree that is setup to do 
modversions for multiple versions of the kernel based on /boot/versions.h. 
Red Hat does the same thing.

The code in the Makefile that greps version.h gets confused when it finds 
multiple 'UTS_RELEASE' definitions.

I would recommend that you compile with:

     make MODPREF=/lib/modules/$(uname -r) install

If you want to completely replace the distro lm_sensors files, you should also 
set "PREFIX=/usr" on the command line.  Otherwise, be sure that you set 
LD_LIBRARY_PATH before you run the new sensors command so that it picks up the 
library from /usr/local/lib not /usr/lib/

    make MODPREF=/lib/modules/$(uname -r) PREFIX=/usr install

:v)

Rob Blomquist wrote:

> I uploaded the freshest i2c and lm_sensors packages by cvs tonight in the 
> hopes that my ASUS A7N8X board with its Nivida chips would be detected. I am 
> running a fresh build of Mandrake 9.1, with the 2.4.21-0.13mdk kernel 
> running.
> 
> I get a compile error in "make install" right at the begininning:
> 
> [root at timmy2 i2c]# make install
> if [ -n " kernel/i2c-core.o kernel/i2c-dev.o kernel/i2c-algo-bit.o 
> kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o 
> kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o 
> kernel/i2c-pport.o" ] ; then \
>   if [ -d "/lib/modules/`grep UTS_RELEASE 
> /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 
> -d'"'`/kernel" ] ; then \
>     mkdir -p /lib/modules/`grep UTS_RELEASE 
> /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 
> -d'"'`/kernel/drivers/i2c ; \
>     install -o root -g root -m 644  kernel/i2c-core.o kernel/i2c-dev.o 
> kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o 
> kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o 
> kernel/i2c-proc.o kernel/i2c-pport.o /lib/modules/`grep UTS_RELEASE 
> /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 
> -d'"'`/kernel/drivers/i2c ; \
>     for i in  kernel/i2c-core.o kernel/i2c-dev.o kernel/i2c-algo-bit.o 
> kernel/i2c-algo-biths.o kernel/i2c-philips-par.o kernel/i2c-elv.o 
> kernel/i2c-velleman.o kernel/i2c-algo-pcf.o kernel/i2c-proc.o 
> kernel/i2c-pport.o ; do \
>       rm -f /lib/modules/`grep UTS_RELEASE 
> /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 
> -d'"'`/misc/`basename $i` ; \
>     done \
>   else \
>     mkdir -p /lib/modules/`grep UTS_RELEASE 
> /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 
> -d'"'`/misc ; \
>     install -o root -g root -m 644  kernel/i2c-core.o kernel/i2c-dev.o 
> kernel/i2c-algo-bit.o kernel/i2c-algo-biths.o kernel/i2c-philips-par.o 
> kernel/i2c-elv.o kernel/i2c-velleman.o kernel/i2c-algo-pcf.o 
> kernel/i2c-proc.o kernel/i2c-pport.o /lib/modules/`grep UTS_RELEASE 
> /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h|cut -f 2 
> -d'"'`/misc ; \
>   fi \
> fi
> install: `/lib/modules/2.4.21-0.13mdksmp' is a directory
> install: `2.4.21-0.13mdkenterprise' is a directory
> install: `2.4.21-0.13mdk' is a directory
> make: *** [install-kernel] Error 1
> 
> Can you guys help me out with this one? Yes, 2.4.21-0.13mdksmp is a directory 
> as is 2.4.21-0.13mdk, 2.4.21-0.13mdkenterprise sounds fair, but not on my 
> system.
> 
> Rob
> 




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux