Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539972 - app-emulation/vmware-modules-279.3-r1 with kernel 3.19 - ?
Summary: app-emulation/vmware-modules-279.3-r1 with kernel 3.19 - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 553832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-13 12:39 UTC by Harris Landgarten
Modified: 2015-09-19 18:59 UTC (History)
11 users (show)

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


Attachments
patch fixes some vmblock issues with linux-3.19 (vmblock-319.patch,705 bytes, patch)
2015-02-15 17:20 UTC, Harris Landgarten
Details | Diff
patch fixes struct nameidata issues with vmblock and linux-3.19 (vmblock-nameidata-319.patch,2.07 KB, patch)
2015-02-15 17:20 UTC, Harris Landgarten
Details | Diff
vmci-319.patch (vmci-319.patch,730 bytes, patch)
2015-02-21 18:12 UTC, Ștefan Talpalaru
Details | Diff
vmnet-319.patch (vmnet-319.patch,923 bytes, patch)
2015-02-21 18:13 UTC, Ștefan Talpalaru
Details | Diff
vsock-319.patch (vsock-319.patch,3.68 KB, patch)
2015-02-21 18:15 UTC, Ștefan Talpalaru
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2015-02-13 12:39:27 UTC
As of 3.19, struct nameidata is no longer exported in namei.h

This breaks any software that uses struct nameidata;

app-emulation/vmware-modules will no longer compile because it is using

struct nameidata in vmblock-only/linux/dentry.c and filesystem.c

Some of the macros in vmblock/shared also need to be patched.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-13 19:20:22 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Harris Landgarten 2015-02-13 20:10:35 UTC
I am currently running vmware-workstation-11.0 from my local overlay with new modules. This bug effects all past vmware-modules as well as the new ones for workstation-11.0.

The api change is in the kernel. compare include/namei.h from 3.19 with the one from 3.18.6 and you will see the 3.18 kernel has

struct nameidata {...}

and the 3.19 has this declaration removed. There is almost no mention of this on the net other than some comments that nameidata is now opaque.

These are the errors caused by the api change:

/usr/src/linux-3.19.0-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/filesystem.o' failed
/usr/src/linux-3.19.0-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/dentry.o' failed
/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/dentry.c: In function ‘DentryOpRevalidate’:
/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/dentry.c:66:21: error: storage size of ‘actualNd’ isn’t known
    struct nameidata actualNd;
                     ^
/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/filesystem.c: In function ‘Iget’:
/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/dentry.c:66:21: warning: unused variable ‘actualNd’ [-Wunused-variable]
/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/filesystem.c:325:21: error: storage size of ‘actualNd’ isn’t known
    struct nameidata actualNd;
                     ^
/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/filesystem.c:325:21: warning: unused variable ‘actualNd’ [-Wunused-variable]
make[3]: *** [/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/filesystem.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/var/tmp/paludis/app-emulation-vmware-modules-280.0/work/vmblock-only/linux/dentry.o] Error 1
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-13 20:20:56 UTC
Note: API changes in the kernel affect external kernel modules. They're external which means they don't get updated along with the modules in the kernel tree. This isn't a problem in the kernel, then, but a problem in any external module (such as vwmare-modules) because they only get fixed after the kernel release. So now that we've established that the problem is NOT in the kernel, but in vwmare-modules...

If you run a version of vwmare-modules that isn't even in the tree, it's pointless to file a bug report because you apparently don't personally care about the version in the portage tree anyway. If you do care, then you should probably reproduce the issue and attach the requested information so that we do have a formal and complete problem report. If you don't care, someone else will.
Comment 4 Harris Landgarten 2015-02-13 20:38:39 UTC
note: This bug only addresses the api change in namei

There are other patches needed for 3.19 with vmware-modules.

vmnet for instance will not compile or run because f_denty is now f_path.dentry.

I am going to post some patches in another bug later regarding getting vmware-modules running with 3.19.

