I’ve been running Gentoo as a VMWare guest for some time.  building the vmware tools has always bombed for the same reason with an error about not being able to find the kernel header files in the proper location even though they are there.

To fix the problem, copy /usr/src/linux/include/linux/version.h to /usr/src/linux/include.  Then issue the command “uname -r” to get your running kernel version.  Then add the line #define UTS_RELEASE “2.6.34-gentoo-r6” (use the output of “uname -r” in place of the “2.6.34-gentoo-r6”).

copy that file /usr/src/inux/include/linux.  also copy /usr/src/linux/include/generated/autoconf.h /usr/src/linux/include/linux

Then the kernel modules will build

Leave a Reply