vmware-install.pl failed on compiling /tmp/modconfig-EjMOrE/vmhgfs-only/filesystem.c
I installed redhat 7 beta on VMware workstation 10 and tried to install vmware tools by clicking VM -> "Install VMware Tools...".
After untaring the archive tar file, launching vmware-install.pl and taking all defaults, i got the following errors:
Searching for a valid kernel header path...
Detected the kernel headers at
"/lib/modules/3.10.0-54.0.1.el7.x86_64/build/include".
The path "/lib/modules/3.10.0-54.0.1.el7.x86_64/build/include" appears to be a
valid path to the 3.10.0-54.0.1.el7.x86_64 kernel headers.
Would you like to change it? [no]
Using 2.6.x kernel build system.
make: Entering directory /tmp/modconfig-EjMOrE/vmhgfs-only'
/usr/src/kernels/3.10.0-54.0.1.el7.x86_64'
/bin/make -C /lib/modules/3.10.0-54.0.1.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory
CC [M] /tmp/modconfig-EjMOrE/vmhgfs-only/message.o
CC [M] /tmp/modconfig-EjMOrE/vmhgfs-only/dir.o
CC [M] /tmp/modconfig-EjMOrE/vmhgfs-only/request.o
CC [M] /tmp/modconfig-EjMOrE/vmhgfs-only/filesystem.o
/tmp/modconfig-EjMOrE/vmhgfs-only/filesystem.c: In function ‘HgfsInitSuperInfo’:
/tmp/modconfig-EjMOrE/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-EjMOrE/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-EjMOrE/vmhgfs-only/filesystem.o] Error 1
make[1]: *** [module/tmp/modconfig-EjMOrE/vmhgfs-only] Error 2
make[1]: Leaving directory /usr/src/kernels/3.10.0-54.0.1.el7.x86_64'
/tmp/modconfig-EjMOrE/vmhgfs-only'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory
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.
....
Is anyone aware of this problem?
This problem does not happen on OpenSuse 13.1 installed on VMware workstation 10.
Thanks.