vmware-tools-patches: Ubuntu 14.04.02 vmhgfs compile failure (VMwareTools-9.9.2-2496486)
Hello!
I cannot compile the latest VMwareTools-9.9.2-2496486 (neither patched not original) on Ubuntu 14.04.02 with latest Linux kernel (3.13.0-46). It raises the following error:
from /tmp/modconfig-qqjwHn/vmhgfs-only/inode.c:29:
/tmp/modconfig-qqjwHn/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
include/linux/kernel.h:793:27: error: ‘struct dentry’ has no member named ‘d_alias’
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
The complete output can be found here https://gist.github.com/eborshch/cd6f430bf6771e33e5cf. I’ve noticed that there is a recent fix (https://github.com/rasa/vmware-tools-patches/pull/27) for the similar issue, though it does not solve this particular issue as it has been already merged into the master when I’ve tried it.
Any hints?
Thank you in advance!
Best, Eugene
p.s. it looks like this issue has been already reported to VMWare https://communities.vmware.com/message/2477575
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 49 (7 by maintainers)
Ok so I succeed with hgfs installation.
I uncompressed the “vmware-tools-distrib/lib/modules/source/vmhgfs.tar” with “tar cvf” command then I used this command in my vim editor : “:%s/d_alias/d_u.d_alias/g” to replace any d_alias with his own new structure. The file to edit is ‘inode.c’ And finally just compress back the folder with : “tar cvf vmhgfs.tar vmhgfs-only” command
I restart the installer from the vmware-tools-distrib folder and now I can access to my shared folder.
Don’t worry if just after the compilation the HGFS service display as failed, it’s (normally) because you didn’t add any share to your vmware settings. Add it and it will show up in your /mnt/hgfs/ folder
The VMwareTools version is : VMwareTools-9.9.2-2496486.tar.gz
Hope It could help some of you 😃
Thanks! It works fine for me too.
I run this
#!/bin/sh -x cd /usr/lib/vmware-tools/modules/source tar xf vmhgfs.tar grep -q d_u.d_alias vmhgfs-only/inode.c && echo “already patched” && exit 0 sed -i -e s/d_alias/d_u.d_alias/ vmhgfs-only/inode.c cp -p vmhgfs.tar vmhgfs.tar.orig tar cf vmhgfs.tar vmhgfs-only vmware-config-tools.pl -d -m
NOTE: this makes the tools incompatible with older kernel versions, i.e. 3.13.0-45.