Quantcast
Channel: VMware Communities : All Content - Workstation Pro
Viewing all articles
Browse latest Browse all 18268

vmnet fails to build on kernel 3.13.0-1-generic

$
0
0

vmnet fails to build on an Ubuntu trusty system running 3.13.0-1-generic, although the module builds fine on earlier kernels.

 

Admittedly, 14.04 isn't anywhere near release, and is most certainly not a supported platform for Workstation 10.0.1. That said, if there's a straightforward fix I can apply to enable building the module, that'd be nice.

 

Build log below:

 

make[1]: Entering directory `/usr/src/linux-headers-3.13.0-1-generic'  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/driver.o  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/hub.o  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/userif.o  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/netif.o
/tmp/modconfig-LTmunl/vmnet-only/hub.c: In function ‘VNetHubFindHubByID’:
/tmp/modconfig-LTmunl/vmnet-only/hub.c:132:49: warning: argument to ‘sizeof’ in ‘memcmp’ call is the same expression as the first source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]         memcmp(idNum, currHub->id.pvnID, sizeof idNum))) {                                                 ^
/tmp/modconfig-LTmunl/vmnet-only/hub.c: In function ‘VNetHubAlloc’:
/tmp/modconfig-LTmunl/vmnet-only/hub.c:315:36: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same pointer type ‘uint8 *’ as the destination; expected ‘uint8’ or an explicit length [-Wsizeof-pointer-memaccess]   memcpy(hub->id.pvnID, id, sizeof id);                                    ^  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/bridge.o  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/filter.o  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/procfs.o  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/smac_compat.o
/tmp/modconfig-LTmunl/vmnet-only/filter.c:206:1: error: conflicting types for ‘VNetFilterHookFn’
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
 ^
/tmp/modconfig-LTmunl/vmnet-only/filter.c:64:18: note: previous declaration of ‘VNetFilterHookFn’ was here
 static nf_hookfn VNetFilterHookFn;                  ^
/tmp/modconfig-LTmunl/vmnet-only/filter.c:64:18: warning: ‘VNetFilterHookFn’ used but never defined [enabled by default]
/tmp/modconfig-LTmunl/vmnet-only/filter.c:206:1: warning: ‘VNetFilterHookFn’ defined but not used [-Wunused-function]
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
 ^
make[2]: *** [/tmp/modconfig-LTmunl/vmnet-only/filter.o] Error 1

Viewing all articles
Browse latest Browse all 18268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>