分类: LINUX
2010-05-09 21:33:41
Unknown VMware Workstation 6.0.4 build 93057 detected. Building for Workstation 6.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config20/vmmon-only'
make -C /lib/modules/2.6.26.3-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/packages/BUILD/kernel-2.6.26.3default'
CC [M] /tmp/vmware-config20/vmmon-only/linux/driver.o
/tmp/vmware-config20/vmmon-only/linux/driver.c:171: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config20/vmmon-only/linux/driver.c:172: warning: initialization from incompatible pointer type
/tmp/vmware-config20/vmmon-only/linux/driver.c:175: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config20/vmmon-only/linux/driver.c:176: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config20/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config20/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/kernel-2.6.26.3default'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config20/vmmon-only'
Unable to build the vmmon module.
For more information on how to troubleshoot module-related problems, please
visit our Web site at "" and
"".
Execution aborted.
然后我继续查,终于在
-vmmon-module-while-installing-vmware.html中查到了相关的问题,继续按照
给出的建议去http://www.insecure.ws/2008/10/20/vmware-specific-specific-55x-and-kernel-2627下载相关的补丁,
尽管我是26的内核,但还是用了,我想,所谓病急乱投医就是这样的吧,然后又出现了新的问题:gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
查了一下很多人都说是没有安装个g++的缘故,我看了一下,已经安装了阿,不知道是为什么看不到,忽然想到,
在编译vmware6.0时我用的是gcc-4.1而不是我系统中带的4.3,查看了一下给g++的版本,4.3!OK,终于找到问题了,
然后安装个g++4.1,然后一路next,终于安装成功了!
然后在对应的vmx文件中添加了debugStub.listen.guest32 = "TRUE",
编译完内核之后用GDB调试,还是不行,我几乎要崩溃了,继续查:终于在
http://wiki.osdev.org/VMWare#Guest_debugging找到了相关的问题,然后添加了monitor.debugOnStartGuest32 = "TRUE" debugStub.listen.guest32.remote = "TRUE"
debugStub.hideBreakpoints=1终于成功了,可以调试了!!!
鉴于我现在极度疲惫,具体的问题我就不说了,Just over!希望对想调试内核的朋友能有所帮助!