FC 5.0是Vmware workstation 6.0时安装的,到Vmware workstation 8.0是vmware tools更新出了问题。
出现如下信息:
/tmp/vmware-root/modules/vmhgfs-only/dir.c: 在函数 ‘HgfsDirLlseek’ 中:
/tmp/vmware-root/modules/vmhgfs-only/dir.c:697: 错误:‘struct inode’ 没有名为 ‘i_sem’ 的成员
2.6.15的struct inode’ 有名为 ‘i_sem’ 的成员,2.6.16改成了i_mutex. FC5 实际是2.6.15的内核,但是吸收了一些补丁,已经改成了i_mutex。
所以我们只要修改vmhgfs-only/dir.c,将里面的16改成15即可
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
mtx = &inode->i_sem;
#else
mtx = &inode->i_mutex;
#endif
具体的做法参见
If you’re trying to install vmware-tools inside a linux guest and get the dreaded
super.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 ):
阅读(1048) | 评论(0) | 转发(0) |