Giter VIP home page Giter VIP logo

vmware-tools-patches's Introduction

VMware Tools Patches Flattr this

Patch VMware Tools source code for a variety of VMware Tools and kernel versions.

Quickest Start (The easiest way)

$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ ./patched-open-vm-tools.sh

The above script has been provided which generally should always work, automatically invoking commands described in the following section "Quick Start"

To update and re-patch later, remove the vmware-tools-patches subdirectory with the previous download and re-run the script.

Quick Start

To build VMware Tools, do the following:

  1. Checkout the repository:

    $ git clone https://github.com/rasa/vmware-tools-patches.git
  2. (Optional) Copy your patch(es) into the appropriate directory in the patches directory. Patches must end in .patch, or .diff and be properly formatted. For example:

    $ cp great-new.patch vmware-tools-patches/patches/vmhgfs
  3. Copy or download the version of VMware Tools you wish to use into the vmware-tools-patches folder. One way to do this is using download-tools.sh and pass it the associated VMWare Fusion version number:

    $ cd vmware-tools-patches
    $ ./download-tools.sh latest

    It is strongly suggested to use the latest version of VMware Tools.

    VMware Tools is also included inside the linux.iso file that is shipped with VMware Fusion, Player, and Workstation.

  4. Untar the tarball, and apply the patches:

    $ cd vmware-tools-patches
    $ ./untar-and-patch.sh
  5. Run the vmware-install.pl installer to install VMware Tools:

    $ ./compile.sh

Tested Kernels

With the patches applied, at least one version of VMware Tools listed below, compiles successfully with the following Linux kernels:

We have not received any reports of the patches failing on the following kernels, so presumably they apply successfully:

Tested VMware Tools Versions

The included patches have been tested with the following versions of VMware Tools:

Encountering Failures

If one or more patches do not apply successfully, you may get an error during compilation, such as

vmhgfs-only/link.c:186:10: error: implicit declaration of function ‘vfs_readlink’ [-Werror=implicit-function-declaration]

This indicates the vmhgfs kernel module failed to build and was not installed. That may be acceptable, as VMware Tools still installed successfully, but without the "shared folder" functionality provided by the vmhgfs module.

Required Patch Format

Please note your patches must contain only one directory name in them. For example, the following patches will work:

+--- vmhgfs-only/link.c.orig	2014-04-23 10:11:34.891106441 +0100
++++ vmhgfs-only/link.c	2014-04-23 00:49:03.000000000 +0100

or

+--- vmhgfs-only.orig/link.c	2014-04-23 10:11:34.891106441 +0100
++++ vmhgfs-only/link.c	2014-04-23 00:49:03.000000000 +0100

The following patches will not work:

+--- link.c.orig	2014-04-23 10:11:34.891106441 +0100
++++ link.c	2014-04-23 00:49:03.000000000 +0100

or

+--- path/to/vmhgfs-only/link.c.orig	2014-04-23 10:11:34.891106441 +0100
++++ path/to/vmhgfs-only/link.c	2014-04-23 00:49:03.000000000 +0100

Dependencies

If you use download-tools.sh, to download a VMware Tools file, the script will need the following installed:

  • sevenzip or sudo rights
  • unzip
  • wget
  • zip

If apt-get is installed on your system, the following packages will be installed when you first run compile.sh or untar-and-patch-and-compile.sh.sh:

  • linux-headers-$(uname -r)
  • build-essential
  • dkms
  • patch
  • perl
  • psmisc

If yum is installed on your system, the following packages will be installed when you first run compile.sh or untar-and-patch-and-compile.sh.sh:

  • gcc
  • glibc-headers
  • kernel-devel
  • kernel-headers
  • make
  • perl

If neither apt-get or yum is installed, you will need to install these (or equivalent) packages manually, before starting.

Contributing

To contribute to this project, please see CONTRIBUTING.md.

Bugs

To view existing bugs, or report a new bug, please see issues.

Changelog

To view the version history for this project, please see CHANGELOG.md.

License

This project is MIT licensed.

Contact

This project was created and is maintained by Ross Smith II endorse

Feedback, suggestions, and enhancements are welcome.

vmware-tools-patches's People

Contributors

altendky avatar archenroot avatar csfrancis avatar dragon788 avatar hokein avatar hurda avatar liayn avatar lum-cik avatar mafrosis avatar nl5887 avatar olzhas avatar osv avatar pduldig-at-tw avatar putztzu avatar rasa avatar raymond-w-ko avatar rrva avatar schamper avatar sl4ever avatar ssolidus avatar sykesm avatar taviso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vmware-tools-patches's Issues

openSUSE LEAP Beta now fails - Previous Milestone 1 was OK

The entire stdout can be viewed at http://pastebin.com/bBFgq68w

Complains about a missing path to find the headers which I doubt is the actual issue since the headers should be in the same location as the previous distro build (milestone 1) where Tools were patched and installed successfully. One of the nice things about using these scripts is standardizing checking dependencies. Could this be a kernel issue? I posted "uname -a" which lists includes the kernel at the beginning of the pastebin.

vmhgfs not working with 3.13 kernel - Not a directory

Running Arch Linux. The module seems to build fine.

$ uname -srm
Linux 3.13.4-1-ARCH x86_64
# mount -t vmhgfs .host:/ /mnt/hgfs/
# cd /mnt/hgfs
bash: cd: /mnt/hgfs/: Not a directory

From dmesg, but I'm not sure how much of this is relevant:

[  102.398202] Guest personality initialized and is active
[  102.398365] VMCI host device registered (name=vmci, major=10, minor=58)
[  102.398367] Initialized host personality
[  235.844531] [4160]: VMCI: shared components initialized.
[  235.844671] Probing for vmci/PCI.
[  235.845706] Found vmci/PCI at 0x2100, irq 16.
[  235.845754] VMCI: using capabilities 0xc.
[  235.845876] [4160]: VMCI: Host capability check passed.
[  235.846173] vmci 0000:00:07.7: irq 72 for MSI/MSI-X
[  235.846244] vmci 0000:00:07.7: irq 73 for MSI/MSI-X
[  235.846683] Registered vmci device.
[  235.846828] [4160]: VMCI: Using guest personality
[  235.846846] [4160]: VMCI: host components initialized.
[  235.847249] [4160]: VMCI: Module registered (name=vmci, major=10, minor=58).
[  235.847254] [4160]: VMCI: Using host personality
[  235.847256] [4160]: VMCI: Module (name=vmci) is initialized
[  504.395874] fuse init (API version 7.22)

THANK YOU GUYS!

I've been trying to get shared folders working on Ubuntu for about a year, although I knew of this repository, but didn't know how to use it, until today.
Sorry for creating an issue for it, but it was the only way to let you guys know.
THANK YOU FOR MAKING MY LIFE EASIER!!! 😄
❤️

New Tools 8.0 - Fully tested, should be tried?

Noticed Tools 8.0 has been added to download-tools.sh 3 days ago (as of this writing).
Is 8.0 like the previous Tools which can be applied to any/all VMware products and versions, and is this fully tested (enough) to recommend as the default?

Also, is there some documentation describing changes to the new Tools?

If the new Tools is fully recommended, then patched-open-vm-tools.sh can be updated.

Debian Jessie/Wheezy 3.16 vmhgfs compile failure (Fusion 7.1.1 Tools)

Hello,

I'm currently running into problems trying to compile the vmhgfs shared folder module on Debian Jessie and also Wheezy running a backported kernel (3.16.0-0.bpo.4-amd64). There's also a new version of tools available which may contribute to the issue for Fusion 7.1.1.

Here is the output I'm running into:

./untar-and-patch-and-compile.sh
=== Patching ./VMwareTools-9.9.2-2496486.tar.gz ...

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
patch is already the newest version.
psmisc is already the newest version.
psmisc set to manually installed.
linux-headers-3.16.0-0.bpo.4-amd64 is already the newest version.
The following NEW packages will be installed:
  dkms linux-headers-3.2.0-4-amd64 linux-headers-3.2.0-4-common
  linux-headers-amd64 linux-kbuild-3.2
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,531 kB of archives.
After this operation, 28.1 MB of additional disk space will be used.
Get:1 http://security.debian.org/ wheezy/updates/main linux-headers-3.2.0-4-common amd64 3.2.65-1+deb7u1 [3,586 kB]
Get:2 http://http.debian.net/debian/ wheezy/main dkms all 2.2.0.3-1.2 [77.4 kB]
Get:3 http://http.debian.net/debian/ wheezy/main linux-kbuild-3.2 amd64 3.2.17-1 [238 kB]
Get:4 http://http.debian.net/debian/ wheezy/main linux-headers-amd64 amd64 3.2+46 [4,450 B]
Get:5 http://security.debian.org/ wheezy/updates/main linux-headers-3.2.0-4-amd64 amd64 3.2.65-1+deb7u1 [625 kB]
Fetched 4,531 kB in 10s (430 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 46523 files and directories currently installed.)
Unpacking dkms (from .../dkms_2.2.0.3-1.2_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-4-common.
Unpacking linux-headers-3.2.0-4-common (from .../linux-headers-3.2.0-4-common_3.2.65-1+deb7u1_amd64.deb) ...
Selecting previously unselected package linux-kbuild-3.2.
Unpacking linux-kbuild-3.2 (from .../linux-kbuild-3.2_3.2.17-1_amd64.deb) ...
Selecting previously unselected package linux-headers-3.2.0-4-amd64.
Unpacking linux-headers-3.2.0-4-amd64 (from .../linux-headers-3.2.0-4-amd64_3.2.65-1+deb7u1_amd64.deb) ...
Selecting previously unselected package linux-headers-amd64.
Unpacking linux-headers-amd64 (from .../linux-headers-amd64_3.2+46_amd64.deb) ...
Processing triggers for man-db ...
Setting up dkms (2.2.0.3-1.2) ...
Setting up linux-headers-3.2.0-4-common (3.2.65-1+deb7u1) ...
Setting up linux-kbuild-3.2 (3.2.17-1) ...
Setting up linux-headers-3.2.0-4-amd64 (3.2.65-1+deb7u1) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-amd64
Setting up linux-headers-amd64 (3.2+46) ...
*** Applying vmhgfs/vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
Hunk #1 succeeded at 160 (offset 9 lines).
Hunk #2 succeeded at 200 (offset 11 lines).
*** Applying vmhgfs/vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...
patching file page.c
*** Skipping vmhgfs/vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/compat_dcache.h.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/vmware9.compat_mm.patch: did not apply cleanly
*** Applying vmhgfs/vmhgfs-d_alias-kernel-3.17.7-tools-9.9.0.patch ...
patching file inode.c
*** Skipping vmhgfs/vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/patch_inode.c.patch: did not apply cleanly
*** Applying vsock/vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...
patching file linux/notify.c
patching file linux/notifyQState.c
*** Applying vmblock/vmblock.3.11.patch ...
patching file linux/file.c
*** Applying vmblock/vmblock.3.10.patch ...
patching file linux/control.c
*** Applying vmblock/vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
*** Applying vmci/vmware9.k3.8rc4.patch ...
patching file linux/driver.c
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 1745 (offset -5 lines).
Hunk #3 succeeded at 1976 (offset -2 lines).
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 9.9.2 build-2496486 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]

Initializing...


Making sure services for VMware Tools are stopped.

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   VMware User Agent (vmware-user):                                    done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done


update-rc.d: using dependency based boot sequencing
insserv: Service cups has to be enabled to start service vmware-tools-thinprint
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
WARNING: The installer initially used the 'udpate-rc.d' to setup the
vmware-tools service.  That command cannot be found.  Please re-install the
'sysv-rc' package.  This script will now attempt to manually setup the
vmware-tools service.The module vmci has already been installed on this system by another package
and clobbering vmci is not supported.

The module vsock has already been installed on this system by another package
and clobbering vsock is not supported.

The module vmxnet3 from this package is not supported for kernels >= 3.10. You
must use the version of the driver supplied by the kernel.

The module pvscsi from this package is not supported for kernels >= 3.10. You
must use the version of the driver supplied by the kernel.

