Having problems compiling the vmmon kernel module on Debian 4.0 (Etch) using the 2.6.18-3 kernel?
Getting an error like: The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18-3-amd64). Even if the module were to compile successfully, it would not load into the running kernel.
To fix this you need to copy the UTS_RELEASE information into the version.h file. Copy the line (or similar):
#define UTS_RELEASE "2.6.18-3-amd64"
from
/usr/src/linux-headers-2.6.18-3-amd64/include/linux/utsrelease.h
/usr/src/linux-headers-2.6.18-3-amd64/include/linux/version.h
The vmmon module will then compile successfully.