VMware shared folder not working because of vmhgfs compilation error

Tong Sun xubuys.xpt at spamgourmet.com
Wed Mar 26 15:15:50 UTC 2014


Hi,

Anyone using xubuntu as VMware guest? Are you able to get the VMware shared
folder working?

My VMware shared folder is not working and while trying to track down the
error myself, I found that the vmhgfs from the VMware Tools has compilation
error.

Both my VMware Player and VMware Tools are the latest copy.

I first do the VMware Tools compilation in xubuntu 14.04 beta, as-is
without any package upgrading. Failing that, I upgraded (almost) all package
in my xubuntu 14.04 beta, but still get the following error:

The VMware Host-Guest Filesystem allows for shared folders between the host
OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you
wish
to enable this feature? [yes]

Using 2.6.x kernel build system.
make: Entering directory `/tmp/modconfig-ivuufT/vmhgfs-only'
/usr/bin/make -C /lib/modules/3.13.0-12-generic/build/include/..
SUBDIRS=$PWD SRCROOT=$PWD/. \
          MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-12-generic'
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-ivuufT/vmhgfs-only/fsutil.o
/tmp/modconfig-ivuufT/vmhgfs-only/file.c: In function 'HgfsOpen':
/tmp/modconfig-ivuufT/vmhgfs-only/file.c:685:27: error: incompatible type
for argument 3 of 'HgfsSetUidGid'
                           current_fsuid(), current_fsgid());
                           ^
In file included from /tmp/modconfig-ivuufT/vmhgfs-only/file.c:46:0:
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.h:92:6: note: expected 'uid_t' but
argument is of type 'kuid_t'
 void HgfsSetUidGid(struct inode *parent,
      ^
/tmp/modconfig-ivuufT/vmhgfs-only/file.c:685:27: error: incompatible type
for argument 4 of 'HgfsSetUidGid'
                           current_fsuid(), current_fsgid());
                           ^
In file included from /tmp/modconfig-ivuufT/vmhgfs-only/file.c:46:0:
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.h:92:6: note: expected 'gid_t' but
argument is of type 'kgid_t'
 void HgfsSetUidGid(struct inode *parent,
      ^
make[2]: *** [/tmp/modconfig-ivuufT/vmhgfs-only/file.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/modconfig-ivuufT/vmhgfs-only/filesystem.c: In function
'HgfsInitSuperInfo':
/tmp/modconfig-ivuufT/vmhgfs-only/filesystem.c:234:15: error: incompatible
types when assigning to type 'uid_t' from type 'kuid_t'
       si->uid = current_uid();
               ^
/tmp/modconfig-ivuufT/vmhgfs-only/filesystem.c:240:15: error: incompatible
types when assigning to type 'gid_t' from type 'kgid_t'
       si->gid = current_gid();
               ^
make[2]: *** [/tmp/modconfig-ivuufT/vmhgfs-only/filesystem.o] Error 1
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c: In function
'HgfsChangeFileAttributes':
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c:680:20: error: incompatible
types when assigning to type 'kuid_t' from type 'uid_t'
       inode->i_uid = si->uid;
                    ^
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c:682:20: error: incompatible
types when assigning to type 'kuid_t' from type 'uint32'
       inode->i_uid = attr->userId;
                    ^
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c:685:20: error: incompatible
types when assigning to type 'kgid_t' from type 'gid_t'
       inode->i_gid = si->gid;
                    ^
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c:687:20: error: incompatible
types when assigning to type 'kgid_t' from type 'uint32'
       inode->i_gid = attr->groupId;
                    ^
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c: In function 'HgfsSetUidGid':
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c:1663:21: error: incompatible
types when assigning to type 'kuid_t' from type 'uid_t'
    setUidGid.ia_uid = uid;
                     ^
/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.c:1671:24: error: incompatible
types when assigning to type 'kgid_t' from type 'gid_t'
       setUidGid.ia_gid = gid;
                        ^
make[2]: *** [/tmp/modconfig-ivuufT/vmhgfs-only/fsutil.o] Error 1
make[1]: *** [_module_/tmp/modconfig-ivuufT/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-12-generic'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/modconfig-ivuufT/vmhgfs-only'

The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to
work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver
by
running vmware-config-tools.pl again after making sure that gcc, binutils,
make
and the kernel sources for your running kernel are installed on your
machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]


Oh, further searches reveals that more people are getting the above as well.
http://ubuntuforums.org/showthread.php?t=2209291

Anyone knows a known fix?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-devel/attachments/20140326/fb9ef6de/attachment.html>


More information about the xubuntu-devel mailing list