Compile errors with VMWare Server 1.0.1 on 2.6.19 kernel
I just did a 'yum upgrade' and received kernel-2.6.19-1.2895.fc6. Unfortunately, when I reran vmware-config.pl, I got the following error:
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmnet-only'
make -C /lib/modules/2.6.19-1.2895.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
CC [M] /tmp/vmware-config1/vmnet-only/driver.o
CC [M] /tmp/vmware-config1/vmnet-only/hub.o
CC [M] /tmp/vmware-config1/vmnet-only/userif.o
/tmp/vmware-config1/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config1/vmnet-only/userif.c:629: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/tmp/vmware-config1/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config1/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config1/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/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-config1/vmnet-only'
Unable to build the vmnet module.
Luckily I was able to find a solution in the VMWare forums:
VMTN Discussion Forums: vmware-server on kernel 2.6.19 ...
Instead of using the solution I related here, I symlinked config.h to autoconf.h:
Additionally, I fixed the compile error by editing two VMWare Server source as described in the first post of the aforementioned VMWare forum link. I followed the advice of the next poster and set both variables to CHECKSUM_PARTIAL.
I'm not sure if there are lurking negative consequences, but this has enabled me to work with VMWare server again.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmnet-only'
make -C /lib/modules/2.6.19-1.2895.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
CC [M] /tmp/vmware-config1/vmnet-only/driver.o
CC [M] /tmp/vmware-config1/vmnet-only/hub.o
CC [M] /tmp/vmware-config1/vmnet-only/userif.o
/tmp/vmware-config1/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config1/vmnet-only/userif.c:629: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/tmp/vmware-config1/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config1/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config1/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/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-config1/vmnet-only'
Unable to build the vmnet module.
Luckily I was able to find a solution in the VMWare forums:
VMTN Discussion Forums: vmware-server on kernel 2.6.19 ...
Instead of using the solution I related here, I symlinked config.h to autoconf.h:
cd /lib/modules/2.6.19-1.2895.fc6/build/include/linux
ln -s autoconf.h config.h
Additionally, I fixed the compile error by editing two VMWare Server source as described in the first post of the aforementioned VMWare forum link. I followed the advice of the next poster and set both variables to CHECKSUM_PARTIAL.
I'm not sure if there are lurking negative consequences, but this has enabled me to work with VMWare server again.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home