Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508612 - app-emulation/vmware-modules-271.3 - Failed Patch: 271-3.10.0.patch
Summary: app-emulation/vmware-modules-271.3 - Failed Patch: 271-3.10.0.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-24 14:31 UTC by HÁRSFALVI Levente
Modified: 2015-07-03 22:56 UTC (History)
4 users (show)

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


Attachments
271-3.10.0.patch.out (271-3.10.0.patch.out,11.99 KB, text/plain)
2014-04-24 14:31 UTC, HÁRSFALVI Levente
Details
emerge --info (emerge__info.out,5.85 KB, text/plain)
2014-04-24 14:33 UTC, HÁRSFALVI Levente
Details
Build log (build.log,2.45 KB, application/text)
2014-04-25 20:02 UTC, bartoz
Details
build.log (file_508612.txt,3.82 KB, text/plain)
2014-04-25 20:08 UTC, bartoz
Details
271-3.10.0.patch.out (file_508612.txt,12.38 KB, text/plain)
2014-04-25 20:09 UTC, bartoz
Details
build.log (build.log,3.02 KB, text/plain)
2014-04-25 22:39 UTC, HÁRSFALVI Levente
Details
Fix attempt (ebuild + patches) (vmware-modules.tar,50.00 KB, application/x-tar)
2014-04-26 15:16 UTC, bartoz
Details
build.log (build.log,15.40 KB, text/x-log)
2014-05-08 21:13 UTC, gunainmnoaodann
Details
patch for vmnet (271-vmnet-3.14.patch,1.08 KB, patch)
2014-05-09 00:37 UTC, gunainmnoaodann
Details | Diff
vmware-workstation and vmware-modules for overlay (app-emulation.tar.gz,41.57 KB, application/gzip)
2014-08-24 15:44 UTC, Billy DeVincentis
Details
Patches to compile on 3.14.0 (kernel_3.14.0_patches.tar.gz,1.74 KB, application/x-gtar-compressed)
2014-09-14 11:25 UTC, T-Dawg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HÁRSFALVI Levente 2014-04-24 14:31:34 UTC
Created attachment 375620 [details]
271-3.10.0.patch.out

