/*** By Steve, 2008/03/12, Label Cloud Styles ***/ /*** -----------------------------------------***/

2008年3月11日 星期二

[Solution] FC8 Kernel 2.6.24.3-12.fc8 下 VMware Workstation 無法正確 Compile

Problem:
FC8 Kernel 從 2.6.23.1-42.fc8 升級到 2.6.24.3-12.fc8 之後,VMware 無法正確 Compile。錯誤訊息如下:

Unknown VMware Workstation 6.0.2 build 59824 detected. Building for
Workstation 6.0.0.
Using 2.6.x kernel build system.
make: Entering directory \`/tmp/vmware-config2/vmmon-only\'
make -C /lib/modules/2.6.24-4-generic/build/include/.. SUBDIRS=$PWD
SRCROOT=\$PWD/. modules
make[1]: Entering directory \`/usr/src/linux-headers-2.6.24-4-generic\'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config2/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-config2/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config2/vmmon-only/common/comport.o
CC [M] /tmp/vmware-config2/vmmon-only/common/cpuid.o
In file included from include/asm/bitops.h:2,
from
/tmp/vmware-config2/vmmon-only/./include/vcpuset.h:74,
from
/tmp/vmware-config2/vmmon-only/./include/modulecall.h:23,
from /tmp/vmware-config2/vmmon-only/common/vmx86.h:19,
from /tmp/vmware-config2/vmmon-only/common/hostif.h:18,
from /tmp/vmware-config2/vmmon-only/common/cpuid.c:15:
include/asm/bitops_32.h:9:2: error: #error only can be
included directly
make[2]: *** [/tmp/vmware-config2/vmmon-only/common/cpuid.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory \`/usr/src/linux-headers-2.6.24-4-generic\'
make: *** [vmmon.ko] Error 2
make: Leaving directory \`/tmp/vmware-config2/vmmon-only\'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems,
please visit our Web site at
"http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

Solution:
1. Get the vmware-any-any patch
2. After unpacking, go to the vmware-any-any-update115 directory and unpack vmmon.tar
3. Open vmmon-only/include/vcpuset.h and change the following line #include "asm/bitops.h" to #include "linux/bitops.h"
4. Open vmmon-only/include/iocontrols_compat.h and change VMMON_VERSION_V6 to 167
5. Open vmmon-only/include/iocontrols.h and change VMMON_VERSION to 167
6. Pack a new vmmon.tar and then run runme.pl

Reference:
[Running VMware Workstation on Ubuntu Hardy Herron]
http://www.nowhere.dk/archives/2008/01/17/running_vmware_workstation_on_ubuntu_hardy_herron/index.php

0 Comments: