3.13 Final – And a VMware Patch You May Not Need..
Installed 3.13 Final on my test system, and then on my main system, and encountered an odd problem with VMware (10.0.1)..
On my test system, VMware had been compiling and installing/running OK on all the 3.13-rc versions, and 3.13 Final, but on my main system, vmnet failed to compile:
... /tmp/modconfig-I1rVjt/vmnet-only/filter.c:206:1: error: conflicting types for ‘VNetFilterHookFn’ VNetFilterHookFn(unsigned int hooknum, // IN: ^ /tmp/modconfig-I1rVjt/vmnet-only/filter.c:64:18: note: previous declaration of ‘VNetFilterHookFn’ was here static nf_hookfn VNetFilterHookFn; ^ /tmp/modconfig-I1rVjt/vmnet-only/filter.c:64:18: warning: ‘VNetFilterHookFn’ used but never defined [enabled by default] /tmp/modconfig-I1rVjt/vmnet-only/filter.c:206:1: warning: ‘VNetFilterHookFn’ defined but not used [-Wunused-function] VNetFilterHookFn(unsigned int hooknum, // IN: ^ make[2]: *** [/tmp/modconfig-I1rVjt/vmnet-only/filter.o] Error 1 ..........
After some further research, it turned out that the reason for this inconsistency was that I had Netfilter selected with the kernel compilation options on my ‘main’ system, but not on my ‘test’ system:
Networking Support / Networking Options / Network packet filtering framework (Netfilter)
If you do have Netfilter selected and compiled in, then the vmnet compile will fail, and there is a patch here:
http://pastebin.com/p3bkbAMu
This patch has the correct changes, but – on my system – it failed to install, with a ‘malformed patch‘ error.. I just manually edited the filter.c file, to make the changes shown in the patch, and everything worked OK.. You may find that you have to reboot for the vmware modules to (re)load..
So – to summarise.. If you have Netfilter selected in your kernel compilation – or you are using a ‘distro’ version of kernel 3.13 (which tend to have ‘everything’ selected) then you will need the patch. If you compile your own kernel, and don’t have Netfilter selected, then you won’t need the patch.
I applied the changes to both my ‘test’ and ‘main’ systems (with Netfilter selected/deselected) and VMware compiles and loads OK, now.
For NVIDIA, the patch mentioned in the 3.13-rc articles is still needed, and both 319.82 and 331.38 – patched – install and run OK with 3.13 Final.
Robert Gadsdon. January 20, 2014.
This article is from Fedora 19 or Fedora 20 in spanish http://isyskernel.blogspot.com/2014/03/Error-VMware-compilar-kernel-Failed-to-build-vmnet.html
Just want to say thanks! I had the same issue with the patch file. Made the changes manually and it worked like a charm!
Glad to help… There do seem to be some oddly-formatted patches around, now..
RG.
Working patch here: https://gist.github.com/qwertos/d26f94a4d4068c96fe01
Thanks.. this info and manual edition of the file helped me get past the issue.