Portage 2.2.17 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r1, 3.19.0-gentoo x86_64)
=================================================================
System uname: Linux-3.19.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_970_@_3.20GHz-with-gentoo-2.2
KiB Mem:    24680780 total,    300620 free
KiB Swap:   62914548 total,  62913936 free
Timestamp of repository gentoo: Fri, 13 Feb 2015 11:45:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r1::<unknown repository>
dev-java/java-config:     2.2.0::<unknown repository>
dev-lang/perl:            5.20.1-r4::<unknown repository>
dev-lang/python:          2.7.9-r2::<unknown repository>, 3.2.5-r6::<unknown repository>, 3.3.5-r1::<unknown repository>, 3.4.2::<unknown repository>
dev-util/cmake:           3.1.0::<unknown repository>
dev-util/pkgconfig:       0.28-r2::<unknown repository>
sys-apps/baselayout:      2.2::<unknown repository>
sys-apps/openrc:          0.13.9::<unknown repository>
sys-apps/sandbox:         2.6-r1::<unknown repository>
sys-devel/autoconf:       2.13::<unknown repository>, 2.69::<unknown repository>
sys-devel/automake:       1.10.3-r1::<unknown repository>, 1.11.6-r1::<unknown repository>, 1.12.6::<unknown repository>, 1.13.4::<unknown repository>, 1.14.1::<unknown repository>, 1.15::<unknown repository>
sys-devel/binutils:       2.24-r3::<unknown repository>
sys-devel/gcc:            4.7.4::<unknown repository>, 4.8.4::<unknown repository>, 4.9.2::<unknown repository>
sys-devel/gcc-config:     1.8::<unknown repository>
sys-devel/libtool:        2.4.5::<unknown repository>
sys-devel/make:           4.1-r1::<unknown repository>
sys-kernel/linux-headers: 3.19::<unknown repository> (virtual/os-headers)
sys-libs/glibc:           2.20-r1::<unknown repository>
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync27.us.gentoo.org/gentoo-portage
    priority: -1000

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 3

miramir
    location: /var/lib/layman/miramir
    masters: gentoo
    priority: 4

gnome
    location: /var/lib/layman/gnome
    masters: gentoo
    priority: 5

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-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 sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://lug.mtu.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtreamer iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb sound spell sse sse2 ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid xvmc 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="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" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_4 python3_3" RUBY_TARGETS="ruby19" 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, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Harris Landgarten 2015-02-13 21:23:11 UTC
please leave the namei reference in the name of this bug as other software could have been broken by this api change.

If you really need the build log I can post it but it is all stuff in my overlay and none of it is in the tree yet.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-14 08:39:09 UTC
This isn't your personal note-keeping website. If it's about versions of packages not actually in the tree or in an official overlay, then it has no place here, not even for anyone's future reference.
Comment 7 Harris Landgarten 2015-02-14 13:19:43 UTC
Let me take a step back.

Vmware released workstation version 11 a few months ago. No one has yet put version 11 in the tree. There is a bug relating to getting it running and I and a few others are making progress. I have been running version 11 for about a month.

It is not my fault no one has put version 11 in the vmware-overlay yet. I was asked to add my stuff to the overlay just yesterday.

kernel-3.19 broke the modules that came with version 11. I have been patching the new modules and now have them working. I have been posting what I have found in an existing bug relating to vmware-workstation 11.

When I found the problem with structure nameidata in vmblock-only, I thought it was potentially a bigger issue because it effects older versions of vmware-modules in the tree and could effect other software.

That is why I filed this bug. I am trying to help other gentoo users so they don't have to spend hours or days duplicating what I have found.

Being nasty to me does not seem appropriate.
Comment 8 Mike Auty (RETIRED) gentoo-dev 2015-02-15 16:36:49 UTC
I can confirm, it does affect in-overlay versions (as the reporter suggested it would) and also in-tree versions.  This therefore is a useful reference, and marking it as invalid prevents people coming across the same issue to find the useful information.  Reopening and appropriately assigning.

