2.6.4: strange (?) include path order

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

 



Hi all,

I just tried compiling lm_sensors-2.6.4.
This didn't quite work:

gcc  -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/usr/src/linux/include   -O2   -c kernel/busses/i2c-ali1535.c -o kernel/busses/i2c-ali1535.o
kernel/busses/i2c-ali1535.c:183: `I2C_HW_SMBUS_ALI1535' undeclared here (not in
a function)
kernel/busses/i2c-ali1535.c:183: initializer element is not constant
kernel/busses/i2c-ali1535.c:183: (near initialization for `ali1535_adapter.id')
make: *** [kernel/busses/i2c-ali1535.o] Fehler 1
root at andi:/usr/src/system/lm_sensors-2.6.4#

This is because I have an old i2c.h header in /usr/local/include.

Why do you specify /usr/local/include before /usr/src/linux/include ??
In this case it was fatal.

I guess you can safely assume that /usr/src/linux is the most recent tree.

BTW:

  Bus  0, device   0, function  1:
    IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 208).
      IRQ 14.
      Master Capable.  Latency=64.
      I/O at 0x4000 [0x400f].
  Bus  0, device   1, function  0:
    ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev 1).

And on another system:
  Bus  0, device   2, function  0:
    ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev 0).
  Bus  0, device   2, function  3:
    USB Controller: Silicon Integrated Systems [SiS] 7001 (#2) (rev 7).
      IRQ 11.
      Master Capable.  Latency=64.  Max Lat=80.
      Non-prefetchable 32 bit memory at 0xcffff000 [0xcfffffff].
  Bus  0, device   2, function  2:
    USB Controller: Silicon Integrated Systems [SiS] 7001 (rev 7).
      IRQ 5.
      Master Capable.  Latency=64.  Max Lat=80.
      Non-prefetchable 32 bit memory at 0xcfffe000 [0xcfffefff].
  Bus  0, device   2, function  5:
    IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 208).
      Master Capable.  Latency=16.
      I/O at 0xff00 [0xff0f].

See ? I'm an "SiS only" house (well, not quite). :-)
(this is a GA586SGX and K7S5A, respectively)

BTW, I've even got 5595 chipset specs !!!

Needless to say I'll try to have a go about the 5511/12/13 misdetection issue.

Have fun !

-- 
Andreas Mohr                        Stauferstr. 6, D-71272 Renningen, Germany
Tel. +49 7159 800604                http://mohr.de.tt



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

  Powered by Linux