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:


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.


3.13 Final – And a VMware Patch You May Not Need.. — 5 Comments

  1. Just want to say thanks! I had the same issue with the patch file. Made the changes manually and it worked like a charm!

Leave a Reply

Your email address will not be published. Required fields are marked *