|
按照提示做了,还是不行:
aaaaaaa:~$ sudo apt install linux-headers-`uname -r` [sudo] aaaaaa 的密码: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 linux-headers-4.4.0-34-generic 已经是最新版 (4.4.0-34.53)。 linux-headers-4.4.0-34-generic 已设置为手动安装。 下列软件包是自动安装的并且现在不需要了: libcdaudio1 libjpeg9 libslv2-9 libstdc++-4.8-dev 使用'sudo apt autoremove'来卸载它(它们)。 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 17 个软件包未被升级。 ----------------------------------------------------------------- aaaaaaa:~$ sudo vmware-modconfig --console --install-all Stopping VMware services: VMware Authentication Daemon done VM communication interface socket family done Virtual machine communication interface done Virtual machine monitor done Blocking file system done make: Entering directory '/tmp/modconfig-XyDkBR/vmmon-only' Using kernel build system. /usr/bin/make -C /lib/modules/4.4.0-34-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/linux-headers-4.4.0-34-generic' CC [M] /tmp/modconfig-XyDkBR/vmmon-only/linux/driver.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/linux/hostif.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/linux/driverLog.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/memtrack.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/hashFunc.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/apic.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/vmx86.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/cpuid.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/task.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/comport.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/common/phystrack.o CC [M] /tmp/modconfig-XyDkBR/vmmon-only/vmcore/moduleloop.o /tmp/modconfig-XyDkBR/vmmon-only/linux/driver.c: In function ‘cleanup_module’: /tmp/modconfig-XyDkBR/vmmon-only/linux/driver.c:403:8: error: void value not ignored as it ought to be if (misc_deregister(&linuxState.misc)) { ^ At top level: /tmp/modconfig-XyDkBR/vmmon-only/linux/driver.c:1332:1: warning: always_inline function might not be inlinable [-Wattributes] LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min ^ scripts/Makefile.build:258: recipe for target '/tmp/modconfig-XyDkBR/vmmon-only/linux/driver.o' failed make[2]: *** [/tmp/modconfig-XyDkBR/vmmon-only/linux/driver.o] Error 1 make[2]: *** 正在等待未完成的任务.... Makefile:1403: recipe for target '_module_/tmp/modconfig-XyDkBR/vmmon-only' failed make[1]: *** [_module_/tmp/modconfig-XyDkBR/vmmon-only] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-34-generic' Makefile:120: recipe for target 'vmmon.ko' failed make: *** [vmmon.ko] Error 2 make: Leaving directory '/tmp/modconfig-XyDkBR/vmmon-only' make: Entering directory '/tmp/modconfig-XyDkBR/vmnet-only' Using kernel build system. /usr/bin/make -C /lib/modules/4.4.0-34-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/linux-headers-4.4.0-34-generic' CC [M] /tmp/modconfig-XyDkBR/vmnet-only/driver.o CC [M] /tmp/modconfig-XyDkBR/vmnet-only/hub.o CC [M] /tmp/modconfig-XyDkBR/vmnet-only/userif.o CC [M] /tmp/modconfig-XyDkBR/vmnet-only/netif.o CC [M] /tmp/modconfig-XyDkBR/vmnet-only/bridge.o CC [M] /tmp/modconfig-XyDkBR/vmnet-only/smac.o CC [M] /tmp/modconfig-XyDkBR/vmnet-only/smac_compat.o CC [M] /tmp/modconfig-XyDkBR/vmnet-only/procfs.o In file included from include/linux/pci.h:35:0, from /tmp/modconfig-XyDkBR/vmnet-only/compat_netdevice.h:27, from /tmp/modconfig-XyDkBR/vmnet-only/netif.c:43: include/linux/pci_ids.h:2252:0: warning: "PCI_VENDOR_ID_VMWARE" redefined #define PCI_VENDOR_ID_VMWARE 0x15ad ^ In file included from /tmp/modconfig-XyDkBR/vmnet-only/net.h:38:0, from /tmp/modconfig-XyDkBR/vmnet-only/vnetInt.h:26, from /tmp/modconfig-XyDkBR/vmnet-only/netif.c:42: /tmp/modconfig-XyDkBR/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition #define PCI_VENDOR_ID_VMWARE 0x15AD ^ /tmp/modconfig-XyDkBR/vmnet-only/userif.c: In function ‘VNetCopyDatagram’: /tmp/modconfig-XyDkBR/vmnet-only/userif.c:526:11: error: implicit declaration of function ‘skb_copy_datagram_iovec’ [-Werror=implicit-function-declaration] return skb_copy_datagram_iovec(skb, 0, &iov, len); ^ CC [M] /tmp/modconfig-XyDkBR/vmnet-only/vnetEvent.o /tmp/modconfig-XyDkBR/vmnet-only/driver.c: In function ‘VNetFileOpUnlockedIoctl’: /tmp/modconfig-XyDkBR/vmnet-only/driver.c:1194:20: error: ‘struct file’ has no member named ‘f_dentry’ if (filp && filp->f_dentry) { ^ /tmp/modconfig-XyDkBR/vmnet-only/driver.c:1195:19: error: ‘struct file’ has no member named ‘f_dentry’ inode = filp->f_dentry->d_inode; ^ CC [M] /tmp/modconfig-XyDkBR/vmnet-only/vnetUserListener.o scripts/Makefile.build:258: recipe for target '/tmp/modconfig-XyDkBR/vmnet-only/driver.o' failed make[2]: *** [/tmp/modconfig-XyDkBR/vmnet-only/driver.o] Error 1 make[2]: *** 正在等待未完成的任务.... In file included from /tmp/modconfig-XyDkBR/vmnet-only/net.h:38:0, from /tmp/modconfig-XyDkBR/vmnet-only/vnetInt.h:26, from /tmp/modconfig-XyDkBR/vmnet-only/bridge.c:52: /tmp/modconfig-XyDkBR/vmnet-only/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined #define PCI_VENDOR_ID_VMWARE 0x15AD ^ In file included from include/linux/pci.h:35:0, from /tmp/modconfig-XyDkBR/vmnet-only/compat_netdevice.h:27, from /tmp/modconfig-XyDkBR/vmnet-only/bridge.c:51: include/linux/pci_ids.h:2252:0: note: this is the location of the previous definition #define PCI_VENDOR_ID_VMWARE 0x15ad ^ In file included from /tmp/modconfig-XyDkBR/vmnet-only/bridge.c:50:0: /tmp/modconfig-XyDkBR/vmnet-only/bridge.c: In function ‘VNetBridgeUp’: /tmp/modconfig-XyDkBR/vmnet-only/vmnetInt.h:81:40: error: too few arguments to function ‘sk_alloc’ # define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ ^ /tmp/modconfig-XyDkBR/vmnet-only/bridge.c:952:17: note: in expansion of macro ‘compat_sk_alloc’ bridge->sk = compat_sk_alloc(bridge, GFP_ATOMIC); ^ In file included from /tmp/modconfig-XyDkBR/vmnet-only/compat_sock.h:23:0, from /tmp/modconfig-XyDkBR/vmnet-only/bridge.c:35: include/net/sock.h:1511:14: note: declared here struct sock *sk_alloc(struct net *net, int family, gfp_t priority, ^ scripts/Makefile.build:258: recipe for target '/tmp/modconfig-XyDkBR/vmnet-only/bridge.o' failed make[2]: *** [/tmp/modconfig-XyDkBR/vmnet-only/bridge.o] Error 1 cc1: some warnings being treated as errors scripts/Makefile.build:258: recipe for target '/tmp/modconfig-XyDkBR/vmnet-only/userif.o' failed make[2]: *** [/tmp/modconfig-XyDkBR/vmnet-only/userif.o] Error 1 Makefile:1403: recipe for target '_module_/tmp/modconfig-XyDkBR/vmnet-only' failed make[1]: *** [_module_/tmp/modconfig-XyDkBR/vmnet-only] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-34-generic' Makefile:120: recipe for target 'vmnet.ko' failed make: *** [vmnet.ko] Error 2 make: Leaving directory '/tmp/modconfig-XyDkBR/vmnet-only' Unable to install all modules. See log for details. ------------------------------------------------------------ aaaaaaa:~$
|