VMware Workstation 10.0.3 在 Debian Wheezy 上编译错误

VMware Workstation 10.0.3 在 Debian Wheezy 上编译错误

我正在尝试在 Debian Wheezy 上运行 VMware Workstation 10.0.3,并使用 RHEL 自定义内核 3.10.0-4。安装顺利,但当我尝试:vmware-modconfig --console --install-all 时,出现以下错误:

停止 VMware 服务:VMware 身份验证守护进程完成 VM 通信接口套接字系列完成 虚拟机通信接口完成 虚拟机监视器完成 阻止文件系统完成 使用 2.6.x 内核构建系统。 make:进入目录/tmp/modconfig-Df4vT2/vmmon-only' /usr/bin/make -C /lib/modules/3.10.0-4-pve/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory/usr/src/linux-headers-3.10.0-4-pve' CC [M] /tmp/modconfig-Df4vT2/vmmon-only/linux/driver.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/linux/driverLog.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/linux/hostif.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/comport.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/apic.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/cpuid.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/hashFunc.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/memtrack.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/phystrack.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/task.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/common/vmx86.o CC [M] /tmp/modconfig-Df4vT2/vmmon-only/vmcore/moduleloop.o /tmp/modconfig-Df4vT2/vmmon-only/linux/driver.c:1342:1: 警告:always_inline 函数可能无法内联 [-Wattributes] LD [M] /tmp/modconfig-Df4vT2/vmmon-only/vmmon.o 构建模块,第 2 阶段。MODPOST 1 个模块 CC /tmp/modconfig-Df4vT2/vmmon-only/vmmon.mod.o LD [M] /tmp/modconfig-Df4vT2/vmmon-only/vmmon.ko make[1]: 离开目录/usr/src/linux-headers-3.10.0-4-pve' /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: Entering directory/tmp/modconfig-Df4vT2/vmmon-only' make[1]: postbuild' is up to date. make[1]: Leaving directory/tmp/modconfig-Df4vT2/vmmon-only' cp -f vmmon.ko ./../vmmon.o make: 离开目录/tmp/modconfig-Df4vT2/vmmon-only' Using 2.6.x kernel build system. make: Entering directory/tmp/modconfig-Df4vT2/vmnet-only' /usr/bin/make -C /lib/modules/3.10.0-4-pve/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: 进入目录/usr/src/linux-headers-3.10.0-4-pve' CC [M] /tmp/modconfig-Df4vT2/vmnet-only/driver.o CC [M] /tmp/modconfig-Df4vT2/vmnet-only/hub.o CC [M] /tmp/modconfig-Df4vT2/vmnet-only/userif.o CC [M] /tmp/modconfig-Df4vT2/vmnet-only/netif.o CC [M] /tmp/modconfig-Df4vT2/vmnet-only/bridge.o CC [M] /tmp/modconfig-Df4vT2/vmnet-only/filter.o CC [M] /tmp/modconfig-Df4vT2/vmnet-only/procfs.o CC [M] /tmp/modconfig-Df4vT2/vmnet-only/smac_compat.o /tmp/modconfig-Df4vT2/vmnet-only/filter.c: In function ‘VNetFilterHookFn’: /tmp/modconfig-Df4vT2/vmnet-only/filter.c:262:16: error: ‘hooknum’ undeclared (first use in this function) /tmp/modconfig-Df4vT2/vmnet-only/filter.c:262:16: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [/tmp/modconfig-Df4vT2/vmnet-only/filter.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [_module_/tmp/modconfig-Df4vT2/vmnet-only] Error 2 make[1]: Leaving directory/usr/src/linux-headers-3.10.0-4-pve' make: *** [vmnet.ko] 错误 2 make: 离开目录 `/tmp/modconfig-Df4vT2/vmnet-only' 无法安装所有模块。请参阅日志了解详细信息。

我尝试应用了几个我找到的补丁,但没有一个对我有用。有解决方案吗?

谢谢

相关内容