* Messages for package app-emulation/vmware-modules-271.3:

 * Failed Patch: 271-3.10.0.patch !
 *  ( /usr/portage/app-emulation/vmware-modules/files/271-3.10.0.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/app-emulation/vmware-modules-271.3/temp/271-3.10.0.patch.out
 * ERROR: app-emulation/vmware-modules-271.3::gentoo failed (prepare phase):
 *   Failed Patch: 271-3.10.0.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 3691:  Called epatch '/usr/portage/app-emulation/vmware-modules/files/271-3.10.0.patch'
 *   environment, line 1427:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/vmware-modules-271.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/vmware-modules-271.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-271.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-271.3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/vmware-modules-271.3/work'
 * S: '/var/tmp/portage/app-emulation/vmware-modules-271.3/work'
Comment 1 HÁRSFALVI Levente 2014-04-24 14:33:37 UTC
Created attachment 375622 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-25 14:06:38 UTC
Please attach the entire build log to this bug report.
Comment 3 bartoz 2014-04-25 20:02:05 UTC
Created attachment 375732 [details]
Build log
Comment 4 bartoz 2014-04-25 20:02:32 UTC
(In reply to bartoz from comment #3)
> Created attachment 375732 [details]
> Build log

I hit the same issue; I attached my build log.
Comment 5 bartoz 2014-04-25 20:08:58 UTC
Created attachment 375734 [details]
build.log
Comment 6 bartoz 2014-04-25 20:09:35 UTC
Created attachment 375736 [details]
271-3.10.0.patch.out
Comment 7 HÁRSFALVI Levente 2014-04-25 22:39:31 UTC
Created attachment 375742 [details]
build.log
Comment 8 HÁRSFALVI Levente 2014-04-25 22:39:58 UTC
(In reply to Jeroen Roovers from comment #2)
> Please attach the entire build log to this bug report.

Done.
Comment 9 bartoz 2014-04-26 15:16:23 UTC
So, it seems that the issue lies with some modifications to file-related structures and functions in the 3.12 kernel.

I'm attaching an attempt to fix the problem with a new patch.
It compiles here, but I still have to test it (I am not particularly familiar with that code and my fix might be incorrect).
Comment 10 bartoz 2014-04-26 15:16:55 UTC
Created attachment 375776 [details]
Fix attempt (ebuild + patches)
Comment 11 bartoz 2014-04-26 16:00:24 UTC
(In reply to bartoz from comment #9)
> So, it seems that the issue lies with some modifications to file-related
> structures and functions in the 3.12 kernel.
> 
> I'm attaching an attempt to fix the problem with a new patch.
> It compiles here, but I still have to test it (I am not particularly
> familiar with that code and my fix might be incorrect).

Update: I quickly tested by unloading and reloading the modules and using a windows 7 vm for a while and it seems to be working.
Comment 12 gunainmnoaodann 2014-05-08 21:12:31 UTC
Ran into the vmblock problem while attempting bartoz's edited ebuild.

emerge --info:
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.14.3-gentoo x86_64)
=================================================================
System uname: Linux-3.14.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8035200 total,   4874136 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of tree: Thu, 08 May 2014 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
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.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 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 steam-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x skype-4.0.0.7-copyright Oracle-BCLA-JavaSE PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache 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://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/var/lib/layman/steam"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdinstall cdparanoia cdr cleartype cli consolekit corefonts cracklib crypt css cups cxx dbus dga djvu dri dts dv dvb dvd dvdr emboss encode exif expat fam fbcon ffmpeg firefox flac fontconfig fortran ftp gdbm gif gimp gmp gnuplot gnutls gpm gtk gzip hal iconv icu imlib ipv6 java javascript jit jpeg lame latex lcms ldap libass libnotify lm_sensors mad mikmod mime mmmx mmx mng modules mp3 mp4 mpeg mpi mplayer mtp multilib nas ncurses nls nocd nptl nsplugin ogg openal opengl openmp pam pango pch pcmcia pcre pdf perl plotutils png policykit postscript ppds profile pulseaudio python qt3support qt4 rar raw readline samba sasl sdl session smp spell sse sse2 ssl startup-notification svg symlink syslog tcpd tiff truetype typel udev udisks unicode upower usb videos vnc vorbis wavpack wifi win32codecs wmf wxwidgets x264 xcb xcomposite xft xine xinerama xml xpm xscreensaver xv xvid 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" 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="evdev keyboard mouse synaptics" 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="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia intel" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 13 gunainmnoaodann 2014-05-08 21:13:42 UTC
Created attachment 376582 [details]
build.log
Comment 14 bartoz 2014-05-08 21:19:22 UTC
You have Linux-3.14.3, my patch was designed for Linux 3.12, I have no idea if they have changed anything in addition from 3.12 to 3.14.

Sorry, but I don't have time to go through it and update the patch right now, I was hoping that some gentoo dev would take my patch and turn into something that can go into the main tree.

(In reply to gunainmnoaodann from comment #12)
> Ran into the vmblock problem while attempting bartoz's edited ebuild.
> 
> emerge --info:
> Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17,
> 3.14.3-gentoo x86_64)
Comment 15 gunainmnoaodann 2014-05-08 22:03:05 UTC
Is it possible you could explain what it is you're looking for in terms of changes? Anything you could give me would be a boon.

(In reply to bartoz from comment #14)
> You have Linux-3.14.3, my patch was designed for Linux 3.12, I have no idea
> if they have changed anything in addition from 3.12 to 3.14.
> 
> Sorry, but I don't have time to go through it and update the patch right
> now, I was hoping that some gentoo dev would take my patch and turn into
> something that can go into the main tree.
> 
> (In reply to gunainmnoaodann from comment #12)
> > Ran into the vmblock problem while attempting bartoz's edited ebuild.
> > 
> > emerge --info:
> > Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17,
> > 3.14.3-gentoo x86_64)
Comment 16 bartoz 2014-05-08 22:07:17 UTC
Just take a look at the patch I added (271-vmblock-3.12.patch) and see what files it changes and what it does.

I suspect that there have been more changes to those data structures / functions from 3.12 to 3.14.

(In reply to gunainmnoaodann from comment #15)
> Is it possible you could explain what it is you're looking for in terms of
> changes? Anything you could give me would be a boon.
> 
> (In reply to bartoz from comment #14)
> > You have Linux-3.14.3, my patch was designed for Linux 3.12, I have no idea
> > if they have changed anything in addition from 3.12 to 3.14.
> > 
> > Sorry, but I don't have time to go through it and update the patch right
> > now, I was hoping that some gentoo dev would take my patch and turn into
> > something that can go into the main tree.
> > 
> > (In reply to gunainmnoaodann from comment #12)
> > > Ran into the vmblock problem while attempting bartoz's edited ebuild.
> > > 
> > > emerge --info:
> > > Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17,
> > > 3.14.3-gentoo x86_64)
Comment 17 gunainmnoaodann 2014-05-08 23:46:10 UTC
So I found out many errors are ones that keep getting corrected.  I was able to get past vmblock and vmci with attachment 342888 [details, diff] from bug 462666.  I now stall at vmnet but the errors seem to be much less clear.  See below.

 * Preparing vmnet module
make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' auto-build KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/3.14.3-gentoo/build 
Using 2.6.x kernel build system.
make -C /lib/modules/3.14.3-gentoo/build SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-3.14.3-gentoo'
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/driver.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/hub.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/userif.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/netif.o
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/driver.c:51:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/driver.c:23:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/netif.c:42:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/netif.c:23:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/bridge.o
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/hub.c:43:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/hub.c:23:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.o
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/userif.c:45:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /usr/src/linux-3.14.3-gentoo/arch/x86/include/asm/percpu.h:44,
                 from /usr/src/linux-3.14.3-gentoo/arch/x86/include/asm/preempt.h:5,
                 from /usr/src/linux-3.14.3-gentoo/include/linux/preempt.h:18,
                 from /usr/src/linux-3.14.3-gentoo/include/linux/spinlock.h:50,
                 from /usr/src/linux-3.14.3-gentoo/include/linux/wait.h:8,
                 from /usr/src/linux-3.14.3-gentoo/include/linux/fs.h:6,
                 from /usr/src/linux-3.14.3-gentoo/include/linux/highmem.h:4,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/userif.c:26:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/procfs.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/smac_compat.o
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.c:48:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.c:20:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.c:206:1: error: conflicting types for 'VNetFilterHookFn'
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.c:64:18: note: previous declaration of 'VNetFilterHookFn' was here
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.c:64:18: warning: 'VNetFilterHookFn' used but never defined [enabled by default]
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.c:206:1: warning: 'VNetFilterHookFn' defined but not used [-Wunused-function]
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/filter.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/procfs.c:43:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/procfs.c:23:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/smac_compat.c:53:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/smac_compat.c:33:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
In file included from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/monitorAction_exported.h:31:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnet.h:29,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vnetInt.h:24,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/bridge.c:52:
/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/vm_assert.h:245:0: warning: "DEPRECATED" redefined [enabled by default]
In file included from /usr/src/linux-3.14.3-gentoo/include/linux/kernel.h:13:0,
                 from /var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only/bridge.c:23:
/usr/src/linux-3.14.3-gentoo/include/linux/printk.h:96:0: note: this is the location of the previous definition
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-271.3-r1/work/vmnet-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-3.14.3-gentoo'
make: *** [vmnet.ko] Error 2


(In reply to bartoz from comment #16)
> Just take a look at the patch I added (271-vmblock-3.12.patch) and see what
> files it changes and what it does.
> 
> I suspect that there have been more changes to those data structures /
> functions from 3.12 to 3.14.
>
Comment 18 gunainmnoaodann 2014-05-09 00:35:56 UTC
Okay, I got over the vmnet bump, too.  Patch came from here: http://pastebin.com/p3bkbAMu

but was poorly written.  See attached patch.
Comment 19 gunainmnoaodann 2014-05-09 00:37:07 UTC
Created attachment 376596 [details, diff]
patch for vmnet
Comment 20 Krzysztof Magusiak 2014-06-14 18:39:41 UTC
The patch still is not in portage.

 * ERROR: app-emulation/vmware-modules-271.3::gentoo failed (prepare phase):
 *   Failed Patch: 271-3.10.0.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 3703:  Called epatch '/usr/portage/app-emulation/vmware-modules/files/271-3.10.0.patch'
 *   environment, line 1439:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
Comment 21 Krzysztof Magusiak 2014-08-14 09:13:09 UTC
I tried to recompile it today, but the patch fails (same output as in  271-3.10.0.patch.out already attached).
Comment 22 Billy DeVincentis 2014-08-24 15:44:45 UTC
Created attachment 383526 [details]
vmware-workstation and vmware-modules for overlay

I have included working copies of both the workstation and module ebuilds, I don't have the time to separate the differences or changes but I'm just trying to help you out if you just want to get it working, works with all kernels through version 3.16*
Comment 23 T-Dawg 2014-09-14 11:25:30 UTC
Created attachment 384720 [details]
Patches to compile on 3.14.0

Allows for a clean and working build on kernel 3.14.0. It is possible it will work for later versions as well though I have not tried.
Comment 24 T-Dawg 2014-09-14 11:35:38 UTC
This bug has been open for quite some time.

For people like me where my employer has purchased the workstation 9 license, upgrading to the latest and having to repurchase another license is not ideal.

Please consider my patches for building on kernel 3.14.0. Also, the two fix_* patches included make 2-79 compile cleanly on my 3.14.0 box as well (Bug 462666) which is also unresolved.
Comment 25 Evan Teran 2014-10-08 13:56:03 UTC
Agreed, this bug has been open for FAR too long.

On a separate note. This ebuild seems to be in a state of complete disrepair :-(. I mean, the ebuild's patches don't even apply!

Essentially, it feels like the ebuild is basically unmaintained. Because of that, I have made a modified ebuild (which basically doesn't apply the 271-3.10.0.patch or any of the later ones) in my local layman overlay and have made some patches which when applied in order will allow vmware-modules-271 to compile on all kernels I have installed between 3.10 - 3.16.

If people are interested, I will make the layman repo available on some public server so that everyone can continue to use vmware-9!
Comment 26 Evan Teran 2014-10-14 02:24:52 UTC
I have commited a new ebuild and set of patches to the official vmware overlay. Please give it a try. Please be sure to remove any user patches you have in /etc/portage/patches/ as the code should now compile *cleanly* for all kernel versions 3.10 - 3.17.

I am working with the maintainer to get the ebuild and patches merged with the mainline once it has been tested enough.
Comment 27 bartoz 2014-10-24 08:47:45 UTC
(In reply to Evan Teran from comment #26)
> I have commited a new ebuild and set of patches to the official vmware
> overlay. Please give it a try. Please be sure to remove any user patches you
> have in /etc/portage/patches/ as the code should now compile *cleanly* for
> all kernel versions 3.10 - 3.17.
> 
> I am working with the maintainer to get the ebuild and patches merged with
> the mainline once it has been tested enough.

Just emerged with gentoo-sources-3.16.5.
Everything went smooth, you saved me a couple hours to figure out what new patches were needed, thanks!
Comment 28 Felix Leif Keppmann 2014-10-24 09:42:27 UTC
Compiled with gentoo-sources-3.16.5 and everything seem to be running, thanks for the work. Would be nice to see these patches in the tree, since those ebuilds are broken without patching on your own.
Comment 29 Evan Teran 2015-07-03 22:56:34 UTC
The official vmware overlay compiles and functions correctly with all 3.x kernel versions > 3.10 I believe. I will work with the maintainers to get the overlay merged with the main trunk in the future.