Symptoms:
When trying to compile drivers on the 2.4.18 kernel on SuSE 8.0 systems a compilation failure occurs, and a message regarding a mismatch between the running kernel and the kernel source tree configuration appears.
Cause:
By default, SuSE installs the 2.4.18-64GB-SMP kernel while the kernel source tree is configured for 2.4.18-4GB.
Solution:
A possible solution is to issue the following commands:
cd /usr/src/linux/include/linux/
mv version.h version.h.old
cp /boot/vmlinuz.version.h version.h
mv autoconf.h autoconf.h.old
cp /boot/vmlinuz.autoconf.h autoconf.h