I can only assume Jer was having a bad day.  Thanks for your contribution Harris...
Comment 9 Harris Landgarten 2015-02-15 17:19:20 UTC
I posted my patches for this issue to the vmware-workstation-11 bug. I am going to post the my fixes to the nameiedata issue here as well.
Comment 10 Harris Landgarten 2015-02-15 17:20:00 UTC
Created attachment 396522 [details, diff]
patch fixes some vmblock issues with linux-3.19
Comment 11 Harris Landgarten 2015-02-15 17:20:30 UTC
Created attachment 396524 [details, diff]
patch fixes struct nameidata issues with vmblock and linux-3.19
Comment 12 Harris Landgarten 2015-02-15 17:21:25 UTC
note, I have only tested these patches with the modules that come with workstation-11 but I think they should work on the in tree ones.
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-18 08:35:19 UTC
(In reply to Mike Auty from comment #8)
> I can only assume Jer was having a bad day.  Thanks for your contribution
> Harris...

Yes, surely I was merely being hysterical.

The point of asking for information is that a patch without an actual error message is pointless. So we require a build log when someone provides a patch without an actual error message so that we can stick it in the Summary and have proper bug reports that anyone else can actually find in the future, as opposed to vague bug reports that merely attract unrelated comments and contributions.
Comment 14 Harris Landgarten 2015-02-18 12:41:42 UTC
I understand. It would still be a good idea to get nameidata into the title so if someone runs into this issue on other software they will find this bug.
Comment 15 Ștefan Talpalaru 2015-02-21 18:12:00 UTC
Created attachment 397152 [details, diff]
vmci-319.patch

memcpy_toiovec is no longer in the kernel
Comment 16 Ștefan Talpalaru 2015-02-21 18:13:35 UTC
Created attachment 397154 [details, diff]
vmnet-319.patch

skb_copy_datagram_iovec() has been removed from the kernel
Comment 17 Ștefan Talpalaru 2015-02-21 18:15:44 UTC
Created attachment 397156 [details, diff]
vsock-319.patch

"msghdr" changed into "user_msghdr" and skb_copy_datagram_iovec() replaced
Comment 18 Ștefan Talpalaru 2015-02-21 18:17:59 UTC
I have tested the last 3 patches, along with the 2 already available, with vmware-modules-279.3-r1 from the 'vmware' overlay and gentoo-sources-3.19.0.
Comment 19 Hank Leininger 2015-02-25 03:58:41 UTC
FWIW, the vmware-modules-279.3.ebuild in the main portage tree failed for me exactly as described for a gentoo-sources-3.19.0 kernel.  Adding all five of the above patches made the drivers build and load just fine.
Comment 20 Conrad Kostecki gentoo-dev 2015-03-11 17:24:32 UTC
(In reply to Hank Leininger from comment #19)
> FWIW, the vmware-modules-279.3.ebuild in the main portage tree failed for me
> exactly as described for a gentoo-sources-3.19.0 kernel.  Adding all five of
> the above patches made the drivers build and load just fine.

+1

Using those patches make me again to compile vmware-modules 279.3 with kernel 3.19 =)
Comment 21 Adam Carter 2015-03-16 03:27:59 UTC
Build is failing for me. Do i have the correct patches?

>>> Preparing source in /var/tmp/portage/app-emulation/vmware-modules-279.3/work ...
 * Applying 279-makefile-kerneldir.patch ... 
 * Applying 279-makefile-include.patch ... 
 * Applying 279-netdevice.patch ...     
 * Applying 279-apic.patch ...        
 * Applying 279-putname.patch ...         
 * Applying 279-vmblock.patch ...    
 * Applying 279-filldir.patch ...             
 * Applying 279-vfsfollowlink.patch ...     
 * Applying user patches from /etc/portage/patches//app-emulation/vmware-modules ...
 *   vmblock-3.19-namei.patch ...     
 *   vmblock-3.19.patch ... 
 *   vmci-319.patch ...   
 *   vmnet-319.patch ...   
 *   vsock-319.patch ...  
 * Done with patching
>>> Source prepared.

Failure is;
In file included from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/vmblockInt.h:41:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.c:32:
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from /usr/src/linux-3.19.0-gentoo/include/linux/kernel.h:13:0,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/list.h:8,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/module.h:9,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.c:27:
/usr/src/linux-3.19.0-gentoo/include/linux/printk.h:103:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.c: In function ‘InodeOpLookup’:
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.c:138:32: error: incompatible types when assigning to type ‘kgid_t’ from type ‘int’
    inode->i_uid = inode->i_gid = 0;
                                ^
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.c: In function ‘InodeOpReadlink’:
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.c:180:4: error: implicit declaration of function ‘vfs_readlink’ [-Werror=implicit-function-declaration]
    return vfs_readlink(dentry, buffer, buflen, iinfo->name);
    ^
cc1: some warnings being treated as errors
/usr/src/linux-3.19.0-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.o' failed
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/inode.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/vmblockInt.h:41:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/super.c:30:
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from /usr/src/linux-3.19.0-gentoo/include/linux/kernel.h:13:0,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/list.h:8,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/wait.h:6,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/fs.h:6,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/super.c:27:
/usr/src/linux-3.19.0-gentoo/include/linux/printk.h:103:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/vmblockInt.h:41:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/module.c:32:
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from /usr/src/linux-3.19.0-gentoo/include/linux/kernel.h:13:0,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/list.h:8,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/module.h:9,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/module.c:28:
/usr/src/linux-3.19.0-gentoo/include/linux/printk.h:103:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
In file included from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/vmblockInt.h:41:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/control.c:34:
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
 ^
In file included from /usr/src/linux-3.19.0-gentoo/include/linux/kernel.h:13:0,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/list.h:8,
                 from /usr/src/linux-3.19.0-gentoo/include/linux/module.h:9,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/control.c:27:
/usr/src/linux-3.19.0-gentoo/include/linux/printk.h:103:0: note: this is the location of the previous definition
 #define DEPRECATED "[Deprecated]: "
 ^
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/control.c: In function ‘ExecuteBlockOp’:
/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only/linux/control.c:282:9: warning: assignment from incompatible pointer type
    name = getname(buf);
         ^
/usr/src/linux-3.19.0-gentoo/Makefile:1382: recipe for target '_module_/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only' failed
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only] Error 2
make[2]: Leaving directory '/usr/src/linux-3.19.0-gentoo'
Makefile:145: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-3.19.0-gentoo'
Makefile:130: recipe for target 'vmblock.ko' failed
make: *** [vmblock.ko] Error 2
Comment 22 Ștefan Talpalaru 2015-03-16 12:01:33 UTC
layman -a vmware
Comment 23 Harris Landgarten 2015-03-16 12:17:34 UTC
If you use the vmci and vsock modules from the kernel you only need the vmblock and vmnet patches
Comment 24 Mikko Koskelin 2015-04-19 13:04:29 UTC
If vmci and vsock are built in kernel, this compiles with kernel 4.0.0 and the vmnet and vmblock patches. Using vmware overlay.
Comment 25 Martin Mokrejš 2015-05-05 11:05:29 UTC
Here is a good overview of various VMWare versions and required kernels and patches:

