system upgrade from CentOS7.3 to CentOS7.4, Vmware12 not open, there are kernel module updater prompts, running Vmware-modconfig--console heavy New building module, if the establishment of success, then congratulations. If not, view the hint that red is marked as an error error after compilation. The problems I have appeared are as follows:
# vmware-modconfig--console--install-all stopping vmware (via Systemctl): [OK] Using ke
Rnel build System. make:entering directory '/tmp/modconfig-5axyzd/vmmon-only '/usr/bin/make-c/lib/modules/3.10.0-693.2.2.el7.x86_64/ build/include/.. subdirs= $PWD srcroot= $PWD/. \ modulebuilddir= Modules Make[1]: Entering directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_64 ' CC [M]/tmp/modcon FIG-5AXYZD/VMMON-ONLY/LINUX/DRIVERLOG.O cc [m]/tmp/modconfig-5axyzd/vmmon-only/linux/driver.o cc [m]/tmp/modconfig -5AXYZD/VMMON-ONLY/LINUX/HOSTIF.O cc [m]/tmp/modconfig-5axyzd/vmmon-only/common/memtrack.o cc [m]/tmp/modconfig-5A XYZD/VMMON-ONLY/COMMON/APIC.O cc [m]/tmp/modconfig-5axyzd/vmmon-only/common/hashfunc.o cc [m]/tmp/modconfig-5AxYzD /VMMON-ONLY/COMMON/VMX86.O cc [m]/tmp/modconfig-5axyzd/vmmon-only/common/cpuid.o cc [m]/tmp/modconfig-5axyzd/vmmon -ONLY/COMMON/TASK.O cc [m]/tmp/modconfig-5axyzd/vmmon-only/common/comport.o cc [m] /TMP/MODCONFIG-5AXYZD/VMMON-ONLY/COMMON/PHYSTRACK.O CC [M]/TMP/MODCONFIG-5AXYZD/VMMON-ONLY/VMCORE/MODULELOOP.O/ Tmp/modconfig-5axyzd/vmmon-only/common/phystrack.o:warning:objtool:phystrack_free () falls through to next function Phystrack_add ()/tmp/modconfig-5axyzd/vmmon-only/common/phystrack.o:warning:objtool:phystrack_add () falls through To next function phystrack_remove ()/tmp/modconfig-5axyzd/vmmon-only/common/phystrack.o:warning:objtool:phystrack_ Remove () falls through to next function phystrack_test ()/tmp/modconfig-5axyzd/vmmon-only/linux/driver.c:1291:1: Warning:always_inline function might not is inlinable [-wattributes] Linuxdriversyncreadtscs (UInt64 *delta)//OUT:TSC Max-tsc min ^/tmp/modconfig-5axyzd/vmmon-only/common/task.o:warning:objtool:. text:unexpected end of the section LD [
M]/TMP/MODCONFIG-5AXYZD/VMMON-ONLY/VMMON.O building modules, Stage 2. Modpost 1 Modules cc/tmp/modconfig-5axyzd/vmmon-only/vmmon.mod.o LD [M]/tmp/modconfig-5axyzd/vmmon-only/vmmon.ko make[1]: Leaving directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_64 '/usr/bin/make-c $PWD srcroot= $PWD/. \ modulebuilddir= PostBuild make[1]: Entering directory '/tmp/modconfig-5axyzd/vmmon-only ' make[1]: ' PostBuild ' is up to
Date. MAKE[1]: Leaving directory '/tmp/modconfig-5axyzd/vmmon-only ' Cp-f Vmmon.ko.
/VMMON.O make:leaving directory '/tmp/modconfig-5axyzd/vmmon-only ' Using kernel build system. make:entering directory '/tmp/modconfig-5axyzd/vmnet-only '/usr/bin/make-c/lib/modules/3.10.0-693.2.2.el7.x86_64/ build/include/.. subdirs= $PWD srcroot= $PWD/. \ modulebuilddir= Modules Make[1]: Entering directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_64 ' CC [M]/tmp/modcon FIG-5AXYZD/VMNET-ONLY/DRIVER.O cc [m]/tmp/modconfig-5axyzd/vmnet-only/hub.o cc [m]/tmp/modconfig-5axyzd/vmnet-only /USERIF.O cc [m]/tmp/modconfig-5axyzd/vmnet-only/netif.o cc [m]/tmp/modconfig-5axyzd/vmnet-only/bridge.o cc [m] /tmp/modconfig-5axyzd/vmnet-onLY/PROCFS.O cc [m]/tmp/modconfig-5axyzd/vmnet-only/smac_compat.o cc [m]/TMP/MODCONFIG-5AXYZD/VMNET-ONLY/SMAC.O C C [m]/TMP/MODCONFIG-5AXYZD/VMNET-ONLY/VNETEVENT.O CC [m]/tmp/modconfig-5axyzd/vmnet-only/vnetuserlistener.o in file
Included from Include/linux/pci.h:35:0, From/tmp/modconfig-5axyzd/vmnet-only/compat_netdevice.h:27, from/tmp/modconfig-5axyzd/vmnet-only/netif.c:43:include/linux/pci_ids.h:2251:0: Warning: "PCI_VENDOR_ID_VM WARE "redefined [enabled by default] #define Pci_vendor_id_vmware 0x15ad ^ in file included from/tmp/modconfig-5axyzd/ vmnet-only/net.h:38:0, from/tmp/modconfig-5axyzd/vmnet-only/vnetint.h:26, From/tmp/mod CONFIG-5AXYZD/VMNET-ONLY/NETIF.C:42:/tmp/modconfig-5axyzd/vmnet-only/vm_device_version.h:56:0: Note:this is the Location of the previous definition #define Pci_vendor_id_vmware 0x15ad ^ in file included from/tmp/ Modconfig-5axyzd/vmnet-only/netif. c:43:0:/tmp/modconfig-5axyzd/vmnet-only/netif.c:in function ' vnetnetifstartxmit ':/tmp/modconfig-5axyzd/ Vmnet-only/compat_netdevice.h:343:46:error: ' struct Net_device ' has no member named ' Trans_start ' #define Compat_netif_ Trans_update (d) do {(d)->trans_start = jiffies: while (0) ^/tmp/modco Nfig-5axyzd/vmnet-only/netif.c:468:4: note:in expansion of macro ' compat_netif_trans_update ' COMPAT_NETIF_TRANS_UPDA
Te (Dev);
^ Make[2]: * * * * * [/TMP/MODCONFIG-5AXYZD/VMNET-ONLY/NETIF.O] Error 1 make[2]: * * * waiting for unfinished jobs .... In file included from/tmp/modconfig-5axyzd/vmnet-only/net.h:38:0, from/tmp/modconfig-5axyzd/vmnet-only/ vnetint.h:26, from/tmp/modconfig-5axyzd/vmnet-only/bridge.c:52:/tmp/modconfig-5axyzd/vmnet-only/vm_devi ce_version.h:56:0: Warning: "Pci_vendor_id_vmware" redefined [enabled by default] #define Pci_vendor_id_vmware 0X15AD ^ in file included froM include/linux/pci.h:35:0, From/tmp/modconfig-5axyzd/vmnet-only/compat_netdevice.h:27, From/tmp/modconfig-5axyzd/vmnet-only/bridge.c:51:include/linux/pci_ids.h:2251:0: Note:this is the location of the pre
vious definition #define Pci_vendor_id_vmware 0x15ad ^ make[1]: * * * [_module_/tmp/modconfig-5axyzd/vmnet-only] Error 2 MAKE[1]: Leaving directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_64 ' make: * * * * [Vmnet.ko] Error 2 make:leaving Direct Ory '/tmp/modconfig-5axyzd/vmnet-only ' Unable to install all modules.
Log for details.
Problems arise in this place:
/tmp/modconfig-5axyzd/vmnet-only/compat_netdevice.h:343:46:error: ' struct Net_device ' has no member named ' Trans_ Start '
#define Compat_netif_trans_update (d) do {(d)->trans_start = Jiffies;} while (0)
Into the first/usr/lib/vmware/modules/source directory, backup Vmnet.tar and Vmmon.tar, due to problems in the vmnet.tar inside, just unpack (tar-xf Vmnet.tar) Vmnet.tar can be. Find compat_netdevice.h file #define Compat_netif_trans_update (d) do {(d)->trans_start = Jiffies;} while (0), change him into # Define Compat_netif_trans_update (d) do {} (0) can be changed to repair (Tar-uf vmnet.tar vmnet-only) file. Run Vmware-modconfig--console--install-all again, no error prompts found, and the results are as follows:
[Root@localhost tmp]# vmware-modconfig--console--install-all stopping vmware (via Systemctl):
[OK]
Using kernel build System. make:entering directory '/tmp/modconfig-w3lvm0/vmmon-only '/usr/bin/make-c/lib/modules/3.10.0-693.2.2.el7.x86_64/ build/include/.. subdirs= $PWD srcroot= $PWD/. \ modulebuilddir= Modules Make[1]: Entering directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_64 ' CC [M]/tmp/modcon FIG-W3LVM0/VMMON-ONLY/LINUX/DRIVERLOG.O cc [m]/tmp/modconfig-w3lvm0/vmmon-only/linux/driver.o cc [m]/tmp/modconfig -W3LVM0/VMMON-ONLY/LINUX/HOSTIF.O cc [m]/tmp/modconfig-w3lvm0/vmmon-only/common/memtrack.o cc [m]/tmp/modconfig-w3 LVM0/VMMON-ONLY/COMMON/APIC.O cc [m]/tmp/modconfig-w3lvm0/vmmon-only/common/hashfunc.o cc [m]/tmp/modconfig-w3lVM0 /VMMON-ONLY/COMMON/VMX86.O cc [m]/tmp/modconfig-w3lvm0/vmmon-only/common/cpuid.o cc [m]/tmp/modconfig-w3lvm0/vmmon -ONLY/COMMON/TASK.O CC [M]/tmp/modconfig-w3lvm0/vmmon-only/commoN/COMPORT.O cc [m]/tmp/modconfig-w3lvm0/vmmon-only/common/phystrack.o cc [m]/tmp/modconfig-w3lvm0/vmmon-only/vmcor E/moduleloop.o/tmp/modconfig-w3lvm0/vmmon-only/common/phystrack.o:warning:objtool:phystrack_free () falls through To next function Phystrack_add ()/tmp/modconfig-w3lvm0/vmmon-only/common/phystrack.o:warning:objtool:phystrack_add () falls through to next function Phystrack_remove ()/tmp/modconfig-w3lvm0/vmmon-only/common/phystrack.o:warning: Objtool:phystrack_remove () falls through to next function phystrack_test ()/tmp/modconfig-w3lvm0/vmmon-only/linux/ Driver.c:1291:1: Warning:always_inline function might not is inlinable [-wattributes] Linuxdriversyncreadtscs (UInt64 *d ELTA)//out:tsc max-tsc min ^/tmp/modconfig-w3lvm0/vmmon-only/common/task.o:warning:objtool:. Text:unexpected End
of section LD [M]/TMP/MODCONFIG-W3LVM0/VMMON-ONLY/VMMON.O building modules, Stage 2. Modpost 1 Modules cc/tmp/modconfig-w3lvm0/vmmon-only/vmmon.mod.o LD [M]/tmp/modconfig-w3lvm0/vmmon-only/vmmon.ko make[1]: Leaving directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_ /usr/bin/make-c $PWD srcroot= $PWD/. \ modulebuilddir= PostBuild make[1]: Entering directory '/tmp/modconfig-w3lvm0/vmmon-only ' make[1]: ' PostBuild ' is up to
Date. MAKE[1]: Leaving directory '/tmp/modconfig-w3lvm0/vmmon-only ' Cp-f Vmmon.ko.
/VMMON.O make:leaving directory '/tmp/modconfig-w3lvm0/vmmon-only ' Using kernel build system. make:entering directory '/tmp/modconfig-w3lvm0/vmnet-only '/usr/bin/make-c/lib/modules/3.10.0-693.2.2.el7.x86_64/ build/include/.. subdirs= $PWD srcroot= $PWD/. \ modulebuilddir= Modules Make[1]: Entering directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_64 ' CC [M]/tmp/modcon FIG-W3LVM0/VMNET-ONLY/DRIVER.O cc [m]/tmp/modconfig-w3lvm0/vmnet-only/hub.o cc [m]/tmp/modconfig-w3lvm0/vmnet-only /USERIF.O cc [m]/tmp/modconfig-w3lvm0/vmnet-only/netif.o cc [m]/tmp/modconfig-w3lvm0/vmnet-only/bridge.o cc [m] /tmp/modcoNFIG-W3LVM0/VMNET-ONLY/PROCFS.O cc [m]/tmp/modconfig-w3lvm0/vmnet-only/smac_compat.o cc [m]/tmp/modconfig-w3lVM0/v MNET-ONLY/SMAC.O cc [m]/tmp/modconfig-w3lvm0/vmnet-only/vnetevent.o cc [m]/tmp/modconfig-w3lvm0/vmnet-only/vnetuse RLISTENER.O in file included from include/linux/pci.h:35:0, From/tmp/modconfig-w3lvm0/vmnet-only/compat_ NETDEVICE.H:27, from/tmp/modconfig-w3lvm0/vmnet-only/netif.c:43:include/linux/pci_ids.h:2251:0: Warning : "Pci_vendor_id_vmware" redefined [enabled by default] #define Pci_vendor_id_vmware 0x15ad ^ in file included From/tm
p/modconfig-w3lvm0/vmnet-only/net.h:38:0, from/tmp/modconfig-w3lvm0/vmnet-only/vnetint.h:26, FROM/TMP/MODCONFIG-W3LVM0/VMNET-ONLY/NETIF.C:42:/tmp/modconfig-w3lvm0/vmnet-only/vm_device_version.h:56:0: note : This is the location of the previous definition #define Pci_vendor_id_vmware 0x15ad ^ in file inclu Ded from/tmp/modconfig-w3lvm0/vmnet-only/net.h:38:0, from/tmp/modconfig-w3lvm0/vmnet-only/vnetint.h:26, from/tmp /MODCONFIG-W3LVM0/VMNET-ONLY/BRIDGE.C:52:/tmp/modconfig-w3lvm0/vmnet-only/vm_device_version.h:56:0: Warning: " Pci_vendor_id_vmware "redefined [enabled by default] #define Pci_vendor_id_vmware 0x15ad ^ in file
Cluded from include/linux/pci.h:35:0, from/tmp/modconfig-w3lvm0/vmnet-only/compat_netdevice.h:27, From/tmp/modconfig-w3lvm0/vmnet-only/bridge.c:51:include/linux/pci_ids.h:2251:0: Note:this is the location O f the previous definition #define Pci_vendor_id_vmware 0x15ad ^ LD [M]/TMP/MODCONFIG-W3LVM0/VMNET-ONLY/VMNET.O Bu
ilding modules, Stage 2. Modpost 1 Modules cc/tmp/modconfig-w3lvm0/vmnet-only/vmnet.mod.o LD [M]/tmp/modconfig-w3lvm0/vmnet-only/vmnet. Ko make[1]: Leaving directory '/usr/src/kernels/3.10.0-693.2.2.el7.x86_64 '/usr/bin/make-c $PWD srcroot= $PWD/. \ Modulebuilddir= PostBuild Make[1]: Entering directory '/tmp/modconfig-w3lvm0/vmnet-only ' make[1]: ' PostBuild ' is up to date. MAKE[1]: Leaving directory '/tmp/modconfig-w3lvm0/vmnet-only ' Cp-f Vmnet.ko. /VMNET.O make:leaving directory '/tmp/modconfig-w3lvm0/vmnet-only ' starting VMware (via Systemctl):
[OK]
Turn on VMware again and the familiar interface appears.
Reference:
Http://www.kali.org.cn/thread-22052-1-1.html
http://blog.csdn.net/byb123/article/details/52094840