If you’re trying to install vmware-tools inside a linux guest and get the dreadedsuper.c:73: error: unknown field ‘clear_inode’ specified in initializer
error while compiling vmhgfs for shared folder support (which I use a lot),
this will help (thanks to Anjo from German VMWare Forums):
- unpack
/usr/lib/vmware-tools/modules/source/vmhgfs.tar
to somewhere - open
vmhgfs-only/super.c
in your favorite text editor - edit from
1
#ifndef VMW_USE_IGET_LOCKED
2
.read_inode = HgfsReadInode,
3
#endif
4
.clear_inode = HgfsClearInode,
5
.put_super = HgfsPutSuper,
6
.statfs = HgfsStatfs,
7
};
to (note .clear_inode -> .evict_inode)
1
#ifndef VMW_USE_IGET_LOCKED
2
.read_inode = HgfsReadInode,
3
#endif
4
.evict_inode = HgfsClearInode,
5
.put_super = HgfsPutSuper,
6
.statfs = HgfsStatfs,
7
};
- repack
vmhgfs.tar
including editedsuper.c
- execute
vmware-config-tools.pl
- profit