Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507026 - app-emulation/open-vm-tools-kmod-2013.09.16.1328054-r3 with kernel 3.14.0 - modules/linux/vmhgfs/filesystem.c:234:15: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
Summary: app-emulation/open-vm-tools-kmod-2013.09.16.1328054-r3 with kernel 3.14.0 - m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 10:15 UTC by Marcin Mirosław
Modified: 2015-05-10 14:32 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,13.42 KB, text/plain)
2014-04-07 10:16 UTC, Marcin Mirosław
Details
.config (.config,51.51 KB, text/plain)
2014-04-07 14:47 UTC, Marcin Mirosław
Details
open-vm-tools >=gentoo-sources-3.13 (open-vm-tools-3.14.patch,4.86 KB, patch)
2014-05-04 21:11 UTC, Balázs Kalmár
Details | Diff
open-vm-tools-kmod-9.4.6.1770165.ebuild (open-vm-tools-kmod-9.4.6.1770165.ebuild,1.81 KB, text/plain)
2014-07-18 20:33 UTC, Florian Steinel
Details
open-vm-tools-kmod-9.4.6.1770165.ebuild (open-vm-tools-kmod-9.4.6.1770165.ebuild,2.02 KB, text/plain)
2014-12-31 10:59 UTC, Florian Steinel
Details
open-vm-tools-kmod-2013.09.16.1328054.ebuild (open-vm-tools-kmod-2013.09.16.1328054.ebuild,2.00 KB, text/plain)
2015-05-10 06:15 UTC, Florian Steinel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2014-04-07 10:15:31 UTC
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/lib/include/vm_assert.h:298:0: warning: "DEPRECATED" redefi
ned [enabled by default]
In file included from include/linux/kernel.h:13:0,
                 from /usr/src/linux-3.14.0-gentoo/arch/x86/include/asm/percpu.h:44,
                 from /usr/src/linux-3.14.0-gentoo/arch/x86/include/asm/current.h:5,
                 from /usr/src/linux-3.14.0-gentoo/arch/x86/include/asm/processor.h:15,
                 from /usr/src/linux-3.14.0-gentoo/arch/x86/include/asm/atomic.h:6,
                 from /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/filesystem.c:29:
include/linux/printk.h:96:0: note: this is the location of the previous definition
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/filesystem.c: In function ‘HgfsInitSup
erInfo’:
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/filesystem.c:234:15: error: incompatib
le types when assigning to type ‘uid_t’ from type ‘kuid_t’
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/filesystem.c:240:15: error: incompatib
le types when assigning to type ‘gid_t’ from type ‘kgid_t’
make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/filesystem.o] Error 1
make[2]: *** Waiting for unfinished jobs....


Reproducible: Always




Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-4620_0_@_2.20GHz-with-gentoo-2.2
KiB Mem:    16410200 total,  13677308 free
KiB Swap:    1048572 total,   1048520 free
Timestamp of tree: Mon, 07 Apr 2014 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7 -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=corei7 -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://portage-mirror/gentoo-portage"
USE="acl acpi amd64 bash-completion bzip2 caps cli cracklib crypt cxx device-mapper fortran glibc-omitfp iconv idn mmap mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline session slang smp sse sse2 sse3 ssl ssse3 threads threadsafe unicode vim-syntax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif status unique_id usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" NGINX_MODULES_HTTP="access gzip realip headers_more limit_req limit_zone rewrite stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Marcin Mirosław 2014-04-07 10:16:39 UTC
Created attachment 374458 [details]
build.log
Comment 2 Mike Gilbert gentoo-dev 2014-04-07 13:40:24 UTC
Do you have CONFIG_UIDGID_STRICT_TYPE_CHECKS enabled in your kernel? If so, try disabling it.

Note that if you are using user namespaces (CONFIG_USER_NS), that will not be possible.
Comment 3 Marcin Mirosław 2014-04-07 14:47:56 UTC
Created attachment 374478 [details]
.config

I can't find CONFIG_UIDGID_STRICT_TYPE_CHECKS in kernel.
And CONFIG_USER_NS I have not set:
# grep CONFIG_USER_NS .config
# CONFIG_USER_NS is not set

