VMWare Compile/Install Errors in Fedora 21

If you’re seeing the following VMWare errors during compile, you need patches:

vmnet-only/filter.c:206:1: error: conflicting types for ‘VNetFilterHookFn’
vmnet-only/netif.c:152:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
vmnet-only/netif.c:152:10: error: ‘alloc_netdev’ undeclared (first use in this function)
vmci-only/linux/driver.c:740:12: error: incompatible types when assigning to type ‘VMCIHostUser’ from type ‘kuid_t’

Switch to root and install the necessary packages which may be missing.

su -
yum install kernel-dev* gcc*  patch

Move to the VMWare directory

cd /usr/lib/vmware/modules/source

Download and uncompress the patches

wget http://www.blackcatsw.com/downloads/vmware/vmw_patches.tar.gz
tar -zxvf vmw_patches.tar.gz

Untar the VMWare source

tar -xf vmci.tar
tar -xf vmnet.tar
tar -xf vsock.tar

Apply patches

patch -p0 < vmci.patch
patch -p0 < vmnet.patch
patch -p0 < vsock.patch

Tar the source

tar -cf vmci.tar vmci-only/
tar -cf vmnet.tar vmnet-only/
tar -cf vsock.tar vsock-only/

Run the VMWare intaller

# vmware-modconfig --console --install-all

The patches above are a compilation from various sources.

Leave a Reply