We recently encountered some errors when trying to recompile the VMwaretools on Kali (kernel 3.18) and Security Onion (Kernel 3.2):
Those errors meant it was not possible to share files between the Host OS and the virtual machines, as compilation was failing in the vmhgfs-only directory.
Below are a set of instructions to fix those issues.
Please note the following was Tested with VMwaretools-9.9.2-2496486.tar.gz, and you need to do this as "root"
-> Search for all instances and replace "d_alias" by "d_u.d_alias" (there were 2 instances at the time of writing this article)
-> Search for all instances and replace "smp_mb__before_clear_bit();" by "smp_mb__before_atomic();"
-> Search for all instances and replace "smp_mb__after_clear_bit();" by "to smp_mb__after_atomic();"
That's it, you now need to repackage the folder (Kali and Security Onion):
-> cd ..
-> tar cvf vmhgfs.tar vmhgfs-only
-> rm -r vmhgfs-only
You should now be able to recompile the VMwaretools without any problems.
-> cd /tmp/vmware-tools-distrib
-> ./vmware-install.pl