I'm attaching .config.
Comment 4 Mike Gilbert gentoo-dev 2014-04-07 14:55:19 UTC
Ah, the CONFIG_UIDGID_STRICT_TYPE_CHECKS option was removed, effectively forcing it to enabled.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=261000a56b6382f597bcb12000f55c9ff26a1efb

Nothing I can really do until VMWare releases a fix.
Comment 5 Marcin Mirosław 2014-04-07 15:02:07 UTC
I'll try to be patient;) Thanks.
Comment 6 Arnim Eijkhoudt 2014-04-21 22:38:17 UTC
Confirmed here as well for gentoo-sources and hardened-sources.
Comment 7 Balázs Kalmár 2014-05-04 21:11:52 UTC
Created attachment 376374 [details, diff]
open-vm-tools >=gentoo-sources-3.13

I've patched the open-vm-tools-2013.09.16.1328054 to compile with kernels >= 3.13.
The modules load but the functionality hasn't been tested.
Otherwise it seems to be working.
Comment 8 Mike Gilbert gentoo-dev 2014-05-05 03:01:42 UTC
Thanks for the patch. Can anyone do some run time testing?
Comment 9 Andrejs Eigus 2014-05-13 11:44:02 UTC
Mike, I've compiled latest open-vm-tools-kmod with the patch by Balázs Kalmár and kernel 3.14.3.  The system booted ok and vmtoolsd is running.

I'd like to run some additional tests, but question is how to test "functionality"?