The module vmmemctl from this package is not supported for kernels >= 3.10. You
must use the version of the driver supplied by the kernel.

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 kernel build system.
make: Entering directory `/tmp/modconfig-SblL3I/vmhgfs-only'
/usr/bin/make -C /lib/modules/3.16.0-0.bpo.4-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-SblL3I/vmhgfs-only/inode.o
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: warning: initialization from incompatible pointer type [enabled by default]
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: warning: initialization makes pointer from integer without a cast [enabled by default]
/tmp/modconfig-SblL3I/vmhgfs-only/inode.c:1920:7: error: ‘struct dentry’ has no member named ‘d_alias’
make[4]: *** [/tmp/modconfig-SblL3I/vmhgfs-only/inode.o] Error 1
make[3]: *** [_module_/tmp/modconfig-SblL3I/vmhgfs-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/modconfig-SblL3I/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 ]

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[yes]

NOTICE:  It appears your system does not have the required fuse packages
installed.  The VMware blocking filesystem requires the fuse packages and its
libraries to function properly.  Please install the fuse or fuse-utils package
using your systems package management utility and re-run this script in order
to enable the VMware blocking filesystem.

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can be

enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no]

Do you want to enable Guest Authentication (vgauth)? [yes]

No X install found.

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-amd64
   Starting Virtual Printing daemon:                                   done
   Checking acpi hot plug                                              done
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                                   done
   Guest operating system daemon:                                      done
The configuration of VMware Tools 9.9.2 build-2496486 for Linux for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

Any suggestions for getting past this? I can provide further information if needed. Thanks!

/mnt/hgfs shared folder not working on kernel 3.13.0

Hello,
I finally got the latest VMwareTools-9.6.1-1378637.tar.gz (VMWare Workstation 10.0.1)
to compile with the Linux Kernel 3.13.0 and run properly on the latest Knoppix 7.3.0
using your patches except that the very useful /mnt/hgfs shared folder does dot work:
ls -al /mnt/hgfs ==> "ls: cannot open directory /mnt/hgfs: Not a directory"
All suggestions are welcome (besides waiting for the next VMware Tools release ;-)
Thanks,
Gilles

Ubuntu 15.04 (Kernel 3.19.0-15) - NOT all the patches have been applied cleanly

alekseYY@ubuntu:~/apps/vmware-tools-patches$ sudo ./untar-and-patch.sh
untar.sh: Patching ./VMwareTools-9.6.2-1688356.tar.gz
=== Patching ./VMwareTools-9.6.2-1688356.tar.gz ...

*** Applying vmblock/01-vmblock.3.10.patch ...
patching file linux/control.c
*** Applying vmblock/02-vmblock.3.11.patch ...
patching file linux/file.c
*** Applying vmblock/03-vmblock.3.12.patch ...
patching file linux/control.c
patching file linux/dentry.c
patching file linux/inode.c
*** Applying vmblock/04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
*** Applying vsock/01-vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...
patching file linux/notify.c
patching file linux/notifyQState.c
*** Applying vmhgfs/01-compat_dcache.h.patch ...
patching file shared/compat_dcache.h
*** Skipping vmhgfs/02-patch_inode.c.patch: did not apply cleanly
*** Applying vmhgfs/03-vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
*** Skipping vmhgfs/04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch: did not apply cleanly
*** Skipping vmhgfs/05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: did not apply cleanly
*** Skipping vmhgfs/06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Applying vmhgfs/07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch ...
patching file shared/vm_assert.h
*** Applying vmhgfs/08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...
patching file page.c
Hunk #1 succeeded at 1450 (offset -228 lines).
*** Skipping vmhgfs/09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: did not apply cleanly
*** Applying vmhgfs/10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch ...
patching file file.c
patching file link.c
patching file shared/compat_fs.h
*** Applying vmhgfs/11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch ...
patching file page.c
*** Skipping vmhgfs/12-vmware9.compat_mm.patch: did not apply cleanly
*** Skipping vmhgfs/13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch: did not apply cleanly
*** Applying vmhgfs/14-vmhgfs-d_alias-kernel-3.18.1-tools-9.6.2.patch ...
patching file inode.c
patching file Makefile.kernel
patching file shared/autoconf/d_alias.c
*** Applying vmhgfs/15-vmhgfs-bdi-kernel-4.0-tools-9.9.2.patch ...
patching file filesystem.c
Hunk #1 succeeded at 388 (offset 2 lines).
Hunk #2 succeeded at 441 (offset 2 lines).
patching file module.h
patching file super.c
*** Applying vmci/01-vmware9.k3.8rc4.patch ...
patching file linux/driver.c
Reversed (or previously applied) patch detected! Assuming -R.
Hunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 1747 (offset -3 lines).
Hunk #3 succeeded at 1975 (offset -3 lines).

shared folders not working anymore - VMWare Fusion Pro 7.1.2 + ubuntu 14.04 64bit

As descrubed in the subject, the shared folder modules seems not woking properly since the list of shares in /mnt/hgfs is null.

However, the vmware-hgfsclient returns the lists of my share as they exist. Enabling / disabling the shared folders option returns this warning message :

Unable to update run-time folder sharing status: There was an error mounting the Shared Folders file system inside the guest operating system

tried on kernel versions : 3.19.3, 4.0.0 and 4.0.5

any suggestion ?

Cannot find GCC

I've just upgraded my Arch Linux's kernel to version 4.0.1 (VMware Workstation 11.1.0) and when I run vmware-install.pl it can never find gcc, although it is in the usual place: /usr/bin/gcc. Has anyone experienced this issue?

Shared Folders not working on kernel 4.0.5-1

kernel 4.0.5-1 is the default kernel for openSUSE Tumbleweed.
This should be a tested and supported kernel.

Compiling Tools 9.9.3.
No error thrown compiling vmhgfs.

Shared Folders "No Device" found when attempting to mount.
All other Tools capabilities seem to be working properly.

Error in compiling tools on Ubuntu 12.04 x64 on VMWare Workstation 11.1.2

Hello,

Having trouble with compilation of tools on Ubuntu 12.0.4 x64 running VMWare Workstation 11.1.2.
Here are the error messages. I am using tools version: 9.9.3. Could you help?

Using kernel build system.
make: Entering directory `/tmp/modconfig-PnqLju/vmci-only'
/usr/bin/make -C /lib/modules/3.8.0-44-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/src/linux-headers-3.8.0-44-generic/arch/x86/Makefile:109: CONFIG_X86_X32 enabled but no binutils support
  CC [M]  /tmp/modconfig-PnqLju/vmci-only/linux/driver.o
  CC [M]  /tmp/modconfig-PnqLju/vmci-only/linux/vmciKernelIf.o
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:131:4: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:131:4: error: initializer element is not constant
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:131:4: error: (near initialization for ‘vmci_driver.remove’)
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:1749:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_probe_device’
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:1980:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_remove_device’
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:123:12: warning: ‘vmci_probe_device’ used but never defined [enabled by default]
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:125:13: warning: ‘vmci_remove_device’ used but never defined [enabled by default]
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:2061:1: warning: ‘vmci_interrupt’ defined but not used [-Wunused-function]
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:2135:1: warning: ‘vmci_interrupt_bm’ defined but not used [-Wunused-function]
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:187:19: warning: ‘notification_base’ defined but not used [-Wunused-variable]
/tmp/modconfig-PnqLju/vmci-only/linux/driver.c:1712:1: warning: ‘vmci_enable_msix’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[2]: *** [/tmp/modconfig-PnqLju/vmci-only/linux/driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/modconfig-PnqLju/vmci-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-44-generic'
make: *** [vmci.ko] Error 2
make: Leaving directory `/tmp/modconfig-PnqLju/vmci-only'

The communication service is used in addition to the standard communication 
between the guest and the host.  The rest of the software provided by VMware 
Tools is designed to work independently of this feature.
If you wish to have the VMCI 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 ] 

Using kernel build system.
make: Entering directory `/tmp/modconfig-1bJVvI/vmci-only'
/usr/bin/make -C /lib/modules/3.8.0-44-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/src/linux-headers-3.8.0-44-generic/arch/x86/Makefile:109: CONFIG_X86_X32 enabled but no binutils support
  CC [M]  /tmp/modconfig-1bJVvI/vmci-only/linux/driver.o
  CC [M]  /tmp/modconfig-1bJVvI/vmci-only/linux/vmciKernelIf.o
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:131:4: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:131:4: error: initializer element is not constant
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:131:4: error: (near initialization for ‘vmci_driver.remove’)
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:1749:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_probe_device’
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:1980:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_remove_device’
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:123:12: warning: ‘vmci_probe_device’ used but never defined [enabled by default]
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:125:13: warning: ‘vmci_remove_device’ used but never defined [enabled by default]
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:2061:1: warning: ‘vmci_interrupt’ defined but not used [-Wunused-function]
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:2135:1: warning: ‘vmci_interrupt_bm’ defined but not used [-Wunused-function]
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:187:19: warning: ‘notification_base’ defined but not used [-Wunused-variable]
/tmp/modconfig-1bJVvI/vmci-only/linux/driver.c:1712:1: warning: ‘vmci_enable_msix’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[2]: *** [/tmp/modconfig-1bJVvI/vmci-only/linux/driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/modconfig-1bJVvI/vmci-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-44-generic'
make: *** [vmci.ko] Error 2
make: Leaving directory `/tmp/modconfig-1bJVvI/vmci-only'

The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and 
host.  The rest of this software provided by VMware Tools is designed to work 
independently of this feature.  If you wish to have the VSOCK 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 the Enter key to continue.] 

The module vmxnet3 has already been installed on this system by another package
but has been marked for clobbering and will be overridden.

Using kernel build system.
make: Entering directory `/tmp/modconfig-6qFIgP/vmxnet3-only'
/usr/bin/make -C /lib/modules/3.8.0-44-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/src/linux-headers-3.8.0-44-generic/arch/x86/Makefile:109: CONFIG_X86_X32 enabled but no binutils support
  CC [M]  /tmp/modconfig-6qFIgP/vmxnet3-only/vmxnet3_ethtool.o
  CC [M]  /tmp/modconfig-6qFIgP/vmxnet3-only/vmxnet3_drv.o
  CC [M]  /tmp/modconfig-6qFIgP/vmxnet3-only/vmxnet3_shm.o
  LD [M]  /tmp/modconfig-6qFIgP/vmxnet3-only/vmxnet3.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-6qFIgP/vmxnet3-only/vmxnet3.mod.o
  LD [M]  /tmp/modconfig-6qFIgP/vmxnet3-only/vmxnet3.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/modconfig-6qFIgP/vmxnet3-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/modconfig-6qFIgP/vmxnet3-only'
cp -f vmxnet3.ko ./../vmxnet3.o
make: Leaving directory `/tmp/modconfig-6qFIgP/vmxnet3-only'

The module pvscsi has already been installed on this system by another package 
but has been marked for clobbering and will be overridden.

Using kernel build system.
make: Entering directory `/tmp/modconfig-CV4m90/pvscsi-only'
/usr/bin/make -C /lib/modules/3.8.0-44-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/src/linux-headers-3.8.0-44-generic/arch/x86/Makefile:109: CONFIG_X86_X32 enabled but no binutils support
  CC [M]  /tmp/modconfig-CV4m90/pvscsi-only/pvscsi.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-CV4m90/pvscsi-only/pvscsi.mod.o
  LD [M]  /tmp/modconfig-CV4m90/pvscsi-only/pvscsi.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/modconfig-CV4m90/pvscsi-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/modconfig-CV4m90/pvscsi-only'
cp -f pvscsi.ko ./../pvscsi.o
make: Leaving directory `/tmp/modconfig-CV4m90/pvscsi-only'

The module vmmemctl has already been installed on this system by another 
package but has been marked for clobbering and will be overridden.

Using kernel build system.
make: Entering directory `/tmp/modconfig-7dMUhd/vmmemctl-only'
/usr/bin/make -C /lib/modules/3.8.0-44-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/src/linux-headers-3.8.0-44-generic/arch/x86/Makefile:109: CONFIG_X86_X32 enabled but no binutils support
  CC [M]  /tmp/modconfig-7dMUhd/vmmemctl-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-7dMUhd/vmmemctl-only/backdoor_balloon.o
  CC [M]  /tmp/modconfig-7dMUhd/vmmemctl-only/kernelStubsLinux.o
  CC [M]  /tmp/modconfig-7dMUhd/vmmemctl-only/os.o
  CC [M]  /tmp/modconfig-7dMUhd/vmmemctl-only/vmballoon.o
  LD [M]  /tmp/modconfig-7dMUhd/vmmemctl-only/vmmemctl.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-7dMUhd/vmmemctl-only/vmmemctl.mod.o
  LD [M]  /tmp/modconfig-7dMUhd/vmmemctl-only/vmmemctl.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/modconfig-7dMUhd/vmmemctl-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/modconfig-7dMUhd/vmmemctl-only'
cp -f vmmemctl.ko ./../vmmemctl.o
make: Leaving directory `/tmp/modconfig-7dMUhd/vmmemctl-only'

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 kernel build system.
make: Entering directory `/tmp/modconfig-uSijee/vmhgfs-only'
/usr/bin/make -C /lib/modules/3.8.0-44-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/src/linux-headers-3.8.0-44-generic/arch/x86/Makefile:109: CONFIG_X86_X32 enabled but no binutils support
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-uSijee/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-uSijee/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-uSijee/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-uSijee/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-44-generic'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= postbuild
make[1]: Entering directory `/tmp/modconfig-uSijee/vmhgfs-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/modconfig-uSijee/vmhgfs-only'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/modconfig-uSijee/vmhgfs-only'

vmhgfs compile error on 4.1.0

Using kernel build system.
make -C /lib/modules/4.1.0-2-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-4.1.0-2-generic'
CC [M] /tmp/vmhgfs/vmhgfs-only/backdoorGcc64.o
CC [M] /tmp/vmhgfs/vmhgfs-only/message.o
CC [M] /tmp/vmhgfs/vmhgfs-only/dir.o
CC [M] /tmp/vmhgfs/vmhgfs-only/rpcout.o
CC [M] /tmp/vmhgfs/vmhgfs-only/hgfsUtil.o
CC [M] /tmp/vmhgfs/vmhgfs-only/cpName.o
CC [M] /tmp/vmhgfs/vmhgfs-only/link.o
CC [M] /tmp/vmhgfs/vmhgfs-only/request.o
CC [M] /tmp/vmhgfs/vmhgfs-only/stubs.o
CC [M] /tmp/vmhgfs/vmhgfs-only/page.o
CC [M] /tmp/vmhgfs/vmhgfs-only/hgfsEscape.o
CC [M] /tmp/vmhgfs/vmhgfs-only/file.o
/tmp/vmhgfs/vmhgfs-only/file.c:172:18: error: 'new_sync_read' undeclared here (not in a function)
.read = new_sync_read,
^
/tmp/vmhgfs/vmhgfs-only/file.c:173:18: error: 'new_sync_write' undeclared here (not in a function)
.write = new_sync_write,
^
scripts/Makefile.build:258: recipe for target '/tmp/vmhgfs/vmhgfs-only/file.o' failed
make[2]: *** [/tmp/vmhgfs/vmhgfs-only/file.o] Error 1
Makefile:1395: recipe for target 'module/tmp/vmhgfs/vmhgfs-only' failed
make[1]: *** [module/tmp/vmhgfs/vmhgfs-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.1.0-2-generic'
Makefile:120: recipe for target 'vmhgfs.ko' failed
make: *** [vmhgfs.ko] Error 2

HGFS fails to compile on kernel 3.16.2

/tmp/modconfig-koK1AB/vmhgfs-only/link.c: In function ‘HgfsReadlink’:
/tmp/modconfig-koK1AB/vmhgfs-only/link.c:186:10: error: implicit declaration of function ‘vfs_readlink’ [-Werror=implicit-function-declaration]
          error = vfs_readlink(dentry, buffer, buflen, fileName);

....

/tmp/modconfig-goW7eY/vmhgfs-only/file.c: In function ‘HgfsAioRead’:
/tmp/modconfig-goW7eY/vmhgfs-only/file.c:791:4: error: implicit declaration of function ‘generic_file_aio_read’ [-Werror=implicit-function-declaration]
    result = generic_file_aio_read(iocb, iov, numSegs, offset);
    ^
/tmp/modconfig-goW7eY/vmhgfs-only/file.c: In function ‘HgfsAioWrite’:
/tmp/modconfig-goW7eY/vmhgfs-only/file.c:863:4: error: implicit declaration of function ‘generic_file_aio_write’ [-Werror=implicit-function-declaration]
    result = generic_file_aio_write(iocb, iov, numSegs, offset);

Fedora 20
Kernel: 3.16.2

HGFS fails to compile on kernel 3.17.7

No solution yet to this problem

/tmp/modconfig-o3DxdS/vmhgfs-only/inode.c:1898:7: note: in expansion of macro ‘hlist_for_each_entry’
       hlist_for_each_entry(dentry,
       ^
In file included from include/linux/compiler-gcc.h:106:0,
                 from include/linux/compiler.h:54,
                 from include/uapi/linux/stddef.h:1,
                 from include/linux/stddef.h:4,
                 from ./include/uapi/linux/posix_types.h:4,
                 from include/uapi/linux/types.h:13,
                 from include/linux/types.h:5,
                 from /tmp/modconfig-o3DxdS/vmhgfs-only/./shared/driver-config.h:71,
                 from /tmp/modconfig-o3DxdS/vmhgfs-only/inode.c:26:
include/linux/compiler-gcc4.h:14:34: error: ‘struct dentry’ has no member named ‘d_alias’
 #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
                                  ^

In /usr/src/kernels/3.17.4-200.fc20.x86_64/include/linux/dcache.h the struct dentry still contains d_alias.

HGFS failed on Debian sid.

Hi.

I am running on Debian sid, with the kernel:
Linux pear 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt4-3 (2015-02-03) x86_64 GNU/Linux

The vmware-tools is: VMwareTools-9.9.0-2304977.tar.gz

Following the steps as described in README.MD, the compilation fails.

The full output can be visited here:
https://bpaste.net/show/37a8c87d493b

TIA.

vmhgfs does not apply cleanly

Thanks for some great software! I have some little things:

I have a vote for a design change: I prefer to not run vmware-install.pl and vmware-tools-config.pl with defaults for a couple reasons (I don't always remember the packages I need when setting up a new system, and the installer prompts me, I don't want all the kernel modules, etc). If I just run untar-and-patch-and-compile.sh as in the instructions and not all packages are installed, it fails hard and I have to clean up. Not a big deal, just a suggestion.

I don't use shared folders, but in the interest of supporting the developer, I had an error with hgfs. I'm on the latest kernel of fedora 21: 3.18.7-200.fc21.x86_64, and running the patches yields:

=== Patching ./VMwareTools-9.9.0-2304977.tar.gz ...

*** Skipping vmhgfs/vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/patch_inode.c.patch: did not apply cleanly
*** Applying vmhgfs/vmhgfs-d_alias-kernel-3.17.7-tools-9.9.0.patch ...
patching file inode.c
*** Skipping vmhgfs/compat_dcache.h.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/vmware9.compat_mm.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: did not apply cleanly
*** Applying vmhgfs/vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
Hunk #1 succeeded at 160 (offset 9 lines).
Hunk #2 succeeded at 200 (offset 11 lines).
*** Applying vmhgfs/vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...
patching file page.c
*** Applying vmci/vmware9.k3.8rc4.patch ...
patching file linux/driver.c
Reversed (or previously applied) patch detected! Assuming -R.
Hunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 1745 (offset -5 lines).
Hunk #3 succeeded at 1976 (offset -2 lines).
*** Applying vmblock/vmblock.3.11.patch ...
patching file linux/file.c
*** Applying vmblock/vmblock.3.10.patch ...
patching file linux/control.c
*** Applying vmblock/vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
*** Applying vsock/vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...
patching file linux/notify.c
patching file linux/notifyQState.c

HGFS does not compile on Linux ubuntu 3.16.0-28-generic (14.10)

Hi,
I have a compilation error when compiling VMwareTools-9.6.2-1688356.tar.gz on Ubuntu 14.10 kernel 3.16.0-28:


/tmp/modconfig-3Us57z/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
/tmp/modconfig-3Us57z/vmhgfs-only/inode.c:1903:31: error: ‘union ’ has no member named ‘d_alias’
d_u.d_alias) {
^
include/linux/kernel.h:834:29: note: in definition of macro ‘container_of’
const typeof( ((type _)0)->member ) *__mptr = (ptr);
^
include/linux/list.h:698:15: note: in expansion of macro ‘hlist_entry’
____ptr ? hlist_entry(___ptr, type, member) : NULL;
^
include/linux/list.h:708:13: note: in expansion of macro ‘hlist_entry_safe’
for (pos = hlist_entry_safe((head)->first, typeof(
(pos)), member);
^
/tmp/modconfig-3Us57z/vmhgfs-only/inode.c:1898:7: note: in expansion of macro ‘hlist_for_each_entry’
hlist_for_each_entry(dentry,
^
include/linux/kernel.h:834:48: warning: initialization from incompatible pointer type
const typeof( ((type _)0)->member ) *__mptr = (ptr);
^
include/linux/list.h:687:40: note: in expansion of macro ‘container_of’
#define hlist_entry(ptr, type, member) container_of(ptr,type,member)
^
include/linux/list.h:698:15: note: in expansion of macro ‘hlist_entry’
____ptr ? hlist_entry(___ptr, type, member) : NULL;
^
include/linux/list.h:708:13: note: in expansion of macro ‘hlist_entry_safe’
for (pos = hlist_entry_safe((head)->first, typeof(
(pos)), member);
^
/tmp/modconfig-3Us57z/vmhgfs-only/inode.c:1898:7: note: in expansion of macro ‘hlist_for_each_entry’
hlist_for_each_entry(dentry,


Apparently fixed on next kernel (3.17 and 3.18) but no patch for 3.16.

Luke

vmhgfs files created in guest are 0 byte on host

With vmhgfs and linux-4.0rc6 and the patches in this repo, copying a file guest->host gives 0 byte files on host, but shown as >0 byte files when listing them from the guest. Creating files on host are properly recognized on the guest. echo 3 > /proc/sys/vm/drop_caches in the guest or calling sync did not help.

Host is vmware fusion / osx

Fedora 21 64bit Server: vmblock fails to install "fuse missing"

In vmware-config-tools.pl there is a check whether fuse is present. In my case it checks /lib/modules//modules.dep.

The regex is for "fuse.ko:", which is wrong as my entry is "fuse.ko.xz:"

Fixing the regexp to "k?o.*?):" fixes the issue and no error message appears.

Shared Folders problem with Ubuntu 15.10

I have the same issue as #54 with Vmware 7.1 and Ubuntu 15.10.

Manually running

  • download-tools.sh 8.0.0
  • untar-and-patch.sh
  • and vmware-install.pl instead of compile.sh

fixed it.

Install freezes on "guest filesystem driver"

I'm running arch with kernel 4.0.4 x86_64 as a guest in VMware Workstation 11.1.0 on windows 7 64bit. When running compile.sh with vmware-tools 9.9.2 it attempts to start the "guest filesystem driver" and completely freezes the guest. I get a workstation error message saying that the guest cpu has been stopped. I'n not seeing any compilation errors before that.

I can compile vmware-tools 9.6.2 fine but then copy/paste does not work.

Does anyone have any ideas what I might be doing wrong?

Installation Aborted on Antergos

Hi

While installing, getting below error. Any workaround?

[arq@cingularis vmware-tools-patches]$ ./patched-open-vm-tools.sh 
Cloning into 'vmware-tools-patches'...
remote: Counting objects: 605, done.
remote: Total 605 (delta 0), reused 0 (delta 0), pack-reused 605
Receiving objects: 100% (605/605), 111.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (355/355), done.
Checking connectivity... done.
--2015-12-04 20:30:02--  https://softwareupdate.vmware.com/cds/vmw-desktop/fusion/8.0.2/3164312/packages/com.vmware.fusion.tools.linux.zip.tar
Resolving softwareupdate.vmware.com (softwareupdate.vmware.com)... 23.205.227.45, 2a02:26f0:11a:18c::2ef, 2a02:26f0:11a:188::2ef
Connecting to softwareupdate.vmware.com (softwareupdate.vmware.com)|23.205.227.45|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71372800 (68M) [application/x-tar]
Saving to: ‘com.vmware.fusion.tools.linux.zip-8.0.2.tar’

com.vmware.fusion.tools.l 100%[======================================>]  68.07M  7.55MB/s   in 10s    

2015-12-04 20:30:12 (6.81 MB/s) - ‘com.vmware.fusion.tools.linux.zip-8.0.2.tar’ saved [71372800/71372800]

com.vmware.fusion.tools.linux.zip
descriptor.xml
Archive:  com.vmware.fusion.tools.linux.zip
  inflating: manifest.plist          
   creating: payload/
  inflating: payload/linux.iso       
 extracting: payload/linux.iso.sig   
  inflating: payload/tools-linux.plist  

7-Zip [64] 9.38 beta  Copyright (c) 1999-2014 Igor Pavlov  2015-01-03
p7zip Version 9.38.1 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU,ASM)

Processing archive: payload/linux.iso

Warnings: 
There are data after the end of archive

Extracting  manifest.txt
Extracting  run_upgrader.sh
Extracting  vmware-tools-upgrader-64
Extracting  VMwareTools-10.0.1-3160059.tar.gz
Extracting  vmware-tools-upgrader-32

Everything is Ok

Archives with Warnings: 1

Warnings: 1
Files: 5
Size:       73063267
Compressed: 73424896
‘payload/VMwareTools-10.0.1-3160059.tar.gz’ -> ‘../VMwareTools-10.0.1-3160059.tar.gz’
untar.sh: Patching ./VMwareTools-10.0.1-3160059.tar.gz
=== Patching ./VMwareTools-10.0.1-3160059.tar.gz ...

*** Applying vmblock/01-vmblock.3.10.patch ...
patching file linux/control.c
*** Applying vmblock/02-vmblock.3.11.patch ...
patching file linux/file.c
*** Applying vmblock/03-vmblock.3.12.patch ...
patching file linux/control.c
patching file linux/dentry.c
patching file linux/inode.c
*** Applying vmblock/04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
*** Skipping vmhgfs/01-compat_dcache.h.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/02-patch_inode.c.patch: patch not appropriate for this kernel
*** Applying vmhgfs/03-vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
Hunk #1 succeeded at 160 (offset 9 lines).
Hunk #2 succeeded at 200 (offset 11 lines).
*** Skipping vmhgfs/04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/12-vmware9.compat_mm.patch: patch not appropriate for this kernel
*** Applying vmhgfs/13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch ...
patching file dir.c
Hunk #6 succeeded at 995 (offset 6 lines).
Hunk #7 succeeded at 1086 (offset 6 lines).
Hunk #8 succeeded at 1177 (offset 6 lines).
Hunk #9 succeeded at 1301 (offset 6 lines).
Hunk #10 succeeded at 1471 (offset 6 lines).
patching file file.c
patching file fsutil.c
Hunk #2 succeeded at 2120 (offset 82 lines).
patching file shared/compat_dentry.h
*** Skipping vmhgfs/14-vmhgfs-d_alias-kernel-3.18.1-tools-9.6.2.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/15-vmhgfs-bdi-kernel-4.0-tools-9.9.2.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/16-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2-gcc-4.8.2.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/16-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2.patch: patch not appropriate for this kernel
*** Applying vmhgfs/17-vmhgfs-bdi-kernel-4.0-tools-9.9.3.patch ...
patching file filesystem.c
patching file module.h
*** Skipping vmhgfs/18-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.3.patch: patch not appropriate for this kernel
*** Applying vmhgfs/19-vmhgfs-new_sync_read-4.1.3-100-9.9.3.patch ...
patching file file.c
*** Applying vsock/01-vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...
patching file linux/notify.c
patching file linux/notifyQState.c
*** Applying vmci/01-vmware9.k3.8rc4.patch ...
patching file linux/driver.c
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 1745 (offset -5 lines).
Hunk #3 succeeded at 1976 (offset -2 lines).
Uninstalling the tar installation of VMware Tools.

Can't exec "/etc/vmware-caf/pme/install/preuninstall.sh": No such file or directory at /usr/bin/vmware-uninstall-tools.pl line 4106.
Unable to find the answer CAFVARDIR in the installer database 
(/etc/vmware-tools/locations). You may want to re-install VMware Tools.

Execution aborted.

A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will 
first uninstall the currently installed version.  Do you wish to continue? 
(yes/no) [yes] 

Uninstalling the tar installation of VMware Tools.

Can't exec "/etc/vmware-caf/pme/install/preupgrade.sh": No such file or directory at /usr/bin/vmware-uninstall-tools.pl line 4115.
The removal of VMware Tools 10.0.1 build-3160059 for Linux completed 
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files? 
[/usr/bin] 

What is the directory that contains the init directories (rc0.d/ to 
rc6.d/)? 

The path "" is not an existing directory.

Invalid default ans
´´´

Fix for vfs_readlink

The error
vmhgfs-only/link.c:186:10: error: implicit declaration of function ‘vfs_readlink’ [-Werror=implicit-function-declaration]
can be fixed by replacing the code with:

#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 14, 99)
         error = vfs_readlink(dentry, buffer, buflen, fileName);
#else
         error = readlink_copy(buffer, buflen, fileName);
#endif

Tested on Fedora 20 with Kernel:
3.15.5-200.fc20.x86_64 #1 SMP Mon Jul 14 15:40:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Sources:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/fs/namei.c?id=5d826c847b34de6415b4f1becd88a57ff619af50
https://507664.bugs.gentoo.org/attachment.cgi?id=374932

Cheers

Unable to install HGFS on Ubuntu 14.10

I tried to install VMware Tools using your patches, because I was not able to install them unmodified. However I am not able to install them with the patches applied as well.

I am using VMware Player 5.0.4 which gives me VMwareTools-9.2.4-1398046.tar.gz. I tried to install them on a fresh Ubuntu 14.10 installation. uname -r gives me 3.16.0-23-generic.

I ran untar-and-patch-and-compile.sh on the VMware Tools and got following output:

=== Patching ./VMwareTools-9.2.4-1398046.tar.gz ...

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon: [71G done
   VMware User Agent (vmware-user): [71G done
   Blocking file system: [71G done
   Unmounting HGFS shares: [71G done
   Guest filesystem driver: [71G done

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon: [71G done

File /usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules is backed up 
to /usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules.old.2.

File /etc/vmware-tools/vmware-user.desktop is backed up to 
/etc/vmware-tools/vmware-user.desktop.old.4.

This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangorc, and was about to remove 
it.  Somebody else apparently did it already.

File /usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf is backed up to 
/usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf.old.3.

This program previously created the file 
/usr/lib/vmware-tools/libconf/etc/pango/pango.modules, and was about to remove 
it.  Somebody else apparently did it already.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is 
backed up to 
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.0.

This program previously created the file 
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangox.aliases, and was about to 
remove it.  Somebody else apparently did it already.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules.old.1.

This program previously created the file 
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to 
remove it.  Somebody else apparently did it already.

This program previously created the file 
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to 
remove it.  Somebody else apparently did it already.

This program previously created the directory /etc/vmware-tools, and was about 
to remove it. Since there are files in that directory that this program did not
create, it will not be removed.

File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.3.

update-initramfs: Generating /boot/initrd.img-3.16.0-25-generic
update-initramfs: Generating /boot/initrd.img-3.16.0-23-generic
The removal of VMware Tools 9.2.4 build-1398046 for Linux completed 
successfully.  Thank you for having tried this software.

Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
build-essential ist schon die neueste Version.
dkms ist schon die neueste Version.
linux-headers-3.16.0-23-generic ist schon die neueste Version.
patch ist schon die neueste Version.
psmisc ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 38 nicht aktualisiert.
--- Applying vsock/vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...

patching file linux/notify.c
patching file linux/notifyQState.c

--- Applying vmblock/vmblock.3.11.patch ...

patching file linux/file.c

--- Applying vmblock/vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...

patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).

--- Applying vmblock/vmblock.3.10.patch ...

patching file linux/control.c

--- Applying vmhgfs/patch_inode.c.patch ...

patching file inode.c
Hunk #1 FAILED at 1798.
Hunk #2 FAILED at 1818.
2 out of 2 hunks FAILED -- saving rejects to file inode.c.rej

--- Applying vmhgfs/vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch ...

patching file file.c
Hunk #1 succeeded at 129 (offset -27 lines).
Hunk #2 succeeded at 862 (offset -69 lines).
Hunk #3 succeeded at 917 (offset -69 lines).
patching file link.c
patching file shared/compat_fs.h

--- Applying vmhgfs/vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch ...

patching file inode.c
Hunk #1 succeeded at 31 with fuzz 1.
Hunk #2 FAILED at 1893.
Hunk #3 FAILED at 1946.
2 out of 3 hunks FAILED -- saving rejects to file inode.c.rej

--- Applying vmhgfs/vmware9.compat_mm.patch ...

patching file shared/compat_mm.h

--- Applying vmhgfs/vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch ...

patching file page.c
Hunk #1 FAILED at 1391.
1 out of 1 hunk FAILED -- saving rejects to file page.c.rej

--- Applying vmhgfs/compat_dcache.h.patch ...

patching file shared/compat_dcache.h

--- Applying vmhgfs/vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch ...

patching file file.c
Hunk #1 succeeded at 659 (offset -23 lines).
patching file filesystem.c
patching file fsutil.c
Hunk #3 succeeded at 1662 (offset 1 line).
Hunk #4 succeeded at 1670 (offset 1 line).
patching file inode.c
patching file shared/compat_cred.h

--- Applying vmci/vmware9.k3.8rc4.patch ...

patching file linux/driver.c
Hunk #1 FAILED at 124.
Hunk #2 FAILED at 1750.
Hunk #3 FAILED at 1978.
3 out of 3 hunks FAILED -- saving rejects to file linux/driver.c.rej

Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files? 
[/usr/bin] 

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc] 

What is the directory that contains the init scripts? 
[/etc/init.d] 

In which directory do you want to install the daemon files? 
[/usr/sbin] 

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
is going to create it, including needed parent directories. Is this what you 
want? [yes] 

The installation of VMware Tools 9.2.4 build-1398046 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 
this program to invoke the command for you now? [yes] 

Initializing...


Making sure services for VMware Tools are stopped.

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon: [71G done
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon: [71G done
   Unmounting HGFS shares: [71G done
   Guest filesystem driver: [71G done


update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
The VMware FileSystem Sync Driver (vmsync) allows external third-party backup 
software that is integrated with vSphere to create backups of the virtual 
machine. Do you wish to enable this feature? [no] 

The module vmci has already been installed on this system by another package 
and clobbering vmci is not supported.

The module vsock has already been installed on this system by another package 
and clobbering vsock is not supported.

The module vmxnet3 from this package is not supported for kernels >= 3.10. You 
must use the version of the driver supplied by the kernel.

The module pvscsi from this package is not supported for kernels >= 3.10. You 
must use the version of the driver supplied by the kernel.

The module vmmemctl from this package is not supported for kernels >= 3.10. You
must use the version of the driver supplied by the kernel.

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] 

make: Entering directory '/tmp/modconfig-CPgMeu/vmhgfs-only'
Using 2.6.x kernel build system.
/usr/bin/make -C /lib/modules/3.16.0-23-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-23-generic'
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsUtil.o
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/backdoor.h:30:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/message.c:54:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/kernelStubs.h:36,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/message.c:45:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/backdoor.h:30:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/message.c:54:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/backdoor_types.h: In function ‘BACKDOOR_STRUCT_SIZES’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’
       assertions \
       ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/backdoor_types.h:112:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’
            ASSERT_ON_COMPILE(sizeof(Backdoor_proto) == 6 * sizeof(uintptr_t));
            ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’
       assertions \
       ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/backdoor_types.h:113:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’
            ASSERT_ON_COMPILE(sizeof(Backdoor_proto_hb) == 7 * sizeof(uintptr_t));
            ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmware.h:39:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/rpcout.c:43:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/kernelStubs.h:36,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/rpcout.c:33:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsUtil.h:55,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsUtil.c:33:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/preempt.h:5,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsUtil.h:32,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsUtil.c:33:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/request.o
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/dir.c:37:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/preempt.h:5,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/dir.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/dir.c:40:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/module.o
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/module.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/link.c:32:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/preempt.h:5,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/wait.h:8,
                 from include/linux/fs.h:6,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/compat_fs.h:22,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/link.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/stubs.o
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/fsutil.h:36,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/link.c:34:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/module.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.c:38:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/current.h:5,
                 from ./arch/x86/include/asm/processor.h:15,
                 from ./arch/x86/include/asm/atomic.h:6,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.c:39:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/module.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/module.c:32:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/preempt.h:5,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/compat_module.h:27,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/module.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/tcp.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/bdhandler.o
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/module.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/stubs.c:29:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/kernelStubs.h:36,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/stubs.c:28:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/backdoor.o
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/backdoor.h:30:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/backdoor.c:35:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/backdoor_types.h: In function ‘BACKDOOR_STRUCT_SIZES’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’
       assertions \
       ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/backdoor_types.h:112:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’
            ASSERT_ON_COMPILE(sizeof(Backdoor_proto) == 6 * sizeof(uintptr_t));
            ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’
       assertions \
       ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/backdoor_types.h:113:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’
            ASSERT_ON_COMPILE(sizeof(Backdoor_proto_hb) == 7 * sizeof(uintptr_t));
            ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:38,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/transport.h:26,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/bdhandler.c:30:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from include/asm-generic/bug.h:13,
                 from ./arch/x86/include/asm/bug.h:35,
                 from include/linux/bug.h:4,
                 from include/linux/kref.h:18,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:32,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/transport.h:26,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/bdhandler.c:30:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/transport.h:26,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/bdhandler.c:30:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/super.o
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/tcp.c:46:0:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from include/linux/uio.h:12,
                 from include/linux/socket.h:7,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/tcp.c:31:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/transport.h:26,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/tcp.c:51:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
In file included from ./arch/x86/include/asm/atomic.h:8:0,
                 from include/linux/atomic.h:4,
                 from ./arch/x86/include/asm/thread_info.h:24,
                 from include/linux/thread_info.h:54,
                 from ./arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/wait.h:8,
                 from include/linux/net.h:23,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/tcp.c:33:
/tmp/modconfig-CPgMeu/vmhgfs-only/tcp.c: In function ‘HgfsSocketChannelOpen’:
./arch/x86/include/asm/cmpxchg.h:42:38: warning: initialization from incompatible pointer type
          __typeof__ (*(ptr)) __ret = (arg);   \
                                      ^
./arch/x86/include/asm/cmpxchg.h:76:22: note: in expansion of macro ‘__xchg_op’
 #define xchg(ptr, v) __xchg_op((ptr), (v), xchg, "")
                      ^
/tmp/modconfig-CPgMeu/vmhgfs-only/tcp.c:584:25: note: in expansion of macro ‘xchg’
    oldSocketDataReady = xchg(&socket->sk->sk_data_ready,
                         ^
/tmp/modconfig-CPgMeu/vmhgfs-only/tcp.c:584:23: warning: assignment from incompatible pointer type
    oldSocketDataReady = xchg(&socket->sk->sk_data_ready,
                       ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsDevLinux.h:30,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/transport.c:48:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/current.h:5,
                 from include/linux/mutex.h:13,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/compat_mutex.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/transport.c:37:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/transport.c:51:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:49:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/preempt.h:5,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:5,
                 from include/linux/mm.h:9,
                 from include/linux/pagemap.h:7,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:53:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/super.c:36:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from ./arch/x86/include/asm/percpu.h:44,
                 from ./arch/x86/include/asm/preempt.h:5,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/wait.h:8,
                 from include/linux/fs.h:6,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/compat_fs.h:22,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/super.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c: In function ‘HgfsPackSetattrRequest’:
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:520:25: error: incompatible types when assigning to type ‘uint32’ from type ‘kuid_t’
          attrV2->userId = KUID2UID(iattr->ia_uid);
                         ^
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:526:26: error: incompatible types when assigning to type ‘uint32’ from type ‘kgid_t’
          attrV2->groupId = KGID2GID(iattr->ia_gid);
                          ^
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:623:25: error: incompatible types when assigning to type ‘uint32’ from type ‘kuid_t’
          attrV2->userId = KUID2UID(iattr->ia_uid);
                         ^
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:629:26: error: incompatible types when assigning to type ‘uint32’ from type ‘kgid_t’
          attrV2->groupId = KGID2GID(iattr->ia_gid);
                          ^
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c: In function ‘HgfsMkdir’:
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:1222:13: error: incompatible type for argument 3 of ‘HgfsSetUidGid’
             HgfsSetUidGid(dir, dentry, CURRENT_FSUID(), CURRENT_FSGID());
             ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:54:0:
/tmp/modconfig-CPgMeu/vmhgfs-only/fsutil.h:92:6: note: expected ‘uid_t’ but argument is of type ‘kuid_t’
 void HgfsSetUidGid(struct inode *parent,
      ^
/tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:1222:13: error: incompatible type for argument 4 of ‘HgfsSetUidGid’
             HgfsSetUidGid(dir, dentry, CURRENT_FSUID(), CURRENT_FSGID());
             ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/inode.c:54:0:
/tmp/modconfig-CPgMeu/vmhgfs-only/fsutil.h:92:6: note: expected ‘gid_t’ but argument is of type ‘kgid_t’
 void HgfsSetUidGid(struct inode *parent,
      ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/request.h:39,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/super.c:40:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
  CC [M]  /tmp/modconfig-CPgMeu/vmhgfs-only/vmci.o
scripts/Makefile.build:257: recipe for target '/tmp/modconfig-CPgMeu/vmhgfs-only/inode.o' failed
make[2]: *** [/tmp/modconfig-CPgMeu/vmhgfs-only/inode.o] Error 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfs.h:40:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsProto.h:37,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/vmci.c:34:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_assert.h:245:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from include/linux/kernel.h:13:0,
                 from include/linux/moduleparam.h:6,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/vmci.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vmci_defs.h:33:0,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/hgfsTransport.h:28,
                 from /tmp/modconfig-CPgMeu/vmhgfs-only/vmci.c:35:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
 ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]
       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \
                    ^
/tmp/modconfig-CPgMeu/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’
 MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
 ^
Makefile:1345: recipe for target '_module_/tmp/modconfig-CPgMeu/vmhgfs-only' failed
make[1]: *** [_module_/tmp/modconfig-CPgMeu/vmhgfs-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
Makefile:130: recipe for target 'vmhgfs.ko' failed
make: *** [vmhgfs.ko] Error 2
make: Leaving directory '/tmp/modconfig-CPgMeu/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 ] 

make: Entering directory '/tmp/modconfig-y6SfGv/vmxnet-only'
Using 2.6.x kernel build system.
/usr/bin/make -C /lib/modules/3.16.0-23-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-23-generic'
  CC [M]  /tmp/modconfig-y6SfGv/vmxnet-only/vmxnet.o
/tmp/modconfig-y6SfGv/vmxnet-only/vmxnet.c: In function ‘vmxnet_probe_device’:
/tmp/modconfig-y6SfGv/vmxnet-only/vmxnet.c:1148:7: error: ‘struct net_device’ has no member named ‘do_ioctl’
    dev->do_ioctl = vmxnet_ioctl;
       ^
scripts/Makefile.build:263: recipe for target '/tmp/modconfig-y6SfGv/vmxnet-only/vmxnet.o' failed
make[2]: *** [/tmp/modconfig-y6SfGv/vmxnet-only/vmxnet.o] Error 1
Makefile:1345: recipe for target '_module_/tmp/modconfig-y6SfGv/vmxnet-only' failed
make[1]: *** [_module_/tmp/modconfig-y6SfGv/vmxnet-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
Makefile:130: recipe for target 'vmxnet.ko' failed
make: *** [vmxnet.ko] Error 2
make: Leaving directory '/tmp/modconfig-y6SfGv/vmxnet-only'

The fast network device driver (vmxnet module) is used only for our fast 
networking interface. The rest of the software provided by VMware Tools is 
designed to work independently of this feature.
If you wish to have the fast network driver enabled, 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 ] 

The vmblock enables dragging or copying files between host and guest in a 
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[yes] 

!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] 

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] 


Disabling timer-based audio scheduling in pulseaudio.



Detected X server version 1.16.0



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.16.0-23-generic
   Starting Virtual Printing daemon: [71G done
   Checking acpi hot plug [71G done
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration: [71G done
   Blocking file system: [71G done
   Guest operating system daemon: [71G done
The configuration of VMware Tools 9.2.4 build-1398046 for Linux for this 
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /media/brushmate/VMware Tools. Ejecting 
device /dev/sr0 ...

When I ran the installer without patches applied, I got different error messages.

vmhgfs kernel oops in page_cache_async_readahead for large files

When reading large files over hgfs mounts, I often get a kernel oops in page_cache_async_readahead

Once:

[   75.481918] BUG: unable to handle kernel paging request at 00000002317cc000
[   75.481949] IP: [<00000002317cc000>] 0x2317cc000
[   75.481966] PGD b6660067 PUD 0 
[   75.481978] Oops: 0010 [#1] PREEMPT SMP 
[   75.481992] Modules linked in: veth xt_addrtype xt_conntrack mousedev cfg80211 zram rfkill bridge stp llc lz4_compress coretemp iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack hwmon ip_tables x_tables kvm_intel kvm evdev ppdev vmwgfx mac_hid crct10dif_pclmul crc32_pclmul e1000 ghash_clmulni_intel ttm pcspkr aesni_intel aes_x86_64 lrw gf128mul psmouse drm_kms_helper glue_helper ablk_helper cryptd drm serio_raw intel_agp i2c_core vmw_vmci intel_gtt shpchp battery acpi_cpufreq processor parport_pc parport ac button sch_fq_codel vmxnet3 vmw_balloon vmhgfs(O) btrfs xor raid6_pq sr_mod cdrom ata_generic sd_mod pata_acpi atkbd libps2 crc32c_intel ata_piix mptspi libata scsi_transport_spi mptscsih scsi_mod mptbase floppy i8042
[   75.482272]  serio
[   75.482277] CPU: 3 PID: 2575 Comm: lzop Tainted: G           O    4.0.1-1-ARCH #1
[   75.482298] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 05/20/2014
[   75.482326] task: ffff88022c5532a0 ti: ffff8800b6668000 task.ti: ffff8800b6668000
[   75.482346] RIP: 0010:[<00000002317cc000>]  [<00000002317cc000>] 0x2317cc000
[   75.482368] RSP: 0018:ffff8800b666bd00  EFLAGS: 00010206
[   75.482382] RAX: ffff880230fe4828 RBX: ffff8800b6a687a0 RCX: ffffea0008be5700
[   75.482401] RDX: 00000002317cc000 RSI: 0000000000000002 RDI: 0000000000001000
[   75.482420] RBP: ffff8800b666bd38 R08: 0000000000000001 R09: 000000000000002b
[   75.482439] R10: ffff8800b666bca8 R11: 3b5ffc5000203436 R12: ffff88022b30c150
[   75.482457] R13: 0000000000000001 R14: 000000000000002b R15: ffff8800b6a68700
[   75.482476] FS:  00007f0690cfe700(0000) GS:ffff88023fd80000(0000) knlGS:0000000000000000
[   75.482498] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   75.482513] CR2: 00000002317cc000 CR3: 00000000b663b000 CR4: 00000000001407e0
[   75.482564] Stack:
[   75.482571]  ffffffff81168e69 ffff8800b6a68700 ffff88022b30c150 ffff8800b6a68700
[   75.482595]  ffff8800b666be40 0000000000000001 ffffea0008be5700 ffff8800b666bdf8
[   75.482618]  ffffffff8115d08f 0000000000000001 000000000000002c 00000000359ca300
[   75.482642] Call Trace:
[   75.482653]  [<ffffffff81168e69>] ? page_cache_async_readahead+0x59/0xa0
[   75.482672]  [<ffffffff8115d08f>] generic_file_read_iter+0x34f/0x5f0
[   75.483182]  [<ffffffffa012e220>] HgfsFileRead+0x30/0x40 [vmhgfs]
[   75.483727]  [<ffffffff811d1b8b>] new_sync_read+0x8b/0xd0
[   75.484277]  [<ffffffff811d2dd8>] __vfs_read+0x18/0x50
[   75.484807]  [<ffffffff811d2e9a>] vfs_read+0x8a/0x140
[   75.485324]  [<ffffffff811d2fa9>] SyS_read+0x59/0xd0
[   75.485838]  [<ffffffff8156d949>] system_call_fastpath+0x12/0x17
[   75.486355] Code:  Bad RIP value.
[   75.486860] RIP  [<00000002317cc000>] 0x2317cc000
[   75.487355]  RSP <ffff8800b666bd00>
[   75.487841] CR2: 00000002317cc000
[   75.488407] ---[ end trace cfe4f533ad6ff804 ]---

Second time:

[   75.510389] BUG: unable to handle kernel paging request at 00000002317cc000
[   75.510844] IP: [<00000002317cc000>] 0x2317cc000
[   75.511324] PGD 22ac4c067 PUD 0 
[   75.511730] Oops: 0010 [#2] PREEMPT SMP 
[   75.512126] Modules linked in: veth xt_addrtype xt_conntrack mousedev cfg80211 zram rfkill bridge stp llc lz4_compress coretemp iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack hwmon ip_tables x_tables kvm_intel kvm evdev ppdev vmwgfx mac_hid crct10dif_pclmul crc32_pclmul e1000 ghash_clmulni_intel ttm pcspkr aesni_intel aes_x86_64 lrw gf128mul psmouse drm_kms_helper glue_helper ablk_helper cryptd drm serio_raw intel_agp i2c_core vmw_vmci intel_gtt shpchp battery acpi_cpufreq processor parport_pc parport ac button sch_fq_codel vmxnet3 vmw_balloon vmhgfs(O) btrfs xor raid6_pq sr_mod cdrom ata_generic sd_mod pata_acpi atkbd libps2 crc32c_intel ata_piix mptspi libata scsi_transport_spi mptscsih scsi_mod mptbase floppy i8042
[   75.515620]  serio
[   75.516084] CPU: 3 PID: 2580 Comm: cp Tainted: G      D    O    4.0.1-1-ARCH #1
[   75.516569] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 05/20/2014
[   75.517548] task: ffff8800b698a880 ti: ffff88022ac50000 task.ti: ffff88022ac50000
[   75.518061] RIP: 0010:[<00000002317cc000>]  [<00000002317cc000>] 0x2317cc000
[   75.518547] RSP: 0018:ffff88022ac53d00  EFLAGS: 00010206
[   75.519014] RAX: ffff880230fe4828 RBX: ffff8800b65b35a0 RCX: ffffea0008b06380
[   75.519485] RDX: 00000002317cc000 RSI: 0000000000000002 RDI: 0000000000001000
[   75.520048] RBP: ffff88022ac53d38 R08: 0000000000000008 R09: 0000000000000008
[   75.520553] R10: ffff88022ac53ca8 R11: 0000000000000246 R12: ffff88022b30da50
[   75.521015] R13: 0000000000000008 R14: 0000000000000008 R15: ffff8800b65b3500
[   75.521472] FS:  00007f4b8ec6c7a0(0000) GS:ffff88023fd80000(0000) knlGS:0000000000000000
[   75.521938] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   75.522402] CR2: 00000002317cc000 CR3: 000000022ac40000 CR4: 00000000001407e0
[   75.522971] Stack:
[   75.523441]  ffffffff81168e69 ffff8800b65b3500 ffff88022b30da50 ffff8800b65b3500
[   75.523967]  ffff88022ac53e40 0000000000000008 ffffea0008b06380 ffff88022ac53df8
[   75.524509]  ffffffff8115d08f ffff8800b65b3900 0000000000000010 000000002ac53e68
[   75.525127] Call Trace:
[   75.525790]  [<ffffffff81168e69>] ? page_cache_async_readahead+0x59/0xa0
[   75.526329]  [<ffffffff8115d08f>] generic_file_read_iter+0x34f/0x5f0
[   75.526889]  [<ffffffffa012cbc9>] ? HgfsDentryAgeReset+0x49/0x50 [vmhgfs]
[   75.527482]  [<ffffffffa012e220>] HgfsFileRead+0x30/0x40 [vmhgfs]
[   75.528072]  [<ffffffff811d1b8b>] new_sync_read+0x8b/0xd0
[   75.528647]  [<ffffffff811d2dd8>] __vfs_read+0x18/0x50
[   75.529221]  [<ffffffff811d2e9a>] vfs_read+0x8a/0x140
[   75.529743]  [<ffffffff811d2fa9>] SyS_read+0x59/0xd0
[   75.530254]  [<ffffffff8156d949>] system_call_fastpath+0x12/0x17
[   75.530755] Code:  Bad RIP value.
[   75.531267] RIP  [<00000002317cc000>] 0x2317cc000
[   75.531755]  RSP <ffff88022ac53d00>
[   75.532216] CR2: 00000002317cc000
[   75.534476] ---[ end trace cfe4f533ad6ff805 ]---

Patches do not apply cleanly on Ubuntu 15.04 (3.19.0-18-generic)

I'm running Ubuntu 15.04 on Linux 3.19.0-18-generic in VMware Player 7.1.0. Upon applying ./patch.sh, I did not get cleanly applied patches. Here is the output written to the terminal:

*** Applying vmci/01-vmware9.k3.8rc4.patch ...
patching file linux/driver.c
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 1745 (offset -5 lines).
Hunk #3 succeeded at 1976 (offset -2 lines).
*** Applying vsock/01-vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...
patching file linux/notify.c
patching file linux/notifyQState.c
*** Applying vmblock/01-vmblock.3.10.patch ...
patching file linux/control.c
*** Applying vmblock/02-vmblock.3.11.patch ...
patching file linux/file.c
*** Applying vmblock/03-vmblock.3.12.patch ...
patching file linux/control.c
patching file linux/dentry.c
patching file linux/inode.c
*** Applying vmblock/04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
*** Skipping vmhgfs/01-compat_dcache.h.patch: did not apply cleanly
*** Skipping vmhgfs/02-patch_inode.c.patch: did not apply cleanly
*** Applying vmhgfs/03-vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
Hunk #1 succeeded at 160 (offset 9 lines).
Hunk #2 succeeded at 200 (offset 11 lines).
*** Applying vmhgfs/04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch ...
patching file inode.c
patching file Makefile.kernel
patching file shared/autoconf/d_alias.c
*** Skipping vmhgfs/05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: did not apply cleanly
*** Skipping vmhgfs/06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Applying vmhgfs/08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...
patching file page.c
*** Skipping vmhgfs/09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/12-vmware9.compat_mm.patch: did not apply cleanly
*** Applying vmhgfs/13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch ...
patching file dir.c
patching file file.c
patching file fsutil.c
patching file shared/compat_dentry.h
*** Skipping vmhgfs/14-vmhgfs-d_alias-kernel-3.18.1-tools-9.6.2.patch: did not apply cleanly
*** Applying vmhgfs/15-vmhgfs-bdi-kernel-4.0-tools-9.9.2.patch ...
patching file filesystem.c
patching file module.h
patching file super.c
*** Skipping vmhgfs/16-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2.patch: did not apply cleanly

Am I doing it right? Also, supposedly the problem with HGFS was fixed here, but I do not think those changes were incorporated into this project.

Too many warning in syslog

Using this project install vmware-tools successfully and every thing work fine. But too many waring in syslog like this:

Jun  2 11:10:31 engine vmusr[22222]: [ warning] [vmusr] SOCKET failed to create socket, error 97: Address family not supported by protocol
Jun  2 11:10:31 engine kernel: [1091206.077102] audit: type=1400 audit(1433214631.943:304287): apparmor="DENIED" operation="create" profile="/usr/lib/lightdm/lightdm-guest-session" pid=22222 comm="vmtoolsd" family="vsock" sock_type="dgram" protocol=0
Jun  2 11:10:32 engine vmusr[22222]: [ warning] [vmusr] SOCKET failed to create socket, error 97: Address family not supported by protocol
Jun  2 11:10:32 engine kernel: [1091207.079431] audit: type=1400 audit(1433214632.943:304288): apparmor="DENIED" operation="create" profile="/usr/lib/lightdm/lightdm-guest-session" pid=22222 comm="vmtoolsd" family="vsock" sock_type="dgram" protocol=0
Jun  2 11:10:33 engine vmusr[22222]: [ warning] [vmusr] SOCKET failed to create socket, error 97: Address family not supported by protocol
Jun  2 11:10:33 engine kernel: [1091208.081100] audit: type=1400 audit(1433214633.947:304289): apparmor="DENIED" operation="create" profile="/usr/lib/lightdm/lightdm-guest-session" pid=22222 comm="vmtoolsd" family="vsock" sock_type="dgram" protocol=0
Jun  2 11:10:34 engine vmusr[22222]: [ warning] [vmusr] SOCKET failed to create socket, error 97: Address family not supported by protocol
Jun  2 11:10:34 engine kernel: [1091209.082872] audit: type=1400 audit(1433214634.951:304290): apparmor="DENIED" operation="create" profile="/usr/lib/lightdm/lightdm-guest-session" pid=22222 comm="vmtoolsd" family="vsock" sock_type="dgram" protocol=0
Jun  2 11:10:35 engine vmusr[22222]: [ warning] [vmusr] SOCKET failed to create socket, error 97: Address family not supported by protocol
Jun  2 11:10:35 engine kernel: [1091210.086207] audit: type=1400 audit(1433214635.952:304291): apparmor="DENIED" operation="create" profile="/usr/lib/lightdm/lightdm-guest-session" pid=22222 comm="vmtoolsd" family="vsock" sock_type="dgram" protocol=0

Patches not applying properly.

# uname -r
3.18.0-kali1-amd64

I am getting errors while trying to patch and compile VMware tools for my kernel (the shared folders feature specifically). The patches are not applying correctly so obviously it ends up not compiling properly..

Any help appreciated ! Thanks.

untar.sh: Patching ./VMwareTools-9.6.2-1688356.tar.gz
=== Patching ./VMwareTools-9.6.2-1688356.tar.gz ...

*** Applying vmblock/01-vmblock.3.10.patch ...
patching file linux/control.c
*** Applying vmblock/02-vmblock.3.11.patch ...
patching file linux/file.c
*** Applying vmblock/03-vmblock.3.12.patch ...
patching file linux/control.c
patching file linux/dentry.c
patching file linux/inode.c
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 221 with fuzz 1.
*** Applying vmblock/04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
*** Applying vsock/01-vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...
patching file linux/notify.c
patching file linux/notifyQState.c
*** Applying vmhgfs/01-compat_dcache.h.patch ...
patching file shared/compat_dcache.h
*** Skipping vmhgfs/02-patch_inode.c.patch: did not apply cleanly
*** Applying vmhgfs/03-vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
*** Skipping vmhgfs/04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch: did not apply cleanly
*** Skipping vmhgfs/05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: did not apply cleanly
*** Skipping vmhgfs/06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Applying vmhgfs/07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch ...
patching file shared/vm_assert.h
*** Applying vmhgfs/08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...
patching file page.c
Hunk #1 succeeded at 1450 (offset -228 lines).
*** Skipping vmhgfs/09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: did not apply cleanly
*** Applying vmhgfs/10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch ...
patching file file.c
patching file link.c
patching file shared/compat_fs.h
*** Applying vmhgfs/11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch ...
patching file page.c
*** Skipping vmhgfs/12-vmware9.compat_mm.patch: did not apply cleanly
*** Skipping vmhgfs/13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch: did not apply cleanly
*** Applying vmci/01-vmware9.k3.8rc4.patch ...
patching file linux/driver.c
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 1747 (offset -3 lines).
Hunk #3 succeeded at 1975 (offset -3 lines).

Sample error logs stored in vmware-tools-distrib/lib/modules/source/vmhgfs-only

==> 01-compat_dcache.h.patch.patch.err <==
patching file shared/compat_dcache.h

==> 02-patch_inode.c.patch.patch.err <==
patching file inode.c
Hunk #1 FAILED at 1798.
Hunk #2 FAILED at 1818.
2 out of 2 hunks FAILED -- saving rejects to file inode.c.rej

==> 03-vmhgfs-3.15-vfs_readlink.patch.patch.err <==
patching file link.c

==> 04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch.patch.err <==
patching file inode.c
Hunk #1 FAILED at 1922.
Hunk #2 FAILED at 1975.
2 out of 2 hunks FAILED -- saving rejects to file inode.c.rej
patching file Makefile.kernel
Hunk #1 FAILED at 35.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.kernel.rej
patching file shared/autoconf/d_alias.c

==> 05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch.patch.err <==
patching file inode.c
Hunk #1 succeeded at 31 with fuzz 1.
Hunk #2 FAILED at 1893.
Hunk #3 FAILED at 1946.
2 out of 3 hunks FAILED -- saving rejects to file inode.c.rej

==> 06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch.patch.err <==
patching file filesystem.c
patch: **** malformed patch at line 9:  


==> 07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch.patch.err <==
patching file shared/vm_assert.h

==> 08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch.patch.err <==
patching file page.c
Hunk #1 succeeded at 1450 (offset -228 lines).

==> 09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch.patch.err <==
patching file file.c
patching file filesystem.c
Hunk #1 FAILED at 231.
1 out of 1 hunk FAILED -- saving rejects to file filesystem.c.rej
patching file fsutil.c
Hunk #2 FAILED at 678.
Hunk #3 succeeded at 2227 with fuzz 1 (offset 566 lines).
Hunk #4 succeeded at 2235 (offset 566 lines).
1 out of 4 hunks FAILED -- saving rejects to file fsutil.c.rej
patching file inode.c
Hunk #1 FAILED at 517.
Hunk #2 FAILED at 620.
Hunk #3 succeeded at 1226 (offset 7 lines).
2 out of 3 hunks FAILED -- saving rejects to file inode.c.rej
patching file shared/compat_cred.h

==> 10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch.patch.err <==
patching file file.c
patching file link.c
patching file shared/compat_fs.h

==> 11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch.patch.err <==
patching file page.c

==> 12-vmware9.compat_mm.patch.patch.err <==
patching file shared/compat_mm.h
Hunk #1 FAILED at 91.
Hunk #2 FAILED at 100.
2 out of 2 hunks FAILED -- saving rejects to file shared/compat_mm.h.rej

==> 13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch.patch.err <==
patching file dir.c
patching file file.c
Hunk #2 succeeded at 363 (offset -22 lines).
Hunk #3 FAILED at 524.
Hunk #4 succeeded at 668 (offset 62 lines).
Hunk #5 succeeded at 683 (offset 62 lines).
Hunk #6 succeeded at 746 (offset 62 lines).
Hunk #7 FAILED at 773.
Hunk #8 FAILED at 884.
Hunk #9 FAILED at 972.
Hunk #10 FAILED at 1023.
Hunk #11 FAILED at 1072.
Hunk #12 succeeded at 1114 (offset -50 lines).
Hunk #13 succeeded at 1128 (offset -50 lines).
Hunk #14 succeeded at 1186 (offset -50 lines).
Hunk #15 FAILED at 1282.
Hunk #16 FAILED at 1330.
Hunk #17 succeeded at 1407 (offset -57 lines).
Hunk #18 FAILED at 1518.
9 out of 18 hunks FAILED -- saving rejects to file file.c.rej
patching file fsutil.c
Hunk #2 succeeded at 1940 (offset -98 lines).
patching file shared/compat_dentry.h

vmware-tools-9.9.2 (WS 11.1) compiles neither with 3.13.0-44 nor with 3.16.0-31

Hi,

since my upgrade to Workstation 11.1 a few days ago which seems to come with vmware-tools 9.9.2-1061527 I can get either the unpatched or the patched version of the tools compiled under Ubuntu 14.04 or 14.10 (starting with):

/tmp/modconfig-3213XF/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
include/linux/kernel.h:834:27: error: ‘struct dentry’ has no member named ‘d_alias’

which seems to be caused by:

*** Applying vmblock/03-vmblock.3.12.patch ...
patching file linux/control.c
patching file linux/dentry.c
patching file linux/inode.c
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 221 with fuzz 1.
*** Applying vmblock/04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
*** Skipping vmhgfs/01-compat_dcache.h.patch: did not apply cleanly
*** Skipping vmhgfs/02-patch_inode.c.patch: did not apply cleanly
*** Applying vmhgfs/03-vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
Hunk #1 succeeded at 160 (offset 9 lines).
Hunk #2 succeeded at 200 (offset 11 lines).
*** Applying vmhgfs/04-vmhgfs-d_alias-kernel-3.17.7-tools-9.9.0.patch ...
patching file inode.c
*** Skipping vmhgfs/05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: did not apply cleanly
*** Skipping vmhgfs/06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly
*** Applying vmhgfs/08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...
patching file page.c
*** Skipping vmhgfs/09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: did not apply cleanly
*** Skipping vmhgfs/10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch: did not apply cleanly
*** Skipping vmhgfs/12-vmware9.compat_mm.patch: did not apply cleanly
*** Applying vmhgfs/13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch ...

I'd apprechiate it, if you could have a look at this. Thanks.

Best Regards

Ulf

Having problem compiling crosstool-ng 1.21.0, getting stuck at installing eglib 2.18

While compiling crosstool ng 1.21.0. at build stage I'm having following error. Please help me getting rid of this. Thanks in advance.

ERROR:
[ALL ] make[2]: Leaving directory /home/ravindra/Stg/.build/src/eglibc-2_18' [ERROR] make[1]: *** [install-headers] Error 2 [ALL ] make[1]: Leaving directory/home/ravindra/Stg/.build/arm-unknown-linux-gnueabi/build/build-libc-startfiles'
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing C library headers & start files'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@380]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
[ERROR] >> called from: do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@60]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@638]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/usr/local/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'

No Wiki

If we goto the home, There's a Patch and build VMWare tools automatically https://github.com/rasa/vmware-tools-patches/wiki in the Project Description.
If we follow that link we reach an empty page.
So are there any plans for writing that wiki? is it being worked on already?
If not, then I think we should remove that link from the description 😄

System hangs/panics on Fedora 22 ./compile.sh installation

System hangs/panics on Fedora 22 (kernel 4.0) ./compile.sh installation

Suspected it was thinprint, disabled it in the vmware-configure-tools.pl script before using ./compile.sh but no joy.

Everything compiles and installs but panics at the end when Starting vmware-tools (via systemctl)

Everything works fine on Fedora 21 with the 4.0 kernel

Getting things working with Arch Linux

Notwithstanding #4, can anyone point me towards the steps required to get things working with Arch Linux (fresh install)?

There is this guide but it appears outdated.

Indeed following those steps in combination with using vmware-tools-patches I encounter these issues:

  • Some of the patches fail but this doesn't appear critical because everything builds fine - namely linux/driver.c, all hunks fail, vmhgfs/inode.c, all hunks fail, shared/compat_mm.h, all hunks fail, mhgfs-d_count-kernel-3.11-tools-9.6.0, 2 hunks fail
  • Then I get two sh: command not found errors before the first compilation step
  • I get a message telling me it's using the 2.6.x Kernel build system?
  • Messages that vmxnet3, pcscsi and vmmemctl are not supported for Kernels > 3.10... that I need to enable those modules in my kernel and might need to enable HYPERVISOR_GUEST
  • Complaints that I don't have the relevant fuse packages installed (although fuse is installed)

The final error messages are:

  • VM communication interface socket family fails to start
  • Guest filesystem driver fails to start
  • Mounting HGFS shares fails

Can anyone point me in the right direct with any of these before I start digging too far?

Thanks

gcc version mismatch causes build to fail

My kernel is built with a different version of gcc than is currently linked to /usr/bin/gcc and so the vmware detection picks up a problem and refuses to build the modules.

For now I'm going to manually change the symlink.

You may be able to look at /proc/version and try to work out which gcc version to use from there and some how inject it in.

VMware Player

What version number do I use for VMware Player 6.0.5? All I see is stuff for VMware Workstation and VMware Fusion.

untar.sh picking wrong default tools version when multiple present

When untar.sh isn't given a specific version to untar, it's trying to use the latest one present by default. To do this, it's using "sort -nr" on the file names and then using the first result. Unfortunately, this doesn't do a numeric sort if non-numeric characters appear first. For example:

$ ls VMwareTools* | sort -nr
VMwareTools-9.9.4-3193940.tar.gz
VMwareTools-9.9.3-2759765.tar.gz
VMwareTools-9.9.2-2496486.tar.gz
VMwareTools-9.9.0-2304977.tar.gz
VMwareTools-9.8.4-2202052.tar.gz
VMwareTools-9.8.3-2075148.tar.gz
VMwareTools-9.6.6-2649738.tar.gz
VMwareTools-9.6.2-1688356.tar.gz
VMwareTools-9.6.1-1378637.tar.gz
VMwareTools-9.6.0-1294478.tar.gz
VMwareTools-9.2.4-1398046.tar.gz
VMwareTools-10.0.5-3228253.tar.gz
VMwareTools-10.0.1-3160059.tar.gz
VMwareTools-10.0.0-2977863.tar.gz

With all of these versions present, untar.sh would pick 9.9.4.
If, however, you tell it where the specific numeric field is, things work:

$ ls VMwareTools* | sort -nr -t - -k 2
VMwareTools-10.0.5-3228253.tar.gz
VMwareTools-10.0.1-3160059.tar.gz
VMwareTools-10.0.0-2977863.tar.gz
VMwareTools-9.9.4-3193940.tar.gz
VMwareTools-9.9.3-2759765.tar.gz
VMwareTools-9.9.2-2496486.tar.gz
VMwareTools-9.9.0-2304977.tar.gz
VMwareTools-9.8.4-2202052.tar.gz
VMwareTools-9.8.3-2075148.tar.gz
VMwareTools-9.6.6-2649738.tar.gz
VMwareTools-9.6.2-1688356.tar.gz
VMwareTools-9.6.1-1378637.tar.gz
VMwareTools-9.6.0-1294478.tar.gz
VMwareTools-9.2.4-1398046.tar.gz

Adding the "-t - -k 2" options to sort would give us 10.0.5.

vmhgfs and 3.13.0-24-generic

Hello,

It seems that kernel 3.13.0-24-generic is having a tough time with vmhgfs. VMware tools builds just fine and running vmware-hgfsclient does list the shared folders configured through the VMware user interface. I am using:

Windows 7 Host
Linux Mint 17 XFCE 64-bit VM
Workstation 9.0.4 build-1945795
VMware Tools version 9.2.4.27715 (build-1398046)

I cloned the source but I am not sure where / how to edit in order to fix the problem of receiving "/mnt/hgfs/: Not a directory error". Any assistance would be great!

vmhgfs doesn't compile - DENTRY(file) - 3.13.0-53 - VMwareTools-9.6.2-1688356

System: Ubuntu 14.04 32bit

Patch in question:
https://github.com/rasa/vmware-tools-patches/blob/832ab6b98c7671e70c929dee8f50e572f19dec44/patches/vmhgfs/16-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2.patch

It's applying all patches cleanly on a freshly downloaded tar, but compilation fails on file.c, but not dir.c.

  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/file.o
In file included from /tmp/modconfig-urTco3/vmhgfs-only/file.c:35:0:
/tmp/modconfig-urTco3/vmhgfs-only/file.c: In function ‘HgfsAioRead’:
/tmp/modconfig-urTco3/vmhgfs-only/./shared/compat_dentry.h:7:23: error: expected identifier before ‘(’ token
 # define DENTRY(file) (file->f_dentry)
                       ^
/tmp/modconfig-urTco3/vmhgfs-only/file.c:790:34: note: in expansion of macro ‘DENTRY’
    result = HgfsRevalidate(iocb->DENTRY(ki_filp));
                                  ^
/tmp/modconfig-urTco3/vmhgfs-only/file.c: In function ‘HgfsAioWrite’:
/tmp/modconfig-urTco3/vmhgfs-only/./shared/compat_dentry.h:7:23: error: expected identifier before ‘(’ token
 # define DENTRY(file) (file->f_dentry)
                       ^
/tmp/modconfig-urTco3/vmhgfs-only/file.c:839:24: note: in expansion of macro ‘DENTRY’
    writeDentry = iocb->DENTRY(ki_filp);
                        ^

When removing this patch before executing /untar-and-patch.sh, compilation of vmhgfs is working.

Whole log:

user@ubuntu:~$ cd Desktop/vmware-patch/vmware-tools-patches/
user@ubuntu:~/Desktop/vmware-patch/vmware-tools-patches$ ./untar-and-patch.sh
untar.sh: Patching ./VMwareTools-9.6.2-1688356.tar.gz
=== Patching ./VMwareTools-9.6.2-1688356.tar.gz ...

*** Applying vmci/01-vmware9.k3.8rc4.patch ...
patching file linux/driver.c
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 1747 (offset -3 lines).
Hunk #3 succeeded at 1975 (offset -3 lines).
*** Applying vmhgfs/01-compat_dcache.h.patch ...
patching file shared/compat_dcache.h
*** Skipping vmhgfs/02-patch_inode.c.patch: patch not appropriate for this kernel
*** Applying vmhgfs/03-vmhgfs-3.15-vfs_readlink.patch ...
patching file link.c
*** Skipping vmhgfs/04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: patch not appropriate for this kernel
*** Applying vmhgfs/07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch ...
patching file shared/vm_assert.h
*** Applying vmhgfs/08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...
patching file page.c
Hunk #1 succeeded at 1450 (offset -228 lines).
*** Skipping vmhgfs/09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: patch not appropriate for this kernel
*** Applying vmhgfs/10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch ...
patching file file.c
patching file link.c
patching file shared/compat_fs.h
*** Applying vmhgfs/11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch ...
patching file page.c
*** Skipping vmhgfs/12-vmware9.compat_mm.patch: patch not appropriate for this kernel
*** Skipping vmhgfs/13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch: patch not appropriate for this kernel
*** Applying vmhgfs/14-vmhgfs-d_alias-kernel-3.18.1-tools-9.6.2.patch ...
patching file inode.c
patching file Makefile.kernel
patching file shared/autoconf/d_alias.c
*** Applying vmhgfs/15-vmhgfs-bdi-kernel-4.0-tools-9.9.2.patch ...
patching file filesystem.c
Hunk #1 succeeded at 388 (offset 2 lines).
Hunk #2 succeeded at 442 (offset 2 lines).
patching file module.h
patching file super.c
*** Applying vmhgfs/16-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2.patch ...
patching file dir.c
patching file file.c
Hunk #2 succeeded at 363 (offset 4 lines).
Hunk #3 succeeded at 590 (offset 4 lines).
Hunk #4 succeeded at 668 (offset 4 lines).
Hunk #5 succeeded at 683 (offset 4 lines).
Hunk #6 succeeded at 746 (offset 4 lines).
Hunk #7 succeeded at 782 (offset 4 lines).
Hunk #8 succeeded at 833 (offset 4 lines).
Hunk #9 succeeded at 919 (offset 4 lines).
Hunk #10 succeeded at 973 (offset 8 lines).
Hunk #11 succeeded at 1025 (offset 12 lines).
Hunk #12 succeeded at 1114 (offset 12 lines).
Hunk #13 succeeded at 1128 (offset 12 lines).
Hunk #14 succeeded at 1186 (offset 12 lines).
Hunk #15 succeeded at 1232 (offset 12 lines).
Hunk #16 succeeded at 1277 (offset 12 lines).
Hunk #17 succeeded at 1407 (offset 12 lines).
Hunk #18 succeeded at 1461 (offset 12 lines).
patching file fsutil.c
patching file page.c
patching file shared/compat_dentry.h
*** Skipping vmhgfs/17-vmhgfs-bdi-kernel-4.0-tools-9.9.3.patch: patch not appropriate for this kernel
*** Applying vsock/01-vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...
patching file linux/notify.c
patching file linux/notifyQState.c
*** Applying vmblock/01-vmblock.3.10.patch ...
patching file linux/control.c
*** Applying vmblock/02-vmblock.3.11.patch ...
patching file linux/file.c
*** Applying vmblock/03-vmblock.3.12.patch ...
patching file linux/control.c
patching file linux/dentry.c
patching file linux/inode.c
*** Applying vmblock/04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...
patching file linux/inode.c
Hunk #1 succeeded at 177 (offset -1 lines).
user@ubuntu:~/Desktop/vmware-patch/vmware-tools-patches$ cd vmware-tools-distrib/
user@ubuntu:~/Desktop/vmware-patch/vmware-tools-patches/vmware-tools-distrib$ sudo ./vmware-install.pl 
[sudo] password for user: 
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will 
first uninstall the currently installed version.  Do you wish to continue? 
(yes/no) [yes] 

.....

Installing VMware Tools.

.....

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] 


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-53-generic/build/include".
The path "/lib/modules/3.13.0-53-generic/build/include" appears to be a valid 
path to the 3.13.0-53-generic kernel headers.
Would you like to change it? [no] 

Using 2.6.x kernel build system.
make: Entering directory `/tmp/modconfig-urTco3/vmhgfs-only'
/usr/bin/make -C /lib/modules/3.13.0-53-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-53-generic'
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-urTco3/vmhgfs-only/file.o
In file included from /tmp/modconfig-urTco3/vmhgfs-only/file.c:35:0:
/tmp/modconfig-urTco3/vmhgfs-only/file.c: In function ‘HgfsAioRead’:
/tmp/modconfig-urTco3/vmhgfs-only/./shared/compat_dentry.h:7:23: error: expected identifier before ‘(’ token
 # define DENTRY(file) (file->f_dentry)
                       ^
/tmp/modconfig-urTco3/vmhgfs-only/file.c:790:34: note: in expansion of macro ‘DENTRY’
    result = HgfsRevalidate(iocb->DENTRY(ki_filp));
                                  ^
/tmp/modconfig-urTco3/vmhgfs-only/file.c: In function ‘HgfsAioWrite’:
/tmp/modconfig-urTco3/vmhgfs-only/./shared/compat_dentry.h:7:23: error: expected identifier before ‘(’ token
 # define DENTRY(file) (file->f_dentry)
                       ^
/tmp/modconfig-urTco3/vmhgfs-only/file.c:839:24: note: in expansion of macro ‘DENTRY’
    writeDentry = iocb->DENTRY(ki_filp);
                        ^
make[2]: *** [/tmp/modconfig-urTco3/vmhgfs-only/file.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/modconfig-urTco3/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-53-generic'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/modconfig-urTco3/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 ] 

.....

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-53-generic
vmware-tools-thinprint start/running
vmware-tools start/running
The configuration of VMware Tools 9.6.2 build-1688356 for Linux for this 
running kernel completed successfully.

.....

user@ubuntu:~/Desktop/vmware-patch/vmware-tools-patches/vmware-tools-distrib$ uname -a
Linux ubuntu 3.13.0-53-generic #89-Ubuntu SMP Wed May 20 10:34:28 UTC 2015 i686 i686 i686 GNU/Linux

Ubuntu 14.04.02 vmhgfs compile failure (VMwareTools-9.9.2-2496486)

Hello!

I cannot compile the latest VMwareTools-9.9.2-2496486 (neither patched not original) on Ubuntu 14.04.02 with latest Linux kernel (3.13.0-46). It raises the following error:

 from /tmp/modconfig-qqjwHn/vmhgfs-only/inode.c:29:
/tmp/modconfig-qqjwHn/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
include/linux/kernel.h:793:27: error: ‘struct dentry’ has no member named ‘d_alias’
  const typeof( ((type *)0)->member ) *__mptr = (ptr); \

The complete output can be found here https://gist.github.com/eborshch/cd6f430bf6771e33e5cf. I've noticed that there is a recent fix (#27) for the similar issue, though it does not solve this particular issue as it has been already merged into the master when I've tried it.

Any hints?

Thank you in advance!

Best,
Eugene

p.s. it looks like this issue has been already reported to VMWare https://communities.vmware.com/message/2477575

Fedora 21 vmblock not installing (compile fails)

When installing from tools 7.1.1 (vmwaretools 9.9.2-2496488) in Fedora 21 (kernel 3.19.5-200.fc21.x86_64) vmblock is not being installed. I have applied the fix mentioned in issue #22 with no avail.

When attempting to manually compile the vmblock module from /usr/lib/vmware-tools/modules/source/vmblock-only I get the following error:

[root@element vmblock-only]# make
Using kernel build system.
make -C /lib/modules/3.19.5-200.fc21.x86_64/build/include/.. SUBDIRS=
$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/kernels/3.19.5-200.fc21.x86_64'
CC [M] /tmp/vmblock-only/linux/filesystem.o
/tmp/vmblock-only/linux/filesystem.c: In function ‘Iget’:
/tmp/vmblock-only/linux/filesystem.c:325:21: error: storage size of
‘actualNd’ isn’t known
struct nameidata actualNd;
^
/tmp/vmblock-only/linux/filesystem.c:325:21: warning: unused variable
‘actualNd’ [-Wunused-variable]
scripts/Makefile.build:257: recipe for target
'/tmp/vmblock-only/linux/filesystem.o' failed
make[2]: *** [/tmp/vmblock-only/linux/filesystem.o] Error 1
Makefile:1386: recipe for target 'module/tmp/vmblock-only' failed
make[1]: *** [module/tmp/vmblock-only] Error 2
make[1]: Leaving directory '/usr/src/kernels/3.19.5-200.fc21.x86_64'
Makefile:120: recipe for target 'vmblock.ko' failed
make: *** [vmblock.ko] Error 2
[root@element vmblock-only]#

unzip dependency

Please add the unzip tool to the dependency list as it is required by download-tools.sh. I used your tool on Ubuntu Server 15.04 and unzip is not installed by default. download-tools.sh will download the correct package, but will not extract the data to the vmware-tools-patches directory for the next step of the install process.

Thanks for this work!!!

build fails on Debian 4.2 kernel

Fixed up my gcc symlink and now building fails.

Kernel is:
Linux xxx 4.2.0-1-amd64 #1 SMP Debian 4.2.1-2 (2015-09-27) x86_64 GNU/Linux

make: Entering directory '/tmp/modconfig-OzPZt7/vmhgfs-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/4.2.0-1-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.0-1-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-OzPZt7/vmhgfs-only/bdhandler.o
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c:59:4: warning: initialization from incompatible pointer type
    .follow_link   = HgfsFollowlink,
    ^
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c:59:4: warning: (near initialization for ‘HgfsLinkInodeOperations.follow_link’)
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c:61:4: warning: initialization from incompatible pointer type
    .put_link      = HgfsPutlink,
    ^
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c:61:4: warning: (near initialization for ‘HgfsLinkInodeOperations.put_link’)
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c: In function ‘HgfsFollowlink’:
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c:127:10: error: implicit declaration of function ‘nd_set_link’ [-Werror=implicit-function-declaration]
          nd_set_link(nd, fileName);
          ^
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c: In function ‘HgfsPutlink’:
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c:276:4: error: implicit declaration of function ‘nd_get_link’ [-Werror=implicit-function-declaration]
    fileName = nd_get_link(nd);
    ^
/tmp/modconfig-OzPZt7/vmhgfs-only/link.c:276:13: warning: assignment makes pointer from integer without a cast
    fileName = nd_get_link(nd);
             ^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.2.0-1-common/scripts/Makefile.build:263: recipe for target '/tmp/modconfig-OzPZt7/vmhgfs-only/link.o' failed
make[4]: *** [/tmp/modconfig-OzPZt7/vmhgfs-only/link.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/src/linux-headers-4.2.0-1-common/Makefile:1403: recipe for target '_module_/tmp/modconfig-OzPZt7/vmhgfs-only' failed
make[3]: *** [_module_/tmp/modconfig-OzPZt7/vmhgfs-only] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-1-amd64'
Makefile:120: recipe for target 'vmhgfs.ko' failed
make: *** [vmhgfs.ko] Error 2
make: Leaving directory '/tmp/modconfig-OzPZt7/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.

patch vmblock/03-vmblock.3.12.patch unexpectedly ends in middle of line

While applying Patch vmblock/03-vmblock.3.12.patch the following message is shown:

...
*** Applying vmblock/03-vmblock.3.12.patch ...
patching file linux/control.c
patching file linux/dentry.c
patching file linux/inode.c
patch unexpectedly ends in middle of line
...

Using VMware Workstation 11.1.0 build 2496824 and VMware Tools 9.9.2 build 2496486.

Error compiling vmhgfs on 3.12

I'm having trouble getting vmhgfs to compile with the provided patch on the 3.12 kernel. I'm trying to build on Archlinux. Here's the output I'm getting:

In file included from /tmp/modconfig-cAothp/vmhgfs-only/inode.c:38:0:
/tmp/modconfig-cAothp/vmhgfs-only/inode.c: In function ‘HgfsPackSetattrRequest’:
/tmp/modconfig-cAothp/vmhgfs-only/./shared/compat_cred.h:43:29: error: request for member ‘val’ in something not a structure or union
 #define KUID2UID(kuid) (kuid.val)
                             ^
/tmp/modconfig-cAothp/vmhgfs-only/inode.c:520:27: note: in expansion of macro ‘KUID2UID’
          attrV2->userId = KUID2UID(iattr->ia_uid);
                           ^
/tmp/modconfig-cAothp/vmhgfs-only/./shared/compat_cred.h:44:29: error: request for member ‘val’ in something not a structure or union
 #define KGID2GID(kgid) (kgid.val)
                             ^
/tmp/modconfig-cAothp/vmhgfs-only/inode.c:526:28: note: in expansion of macro ‘KGID2GID’
          attrV2->groupId = KGID2GID(iattr->ia_gid);
                            ^
/tmp/modconfig-cAothp/vmhgfs-only/./shared/compat_cred.h:43:29: error: request for member ‘val’ in something not a structure or union
 #define KUID2UID(kuid) (kuid.val)
                             ^
/tmp/modconfig-cAothp/vmhgfs-only/inode.c:623:27: note: in expansion of macro ‘KUID2UID’
          attrV2->userId = KUID2UID(iattr->ia_uid);
                           ^
/tmp/modconfig-cAothp/vmhgfs-only/./shared/compat_cred.h:44:29: error: request for member ‘val’ in something not a structure or union
 #define KGID2GID(kgid) (kgid.val)
                             ^
/tmp/modconfig-cAothp/vmhgfs-only/inode.c:629:28: note: in expansion of macro ‘KGID2GID’
          attrV2->groupId = KGID2GID(iattr->ia_gid);
                            ^
scripts/Makefile.build:308: recipe for target '/tmp/modconfig-cAothp/vmhgfs-only/inode.o' failed
make[2]: *** [/tmp/modconfig-cAothp/vmhgfs-only/inode.o] Error 1
Makefile:1228: recipe for target '_module_/tmp/modconfig-cAothp/vmhgfs-only' failed
make[1]: *** [_module_/tmp/modconfig-cAothp/vmhgfs-only] Error 2make[1]: Leaving directory '/usr/src/linux-3.12.2-1-ARCH'
Makefile:130: recipe for target 'vmhgfs.ko' failed
make: *** [vmhgfs.ko] Error 2
make: Leaving directory '/tmp/modconfig-cAothp/vmhgfs-only'

I did some searching and found a couple stack overflow posts saying that this error means that you should use "->" instead of "."; I tried making that change myself and the error changed to:

/tmp/modconfig-9aRYHR/vmhgfs-only/./shared/compat_cred.h:43:29: error: invalid type argument of ‘->’ (have ‘kuid_t’)
 #define KUID2UID(kuid) (kuid->val)
                             ^
/tmp/modconfig-9aRYHR/vmhgfs-only/inode.c:517:27: note: in expansion of macro ‘KUID2UID’
          attrV2->userId = KUID2UID(iattr->ia_uid);
                           ^
/tmp/modconfig-9aRYHR/vmhgfs-only/./shared/compat_cred.h:44:29: error: invalid type argument of ‘->’ (have ‘kgid_t’)
 #define KGID2GID(kgid) (kgid->val)
                             ^
/tmp/modconfig-9aRYHR/vmhgfs-only/inode.c:523:28: note: in expansion of macro ‘KGID2GID’
          attrV2->groupId = KGID2GID(iattr->ia_gid);
                            ^
/tmp/modconfig-9aRYHR/vmhgfs-only/./shared/compat_cred.h:43:29: error: invalid type argument of ‘->’ (have ‘kuid_t’)
 #define KUID2UID(kuid) (kuid->val)
                             ^
/tmp/modconfig-9aRYHR/vmhgfs-only/inode.c:620:27: note: in expansion of macro ‘KUID2UID’
          attrV2->userId = KUID2UID(iattr->ia_uid);
                           ^
/tmp/modconfig-9aRYHR/vmhgfs-only/./shared/compat_cred.h:44:29: error: invalid type argument of ‘->’ (have ‘kgid_t’)
 #define KGID2GID(kgid) (kgid->val)
                             ^
/tmp/modconfig-9aRYHR/vmhgfs-only/inode.c:626:28: note: in expansion of macro ‘KGID2GID’
          attrV2->groupId = KGID2GID(iattr->ia_gid);
                            ^

Which (according to my searches) means that you should use "." instead of "->". My best guess is that kgid and kuid are getting passed in differently in different contexts, but I'm not that great with C; what do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.