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.tarto somewhere - open
vmhgfs-only/super.cin your favorite text editor - edit from
1#ifndef VMW_USE_IGET_LOCKED2.read_inode = HgfsReadInode,3#endif4.clear_inode = HgfsClearInode,5.put_super = HgfsPutSuper,6.statfs = HgfsStatfs,7};to (note .clear_inode -> .evict_inode)
1#ifndef VMW_USE_IGET_LOCKED2.read_inode = HgfsReadInode,3#endif4.evict_inode = HgfsClearInode,5.put_super = HgfsPutSuper,6.statfs = HgfsStatfs,7}; - repack
vmhgfs.tarincluding editedsuper.c - execute
vmware-config-tools.pl - profit
本文解决在较新Linux内核上安装VMware Tools时遇到的编译错误问题,特别是针对共享文件夹支持组件vmhgfs的未知字段错误。通过修改源码中的super.c文件,将.clear_inode替换为.evict_inode来解决此问题。
3024

被折叠的 条评论
为什么被折叠?