Andrejs
Comment 10 Ted Yin 2014-06-07 04:26:05 UTC
(In reply to Mike Gilbert from comment #8)
> Thanks for the patch. Can anyone do some run time testing?

Unfortunately, vmhgfs doesn't actuall work on my laptop with kernel 3.14.4. The module can be loaded normaly, however, the mounted vmhgfs can not be accessed. When I try to cd into it, an error "Permission Denied" occurs.
Comment 12 Florian Steinel 2014-07-18 20:33:11 UTC
Created attachment 380990 [details]
open-vm-tools-kmod-9.4.6.1770165.ebuild

open-vm-tools-kmod-9.4.6.1770165.ebuild with patches from https://github.com/davispuh/open-vm-tools-dkms by davispuh .

- change to files
  cd /usr/portage/app-emulation/open-vm-tools-kmod/files
- Download patches from github repo
  wget https://raw.githubusercontent.com/davispuh/open-vm-tools-dkms/master/{0001-Remove-unused-DEPRECATED-macro.patch,0002-Conditionally-define-g_info-macro.patch,0003-Add-kuid_t-kgid_t-compatibility-layer.patch,0004-Use-new-link-helpers.patch,0005-Update-hgfs-file-operations-for-newer-kernels.patch}
- rename patches
  mv {,9.4.6-}0001-Remove-unused-DEPRECATED-macro.patch
  mv {,9.4.6-}0002-Conditionally-define-g_info-macro.patch
  mv {,9.4.6-}0003-Add-kuid_t-kgid_t-compatibility-layer.patch
  mv {,9.4.6-}0004-Use-new-link-helpers.patch
  mv {,9.4.6-}0005-Update-hgfs-file-operations-for-newer-kernels.patch

build with 3.14.5-hardened-r2 and kernelconfig with
- CONFIG_CC_STACKPROTECTOR_REGULAR=y 

Tested:
# mount -v -t vmhgfs .host:/ /mnt/hgfs
Original command line: "/sbin/mount.vmhgfs -v -o rw .host:/ /mnt/hgfs"
Host component of share name is ".host"
Directory component of share name is "/"
Parsing option string: rw
Setting mount read-write

# ls -la /mnt/hgfs
total 19
dr-xr-xr-x. 1 root root  4192 Jul 18  2014 .
drwxr-xr-x. 3 root root  4096 Feb 15 00:44 ..
drwxrwxrwx. 1 root root 24576 Jun 13 20:39 fsteinel
Comment 13 Florian Steinel 2014-07-18 20:40:54 UTC
Portage 2.2.8-r1 (hardened/linux/amd64/no-multilib/selinux, gcc-4.7.3, glibc-2.17, 3.14.5-hardened-r2 x86_64)
=================================================================
System uname: Linux-3.14.5-hardened-r2-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:     1016184 total,    102696 free
KiB Swap:     112636 total,     91716 free
Timestamp of tree: Fri, 18 Jul 2014 17:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.6, 3.3.3
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/lib32/systemd /lib/systemd /usr/lib/tmpfiles.d /usr/lib32/tmpfiles.d /usr/lib64/systemd /usr/lib32/systemd"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 caps cli cracklib crypt cxx dri gdbm gmp gnutls hardened iconv ipv6 justify logrotate mmx modules ncurses nls nptl nscd open_perms openmp pam pax_kernel pcre peer_perms readline selinux session sse sse2 ssl tcpd unconfined unicode urandom utf8 vmware_guest_linux xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ens1371" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vmware vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 14 Maxim Kammerer 2014-07-22 12:19:43 UTC
(In reply to Balázs Kalmár from comment #7)
> Created attachment 376374 [details, diff] [details, diff]
> open-vm-tools >=gentoo-sources-3.13
> 
> I've patched the open-vm-tools-2013.09.16.1328054 to compile with kernels >=
> 3.13.
> The modules load but the functionality hasn't been tested.
> Otherwise it seems to be working.

Compilation now fails on hardened-sources-3.15.5-r1:

/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/link.c: In function ‘HgfsReadlink’:
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/link.c:188:10: error: implicit declaration of function ‘vfs_readlink’ [-Werror=implicit-function-declaration]
Comment 15 Maxim Kammerer 2014-07-22 13:12:52 UTC
(In reply to Maxim Kammerer from comment #14)
> /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/
> open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/link.c: In function
> ‘HgfsReadlink’:
> /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/
> open-vm-tools-2013.09.16-1328054/modules/linux/vmhgfs/link.c:188:10: error:
> implicit declaration of function ‘vfs_readlink’
> [-Werror=implicit-function-declaration]

This is addressed by second hunk in 0004-Use-new-link-helpers.patch from comment #12, see bug #507664.
Comment 16 Serge 2014-08-06 19:39:58 UTC
I confirm that Florian comment did it
on kernel 3.14.14-gentoo x86 and amd64
Comment 17 Serge 2014-08-06 19:55:05 UTC
I have to add that the install is OK but I can't mount host drives (hgfs). But I'm not sure it worked before...
Comment 18 Serge 2014-11-19 21:47:30 UTC
comment 25 on bug 519822 can help as this package is mot time not needed with modern kernels on ESXi host.

see https://bugs.gentoo.org/show_bug.cgi?id=519822#c25
Comment 19 Florian Steinel 2014-12-31 10:44:27 UTC
Comment 18 the module 
hgfs 
is for the access from the client os to the hostsystem
see https://www.vmware.com/support/ws4/doc/running_sharefold_ws.html


new patches for >=gentoo-sources-3.16:
- 0006-Fix-vmxnet-module-on-kernels-3.16.patch
- 0007-Fix-vmhgfs-module-on-kernels-3.16.patch
- 0008-Fix-segfault-in-vmhgfs.patch
Comment 20 Florian Steinel 2014-12-31 10:59:07 UTC
Created attachment 392752 [details]
open-vm-tools-kmod-9.4.6.1770165.ebuild

open-vm-tools-kmod-9.4.6.1770165.ebuild with patches from https://github.com/davispuh/open-vm-tools-dkms by davispuh .

- change to files
  cd /usr/portage/app-emulation/open-vm-tools-kmod/files
- Download patches from github repo
  wget https://raw.githubusercontent.com/davispuh/open-vm-tools-dkms/master/{0001-Remove-unused-DEPRECATED-macro.patch,0002-Conditionally-define-g_info-macro.patch,0003-Add-kuid_t-kgid_t-compatibility-layer.patch,0004-Use-new-link-helpers.patch,0005-Update-hgfs-file-operations-for-newer-kernels.patch,0006-Fix-vmxnet-module-on-kernels-3.16.patch,0007-Fix-vmhgfs-module-on-kernels-3.16.patch,0008-Fix-segfault-in-vmhgfs.patch}
- rename patches
  mv {,9.4.6-}0001-Remove-unused-DEPRECATED-macro.patch
  mv {,9.4.6-}0002-Conditionally-define-g_info-macro.patch
  mv {,9.4.6-}0003-Add-kuid_t-kgid_t-compatibility-layer.patch
  mv {,9.4.6-}0004-Use-new-link-helpers.patch
  mv {,9.4.6-}0005-Update-hgfs-file-operations-for-newer-kernels.patch
  mv {,9.4.6-}0006-Fix-vmxnet-module-on-kernels-3.16.patch
  mv {,9.4.6-}0007-Fix-vmhgfs-module-on-kernels-3.16.patch
  mv {,9.4.6-}0008-Fix-segfault-in-vmhgfs.patch
build with 3.17.7-hardened-r1 and kernelconfig with
- CONFIG_CC_STACKPROTECTOR_REGULAR=y 

Tested:
# mount -v -t vmhgfs .host:/ /mnt/hgfs
Original command line: "/sbin/mount.vmhgfs -v -o rw .host:/ /mnt/hgfs"
Host component of share name is ".host"
Directory component of share name is "/"
Parsing option string: rw
Setting mount read-write

# ls -la /mnt/hgfs
total 35
dr-xr-xr-x. 1 root root  4192 Dec 31 11:58 .
drwxr-xr-x. 3 root root  4096 Feb 15  2014 ..
drwxrwxrwx. 1 root root 28672 Sep 28 01:29 fsteinel
Comment 21 Mike DeSimone 2015-01-09 20:12:51 UTC
The ebuild in comment 20 solved the build problems I have been having since kernel 3.12.x (same as bug #519822), and it's working fine with kernel 3.17. I hope this gets pushed to mainline; the system I'm working on is behind a pretty draconian firewall, only has access to a mirror of the mainline portage tree, and can't access layman overlays.

IIRC, an ebuild can have an "internal" version number which is used to straighten out cases where the version numbers aren't clear enough. Perhaps this package could use the changeset number (1770165 in this case) as this internal number.

I liked the `vmhgfs` USE flag introduced in the 2013.x version, and think a `vmxnet` USE flag would be helpful for cases like mine where we're using vmxnet3 from the kernel and only need vmhgfs to access VMWare shared folders (and thus would want USE="-vmxnet vmhgfs").
Comment 22 Florian Steinel 2015-05-10 06:15:37 UTC
Created attachment 402924 [details]
open-vm-tools-kmod-2013.09.16.1328054.ebuild

Patches posted at gentoos VMware overlay as pull requests:
https://github.com/gentoo/vmware

(In reply to Florian Steinel from comment #20)
see above
- https://github.com/gentoo/vmware/pull/2
- https://github.com/fsteinel/vmware/tree/master-fsteinel

(In reply to Mike DeSimone from comment #21)
I added the vmxnet useflag, please test the attached ebuild as i'm currently not near a VMware-viewer installation
( https://github.com/fsteinel/vmware/tree/tests )
Comment 23 Mike Gilbert gentoo-dev 2015-05-10 14:32:02 UTC
+*open-vm-tools-kmod-9.10.0_p2476743 (10 May 2015)
+
+  10 May 2015; Mike Gilbert <floppym@gentoo.org>
+  +files/9.10.0-0001-Fix-vmxnet-module-on-kernels-3.16.patch,
+  +files/9.10.0-0002-Fix-d_alias-to-d_u.d_alias-for-kernel-3.18.patch,
+  +files/9.10.0-0003-Fix-f_dentry-msghdr-kernel-3.19.patch,
+  +open-vm-tools-kmod-9.10.0_p2476743.ebuild, metadata.xml:
+  Version bump. Resolves bug 507026.

Thanks a lot for the links to patches, etc.