vmware server on fc6

While installing the latest vmware server on a new Fedora Core 6 box, I ran into some trouble:
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
/tmp/vmware-config0/vmnet-only/userif.c: In function #VNetCopyDatagramToUser#:
/tmp/vmware-config0/vmnet-only/userif.c:629: error: #CHECKSUM_HW# undeclared (first use in this function)
/tmp/vmware-config0/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config0/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config0/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
Unable to build the vmnet module.
With some help from google I found some sites with further information (noted below). From these sites I pieced together this solution.
$ cd /tmp
$ cp /usr/lib/vmware/modules/source/vmnet.tar .
$ tar xf vmnet.tar
$ cd vmnet-only/
$ wget http://nerdbynature.de/bits/2.6.19-rc5/vmnet_CHECKSUM_PARTIAL.diff
$ patch -p1
patching file Makefile.kernel
patching file bridge.c
patching file userif.c
$ cd ..
$ tar cf vmnet.tar vmnet-only
$ cd /usr/lib/vmware/modules/source/
$ sudo cp vmnet.tar vmnet.tar.orig
$ sudo mv /tmp/vmnet.tar .
$ sudo vmware-config.pl
vmware-config.pl now finishes as expected.
More details:

No comments: