$ sudo apt-get install build-essential
Issue 1 – Cannot find kernel headers
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
Issue 2 – Build of vmci fails ( vmware-vmci.patch)
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-21-generic'
CC [M] /tmp/modconfig-9TKqy8/vmci-only/linux/driver.o
/tmp/modconfig-9TKqy8/vmci-only/linux/driver.c:127:4: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
wget http://cdn.philbayfield.com/downloads/vmware-vmci.patch
cd ~/vmware-tools-distrib/lib/modules/source/
tar xf vmci.tar
cd vmci-only/
patch -p1 < ~/vmware-vmci.patch
cd ..
tar cf vmci.tar vmci-only
Issue 3 – Build of vmhgfs fails ( vmware-vmhgfs.patch)
/tmp/modconfig-wKpbjb/vmhgfs-only/inode.c:878:4: error: implicit declaration of function ‘vmtruncate’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
wget http://cdn.philbayfield.com/downloads/vmware-vmhgfs.patch
cd ~/vmware-tools-distrib/lib/modules/source/
tar xf vmhgfs.tar
cd vmhgfs-only/shared/
patch -p1 < ~/vmware-vmhgfs.patch
cd ../..
tar cf vmhgfs.tar vmhgfs-only
Issue 4 - Build of vmhgfs fails
( vmware_90_linux-3.6.x_patcher.sh)
/tmp/modconfig-wKpbjb/vmhgfs-only/inode.c:1820:7: error: 'struct hlist_head' has no member named 'next'
ref:: https://communities.vmware.com/message/2129675
chmod +x vmware_90_linux-3.6.x_pacher.sh
./vmware_90_linux-3.6.x_pacher.sh