https://wiki.debian.org/VMware#VMware.2C_Debian_Kernel_Upgrade

http://pkgbuild.com/git/aur-mirror.git/plain/vmware-patch/
Comment 26 O. William McClung 2015-05-24 23:10:17 UTC
Using vsock and vmci from kernel 4.0.3, vmware-modules-279.5 from the vmware overlay compiles with just the vmblock and vmnet patches.
Comment 27 Dennis Schridde 2015-06-16 02:38:16 UTC
Any progress with this? The Gentoo tree is still affected.
Comment 28 Andreas Proteus 2015-06-24 10:22:29 UTC
The above patches worked for here.
vmware-modules-279.5 from vmware overlay
Kernel 4.1.0

Thank you.
Comment 29 Michael Moon 2015-07-04 01:37:23 UTC
The 5 patches from Harris and Stefan with vmware-modules-279.5 from overlay and gentoo-sources-4.1.1-r1 works for me
Comment 30 Evan Teran 2015-07-11 04:51:42 UTC
The latest official vmware overlay has had the version bumped.

I have built the sources for vmware-modules-{271,279,304} on stock kernels 3.10 - 4.0, and associated vmware-workstation-{9,10,11} ebuilds.

Please give those a try and let me know if you have any issues.

Thanks
Comment 31 Pacho Ramos gentoo-dev 2015-07-16 15:16:23 UTC
*** Bug 553832 has been marked as a duplicate of this bug. ***
Comment 32 Fabio Rossi 2015-08-24 19:30:16 UTC
another problem with the latest 4.2rc kernel:

/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only/linux/inode.c:64:4: warning: initialization from incompatible pointer type [enabled by default]
    .follow_link = InodeOpFollowlink,
    ^
/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only/linux/inode.c:64:4: warning: (near initialization for ‘LinkInodeOps.follow_link’) [enabled by default]
/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only/linux/inode.c: In function ‘InodeOpFollowlink’:
/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only/linux/inode.c:247:4: error: implicit declaration of function ‘nd_set_link’ [-Werror=implicit-function-declaration]
    nd_set_link(nd, iinfo->name);
    ^
cc1: some warnings being treated as errors
/usr/src/wireless-testing/scripts/Makefile.build:258: recipe for target '/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only/linux/inode.o' failed
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only/linux/inode.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/src/wireless-testing/Makefile:1386: recipe for target '_module_/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only' failed
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-304.0/work/vmblock-only] Error 2
make[2]: Leaving directory '/usr/src/wireless-testing'
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/wireless-testing'
Makefile:120: recipe for target 'vmblock.ko' failed
make: *** [vmblock.ko] Error 2
Comment 33 Evan Teran 2015-08-24 19:48:21 UTC
Thanks for the heads up. Currently only 3.19-4.0 are supported in the overlay. But I'll work on getting things properly patched for 4.1,4.2
Comment 34 Andreas K. Hüttel archtester gentoo-dev 2015-09-19 18:59:38 UTC
To reduce confusion and clutter I'm closing the bug. 

Please open a new one for issues with current ebuilds / kernels.