Can't compile.
I can't compile the I2C modules:
gcc -I/usr/src/linux/include -O2 -DLM_SENSORS -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -c kernel/i2c-core.c -o kernel/i2c-core.o In file included from /usr/src/linux/include/linux/module.h:21,
from kernel/i2c-core.c:25:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers, /usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package. /usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
I've seen this before... I think it happens when CONFIG_MODVERSIONS is not set or if the makefile for the modules is making the wrong assumption on versioning... something like that...
Phil
Quoted 27 lines · Mark D. Studebaker
Haven't seen this before.
What kernel are you compiling against?
I don't see this ininclude/linux/modversions.hin kernel 2.4.14.mds
Quoted 17 lines · Boris de Laage
I can't compile the I2C modules:
gcc -I/usr/src/linux/include -O2 -DLM_SENSORS -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -c
kernel/i2c-core.c-okernel/i2c-core.oIn file included from/usr/src/linux/include/linux/module.h:21,from kernel/i2c-core.c:25:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package./usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
Signature · 3 lines
Philip Edelbrock -- IS Manager -- Edge Design, Corvallis, OR [email protected] -- http://www.netroedge.com/~phil PGP F16: 01 D2 FD 01 B5 46 F4 F0 3A 8B 9D 7E 14 7F FB 7A
Haven't seen this before.
What kernel are you compiling against?
I don't see this in include/linux/modversions.h in kernel 2.4.14.
mds
Quoted 17 lines · Boris de Laage
I can't compile the I2C modules:
gcc -I/usr/src/linux/include -O2 -DLM_SENSORS -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -c
kernel/i2c-core.c-okernel/i2c-core.oIn file included from/usr/src/linux/include/linux/module.h:21,from kernel/i2c-core.c:25:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package./usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.