Closed hurda closed 9 years ago
Can you try again with latest version, currently VMwareTools-9.9.3-2759765.tar.gz ?
Well, yes, that one compiles with all the patches. I think 13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch is the relevant patch in this case.
Here's where the patches differ.
16: iocb->DENTRY(ki_filp)
13: DENTRY(iocb->ki_filp)
After modifying 16 to look like 13, 9.6.2 is compiling, too.
I don't know if it's valid C, but leaving out the enclosing parenthesis from the #define fixes the compilation-error on 14.04 too.
E.g.
# define DENTRY(file) file->f_path.dentry
instead of
# define DENTRY(file) (file->f_path.dentry)
No idea which fix is better or safer.
Fixed by #59.
System: Ubuntu 14.04 32bit
Patch in question: https://github.com/rasa/vmware-tools-patches/blob/832ab6b98c7671e70c929dee8f50e572f19dec44/patches/vmhgfs/16-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2.patch
It's applying all patches cleanly on a freshly downloaded tar, but compilation fails on file.c, but not dir.c.
When removing this patch before executing /untar-and-patch.sh, compilation of vmhgfs is working.
Whole log: