On Mon, 29 Mar 2004, Lev Lvovsky wrote:I might be a bit confused here, but the problem with that, is that I'm
effectively working backwards. I've reverted the kernel version, but
all other applications have been kept of course - this means that
though I can keep those sym-links pointing to the correct kernel
headers (those which were present when glibc was compiled), the current
kernel (the reverted one) will obviously have different include files.
In order to compile the modules for the afformentioned hardware, those
symlinks need to point to the 2.2.x kernel directories - will this
break functionality of future compiled applications etc?
No No. Never! The modules never, ever, use glibc headers. Never!
The compilation should set the -I (include) parameter to point
to the kernel headers.
VER := $(shell uname -r)
INC= -I. -I/usr/src/linux-$(VER)
DEF= -D__KERNEL__ -DMODULE
gcc -c -Wall -O2 -fomit-frame-pointer $(INC) $(DEF) -m module.o module.c