VMWare 10.0.0.5 Compile/Install Errors in Fedora 21

PChaos says that this patch didn’t work for him.  If this patch fails for you, try his solution.

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

/usr/lib/vmware/modules/source/vsock-only/linux/af_vsock.orig.c:2873:18: error: incompatible types when assigning to type ‘kuid_t’ from type ‘uid_t’
/usr/lib/vmware/modules/source/vmnet-only/netif.c:152:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
    dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
                                                                ^
/usr/lib/vmware/modules/source/vmnet-only/netif.c:152:10: error: ‘alloc_netdev’ undeclared (first use in this function)

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
wget http://www.blackcatsw.com/downloads/vmware/vsock_10.0.0.5.patch
tar -zxvf vmw_patches.tar.gz

Make a backup copy of the VMWare source

cp vmci.tar vmci.tar.orig
cp vmnet.tar vmnet.tar.orig
cp vsock.tar vsock.tar.orig

Untar the VMWare source

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

Apply patches

patch -p0 < vmnet.patch
patch -p0 < vsock_10.0.0.5.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.

Tagged with: , , , , , ,

0 Comments on “VMWare 10.0.0.5 Compile/Install Errors in Fedora 21

1 Pings/Trackbacks for "VMWare 10.0.0.5 Compile/Install Errors in Fedora 21"

Leave a Reply