7 Replies Latest reply on Sep 5, 2017 11:27 AM by Thommie

    Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3

    jpearso Novice

      Hello

       

      # kernel details

      uname -a

      Linux hero 4.4.76-1-default #1 SMP Fri Jul 14 08:48:13 UTC 2017 (9a2885c) x86_64 x86_64 x86_64 GNU/Linux

       

      # VMware details

      VMware Workstation version=e.x.p build=build-6056110 option=BETA

       

      # Problem details

      The vmnet module on VMware-Workstation-Full-e.x.p-6056110.x86_64.bundle errors out when compiling

       

      # Error message

       

      tmp/vmware/source/vmnet-only/netif.c:468:4: note: in expansion of macro ‘compat_netif_trans_update’

          compat_netif_trans_update(dev);

          ^

      /usr/src/linux-4.4.76-1/scripts/Makefile.build:259: recipe for target '/tmp/vmware/source/vmnet-only/netif.o' failed

      make[4]: *** [/tmp/vmware/source/vmnet-only/netif.o] Error 1

      /usr/src/linux-4.4.76-1/Makefile:1428: recipe for target '_module_/tmp/vmware/source/vmnet-only' failed

      make[3]: *** [_module_/tmp/vmware/source/vmnet-only] Error 2

      Makefile:150: recipe for target 'sub-make' failed

      make[2]: *** [sub-make] Error 2

      Makefile:24: recipe for target '__sub-make' failed

      make[1]: *** [__sub-make] Error 2

      make[1]: Leaving directory '/usr/src/linux-4.4.76-1-obj/x86_64/default'

      Makefile:120: recipe for target 'vmnet.ko' failed

      make: *** [vmnet.ko] Error 2

       

       

      # Message when starting VMware services:

         Virtual machine monitor                                             done

         Virtual machine communication interface                             done

         VM communication interface socket family                            done

         Blocking file system                                                done

         Virtual ethernet                                                   failed

         VMware Authentication Daemon                                        done

       

      Logs are attached

       

      TIA

      James

        • 1. Re: Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3
          jpearso Novice

          Hello

           

          VMware-Workstation-Full-e.x.p-6056110.x86_64.bundle is now up and running on my openSUSE 43.2 installation

           

          The kernel version is 4.4.76

          uname -a

          Linux hero 4.4.76-1-default #1 SMP Fri Jul 14 08:48:13 UTC 2017 (9a2885c) x86_64 x86_64 x86_64 GNU/Linux

           

          ##################################

          # How to fix the problem : summary

          ##################################

          In the netif.c file (which is in the vmnet.tar), you should have the following line:

          compat_netif_trans_update(dev);

           

          My solution was to change compat_netif_trans_update(dev);

          to

          netif_trans_update(dev);

           

          Then run:

          vmware-modconfig --console --install-all

           

           

          ##################################

          # How to fix the problem : long

          ##################################

          Login as root

          cd /usr/lib/vmware/modules/source/

          cp -p vmnet.tar vmnet.old.tar

          tar xf vmnet.tar

           

          cd vmnet-only

          vi netif.c

           

          Open netif.c and find the line: compat_netif_trans_update(dev);

           

          It should look like this

             netIf->stats.tx_packets++;

             compat_netif_trans_update(dev);

           

          Change compat_netif_trans_update(dev);

          to

          netif_trans_update(dev);

           

          After the change - I have this

             netIf->stats.tx_packets++;

             netif_trans_update(dev);

           

          Close and save the netif.c file

          Close and save

           

          Now recompile VMware kernel modules using this command

          vmware-modconfig --console --install-all

           

          Expected results

          hero:/usr/lib/vmware/modules/source # vmware-modconfig --console --install-all

          [AppLoader] Use shipped PC/SC Lite smart card framework.

          An up-to-date "pcsc-lite-libs" or "libpcsclite1" package from your system is preferred.

          [AppLoader] GLib does not have GSettings support.

          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-HcrWCA/vmmon-only'

          Using kernel build system.

          /usr/bin/make -C /lib/modules/4.4.76-1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

            MODULEBUILDDIR= modules

          make[1]: Entering directory '/usr/src/linux-4.4.76-1-obj/x86_64/default'

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/linux/driver.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/linux/hostif.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/linux/driverLog.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/memtrack.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/apic.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/vmx86.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/cpuid.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/task.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/hashFunc.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/comport.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/common/phystrack.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/vmcore/moduleloop.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/bootstrap/monLoaderVmmon.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/bootstrap/monLoader.o

            CC [M]  /tmp/modconfig-HcrWCA/vmmon-only/bootstrap/bootstrap.o

          /tmp/modconfig-HcrWCA/vmmon-only/linux/driver.c:981:1: warning: always_inline function might not be inlinable [-Wattributes]

          LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

          ^

            LD [M]  /tmp/modconfig-HcrWCA/vmmon-only/vmmon.o

            Building modules, stage 2.

            MODPOST 1 modules

            CC      /tmp/modconfig-HcrWCA/vmmon-only/vmmon.mod.o

            LD [M]  /tmp/modconfig-HcrWCA/vmmon-only/vmmon.ko

          make[1]: Leaving directory '/usr/src/linux-4.4.76-1-obj/x86_64/default'

          /usr/bin/make -C $PWD SRCROOT=$PWD/. \

            MODULEBUILDDIR= postbuild

          make[1]: Entering directory '/tmp/modconfig-HcrWCA/vmmon-only'

          make[1]: 'postbuild' is up to date.

          make[1]: Leaving directory '/tmp/modconfig-HcrWCA/vmmon-only'

          cp -f vmmon.ko ./../vmmon.o

          make: Leaving directory '/tmp/modconfig-HcrWCA/vmmon-only'

          Starting VMware services:

             Virtual machine monitor                                             done

             Virtual machine communication interface                             done

             VM communication interface socket family                            done

             Blocking file system                                                done

             Virtual ethernet                                                    done

             VMware Authentication Daemon                                        done

             Shared Memory Available                                             done

           

            

          Open VMware workstation from the menu

          It should now work - at least it did for me

           

          Regards

          James

          • 2. Re: Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3
            fenice Novice

            Hi

             

            Thanks for this fix and well done, it also worked for me on the Leap 42.3 version with the TP version of Workstation.

             

             

            Regards

             

             

            Bill

            • 3. Re: Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3
              Babydoc056 Lurker

              I do not succeed.

               

              Installing vmmon succeeds adjusting like this Re: Kernel 4.6 - VmPlayer 12 - vmnet & vmmon compilation failure

              But vmnet is not installing, even when adjusting netif.c

              Below are the console-output and the logfile.

               

              The same applies for VMplayer and VMWorkstation:

               

              VMware-Workstation-Full-12.5.3-5115892.x86_64.bundle

              VMware-Player-12.5.7-5813279.x86_64.bundle

               

              Linux linux-sd20 4.4.76-1-default #1 SMP Fri Jul 14 08:48:13 UTC 2017 (9a2885c) x86_64 x86_64 x86_64 GNU/Linux

               

              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: Map '/tmp/modconfig-SI8uxe/vmmon-only' wordt binnengegaan

              Using kernel build system.

              /usr/bin/make -C /lib/modules/4.4.76-1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

                MODULEBUILDDIR= modules

              make[1]: Map '/usr/src/linux-4.4.76-1-obj/x86_64/default' wordt binnengegaan

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/linux/driverLog.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/linux/driver.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/linux/hostif.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/apic.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/memtrack.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/hashFunc.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/vmx86.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/cpuid.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/task.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/comport.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/vmcore/moduleloop.o

                CC [M]  /tmp/modconfig-SI8uxe/vmmon-only/common/phystrack.o

              /tmp/modconfig-SI8uxe/vmmon-only/linux/hostif.c: In function ‘HostIFGetUserPages’:

              /tmp/modconfig-SI8uxe/vmmon-only/linux/hostif.c:1171:28: warning: passing argument 7 of ‘get_user_pages_remote’ from incompatible pointer type [enabled by default]

                                          numPages, 0, 0, ppages, NULL);

                                          ^

              In file included from /tmp/modconfig-SI8uxe/vmmon-only/./include/compat_page.h:23:0,

                               from /tmp/modconfig-SI8uxe/vmmon-only/linux/hostif.c:32:

              /usr/src/linux-4.4.76-1/include/linux/mm.h:1260:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’

              long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,

                    ^

              /tmp/modconfig-SI8uxe/vmmon-only/linux/driver.c:1283:1: warning: always_inline function might not be inlinable [-Wattributes]

              LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

              ^

                LD [M]  /tmp/modconfig-SI8uxe/vmmon-only/vmmon.o

                Building modules, stage 2.

                MODPOST 1 modules

                CC      /tmp/modconfig-SI8uxe/vmmon-only/vmmon.mod.o

                LD [M]  /tmp/modconfig-SI8uxe/vmmon-only/vmmon.ko

              make[1]: Map '/usr/src/linux-4.4.76-1-obj/x86_64/default' wordt verlaten

              /usr/bin/make -C $PWD SRCROOT=$PWD/. \

                MODULEBUILDDIR= postbuild

              make[1]: Map '/tmp/modconfig-SI8uxe/vmmon-only' wordt binnengegaan

              make[1]: 'postbuild' is up-to-date.

              make[1]: Map '/tmp/modconfig-SI8uxe/vmmon-only' wordt verlaten

              cp -f vmmon.ko ./../vmmon.o

              make: Map '/tmp/modconfig-SI8uxe/vmmon-only' wordt verlaten

              make: Map '/tmp/modconfig-SI8uxe/vmnet-only' wordt binnengegaan

              Using kernel build system.

              /usr/bin/make -C /lib/modules/4.4.76-1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

                MODULEBUILDDIR= modules

              make[1]: Map '/usr/src/linux-4.4.76-1-obj/x86_64/default' wordt binnengegaan

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/driver.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/hub.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/userif.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/netif.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/bridge.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/procfs.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/smac_compat.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/smac.o

                CC [M]  /tmp/modconfig-SI8uxe/vmnet-only/vnetEvent.o

              /tmp/modconfig-SI8uxe/vmnet-only/userif.c: In function ‘UserifLockPage’:

              /tmp/modconfig-SI8uxe/vmnet-only/userif.c:122:28: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [enabled by default]

                                          1, 1, 0, &page, NULL);

                                          ^

              In file included from /usr/src/linux-4.4.76-1/include/linux/highmem.h:7:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/userif.c:26:

              /usr/src/linux-4.4.76-1/include/linux/mm.h:1264:6: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’

              long get_user_pages(unsigned long start, unsigned long nr_pages,

                    ^

              /tmp/modconfig-SI8uxe/vmnet-only/userif.c:122:28: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [enabled by default]

                                          1, 1, 0, &page, NULL);

                                          ^

              In file included from /usr/src/linux-4.4.76-1/include/linux/highmem.h:7:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/userif.c:26:

              /usr/src/linux-4.4.76-1/include/linux/mm.h:1264:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’

              long get_user_pages(unsigned long start, unsigned long nr_pages,

                    ^

              /tmp/modconfig-SI8uxe/vmnet-only/userif.c:122:28: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [enabled by default]

                                          1, 1, 0, &page, NULL);

                                          ^

              In file included from /usr/src/linux-4.4.76-1/include/linux/highmem.h:7:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/userif.c:26:

              /usr/src/linux-4.4.76-1/include/linux/mm.h:1264:6: note: expected ‘struct page **’ but argument is of type ‘int’

              long get_user_pages(unsigned long start, unsigned long nr_pages,

                    ^

              /tmp/modconfig-SI8uxe/vmnet-only/userif.c:122:28: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [enabled by default]

                                          1, 1, 0, &page, NULL);

                                          ^

              In file included from /usr/src/linux-4.4.76-1/include/linux/highmem.h:7:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/userif.c:26:

              /usr/src/linux-4.4.76-1/include/linux/mm.h:1264:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’

              long get_user_pages(unsigned long start, unsigned long nr_pages,

                    ^

              /tmp/modconfig-SI8uxe/vmnet-only/userif.c:122:28: error: too many arguments to function ‘get_user_pages’

                                          1, 1, 0, &page, NULL);

                                          ^

              In file included from /usr/src/linux-4.4.76-1/include/linux/highmem.h:7:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/userif.c:26:

              /usr/src/linux-4.4.76-1/include/linux/mm.h:1264:6: note: declared here

              long get_user_pages(unsigned long start, unsigned long nr_pages,

                    ^

              In file included from /usr/src/linux-4.4.76-1/include/linux/pci.h:36:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/compat_netdevice.h:27,

                               from /tmp/modconfig-SI8uxe/vmnet-only/netif.c:43:

              /usr/src/linux-4.4.76-1/include/linux/pci_ids.h:2255:0: warning: "PCI_VENDOR_ID_VMWARE" redefined [enabled by default]

              #define PCI_VENDOR_ID_VMWARE  0x15ad

              ^

              In file included from /tmp/modconfig-SI8uxe/vmnet-only/net.h:38:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/vnetInt.h:26,

                               from /tmp/modconfig-SI8uxe/vmnet-only/netif.c:42:

              /tmp/modconfig-SI8uxe/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition

              #define PCI_VENDOR_ID_VMWARE                    0x15AD

              ^

              /usr/src/linux-4.4.76-1/scripts/Makefile.build:259: recept voor doel '/tmp/modconfig-SI8uxe/vmnet-only/userif.o' is mislukt

              make[4]: *** [/tmp/modconfig-SI8uxe/vmnet-only/userif.o] Fout 1

              make[4]: *** Wachten op onvoltooide taken...

              In file included from /tmp/modconfig-SI8uxe/vmnet-only/net.h:38:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/vnetInt.h:26,

                               from /tmp/modconfig-SI8uxe/vmnet-only/bridge.c:52:

              /tmp/modconfig-SI8uxe/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 included from /usr/src/linux-4.4.76-1/include/linux/pci.h:36:0,

                               from /tmp/modconfig-SI8uxe/vmnet-only/compat_netdevice.h:27,

                               from /tmp/modconfig-SI8uxe/vmnet-only/bridge.c:51:

              /usr/src/linux-4.4.76-1/include/linux/pci_ids.h:2255:0: note: this is the location of the previous definition

              #define PCI_VENDOR_ID_VMWARE  0x15ad

              ^

              /usr/src/linux-4.4.76-1/Makefile:1428: recept voor doel '_module_/tmp/modconfig-SI8uxe/vmnet-only' is mislukt

              make[3]: *** [_module_/tmp/modconfig-SI8uxe/vmnet-only] Fout 2

              Makefile:150: recept voor doel 'sub-make' is mislukt

              make[2]: *** [sub-make] Fout 2

              Makefile:24: recept voor doel '__sub-make' is mislukt

              make[1]: *** [__sub-make] Fout 2

              make[1]: Map '/usr/src/linux-4.4.76-1-obj/x86_64/default' wordt verlaten

              Makefile:120: recept voor doel 'vmnet.ko' is mislukt

              make: *** [vmnet.ko] Fout 2

              make: Map '/tmp/modconfig-SI8uxe/vmnet-only' wordt verlaten

              Unable to install all modules.  See log for details.

               

              2017-07-28T14:27:20.475+02:00| modconfig| I125: Log for VMware Workstation pid=12685 version=12.5.3 build=build-5115892 option=Release

              2017-07-28T14:27:20.475+02:00| modconfig| I125: The process is 64-bit.

              2017-07-28T14:27:20.475+02:00| modconfig| I125: Host codepage=UTF-8 encoding=UTF-8

              2017-07-28T14:27:20.475+02:00| modconfig| I125: Host is Linux 4.4.76-1-default openSUSE Leap 42.3

              2017-07-28T14:27:20.475+02:00| modconfig| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": No such file or directory.

              2017-07-28T14:27:20.475+02:00| modconfig| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.

              2017-07-28T14:27:20.475+02:00| modconfig| I125: DictionaryLoad: Cannot open file "/root/.vmware/config": No such file or directory.

              2017-07-28T14:27:20.475+02:00| modconfig| I125: PREF Optional preferences file not found at /root/.vmware/config. Using default values.

              2017-07-28T14:27:20.475+02:00| modconfig| I125: PREF Unable to check permissions for preferences file.

              2017-07-28T14:27:20.475+02:00| modconfig| I125: DictionaryLoad: Cannot open file "/root/.vmware/preferences": No such file or directory.

              2017-07-28T14:27:20.475+02:00| modconfig| I125: PREF Failed to load user preferences.

              2017-07-28T14:27:20.480+02:00| modconfig| I125: Initialized!  Lets do this thing...

              2017-07-28T14:27:20.480+02:00| modconfig| I125: System distribution is SuSE

              2017-07-28T14:27:20.480+02:00| modconfig| I125: System version is 42.3

              2017-07-28T14:27:20.480+02:00| modconfig| I125: Obtaining info using the running kernel.

              2017-07-28T14:27:20.480+02:00| modconfig| I125: Created new pathsHash.

              2017-07-28T14:27:20.480+02:00| modconfig| I125: Setting header path for 4.4.76-1-default to "/lib/modules/4.4.76-1-default/build/include".

              2017-07-28T14:27:20.480+02:00| modconfig| I125: Validating path "/lib/modules/4.4.76-1-default/build/include" for kernel release "4.4.76-1-default".

              2017-07-28T14:27:20.480+02:00| modconfig| I125: Failed to find /lib/modules/4.4.76-1-default/build/include/linux/version.h

              2017-07-28T14:27:20.480+02:00| modconfig| I125: /lib/modules/4.4.76-1-default/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.

              2017-07-28T14:27:20.480+02:00| modconfig| I125: using /usr/bin/gcc-4.8 for preprocess check

              2017-07-28T14:27:20.484+02:00| modconfig| I125: Preprocessed UTS_RELEASE, got value "4.4.76-1-default".

              2017-07-28T14:27:20.484+02:00| modconfig| I125: The header path "/lib/modules/4.4.76-1-default/build/include" for the kernel "4.4.76-1-default" is valid.  Whoohoo!

              2017-07-28T14:27:20.583+02:00| modconfig| I125: found symbol version file /lib/modules/4.4.76-1-default/build/Module.symvers

              2017-07-28T14:27:20.583+02:00| modconfig| I125: Reading symbol versions from /lib/modules/4.4.76-1-default/build/Module.symvers.

              2017-07-28T14:27:20.597+02:00| modconfig| I125: Read 18119 symbol versions

              2017-07-28T14:27:20.597+02:00| modconfig| I125: Reading in info for the vmmon module.

              2017-07-28T14:27:20.597+02:00| modconfig| I125: Reading in info for the vmnet module.

              2017-07-28T14:27:20.597+02:00| modconfig| I125: Reading in info for the vmblock module.

              2017-07-28T14:27:20.597+02:00| modconfig| I125: Reading in info for the vmci module.

              2017-07-28T14:27:20.597+02:00| modconfig| I125: Reading in info for the vsock module.

              2017-07-28T14:27:20.597+02:00| modconfig| I125: Setting vsock to depend on vmci.

              2017-07-28T14:27:20.604+02:00| modconfig| I125: Trying to find a suitable PBM set for kernel "4.4.76-1-default".

              2017-07-28T14:27:20.604+02:00| modconfig| I125: No matching PBM set was found for kernel "4.4.76-1-default".

              2017-07-28T14:27:20.604+02:00| modconfig| I125: Found compiler at "/usr/bin/gcc"

              2017-07-28T14:27:20.606+02:00| modconfig| I125: Got gcc version "4.8".

              2017-07-28T14:27:20.606+02:00| modconfig| I125: The GCC version matches the kernel GCC minor version like a glove.

              2017-07-28T14:27:20.606+02:00| modconfig| I125: Using temp dir "/tmp".

              2017-07-28T14:27:20.672+02:00| modconfig| I125: Setting destination path for vmmon to "/lib/modules/4.4.76-1-default/misc/vmmon.ko".

              2017-07-28T14:27:20.672+02:00| modconfig| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".

              2017-07-28T14:27:20.679+02:00| modconfig| I125: Successfully extracted the vmmon source.

              2017-07-28T14:27:20.679+02:00| modconfig| I125: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-SI8uxe/vmmon-only auto-build HEADER_DIR=/lib/modules/4.4.76-1-default/build/include CC=/usr/bin/gcc IS_GCC_3=no"

              2017-07-28T14:27:22.021+02:00| modconfig| I125: Successfully built vmmon.  Module is currently at "/tmp/modconfig-SI8uxe/vmmon.o".

              2017-07-28T14:27:22.021+02:00| modconfig| I125: Found the vmmon symvers file at "/tmp/modconfig-SI8uxe/vmmon-only/Module.symvers".

              2017-07-28T14:27:22.021+02:00| modconfig| I125: Installing vmmon from /tmp/modconfig-SI8uxe/vmmon.o to /lib/modules/4.4.76-1-default/misc/vmmon.ko.

              2017-07-28T14:27:22.022+02:00| modconfig| I125: Registering file "/lib/modules/4.4.76-1-default/misc/vmmon.ko".

              2017-07-28T14:27:22.151+02:00| modconfig| I125: "/usr/lib/vmware-installer/2.1.0/vmware-installer" exited with status 0.

              2017-07-28T14:27:22.151+02:00| modconfig| I125: Registering file "/usr/lib/vmware/symvers/vmmon-4.4.76-1-default".

              2017-07-28T14:27:22.282+02:00| modconfig| I125: "/usr/lib/vmware-installer/2.1.0/vmware-installer" exited with status 0.

              2017-07-28T14:27:22.282+02:00| modconfig| I125: Setting destination path for vmnet to "/lib/modules/4.4.76-1-default/misc/vmnet.ko".

              2017-07-28T14:27:22.282+02:00| modconfig| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".

              2017-07-28T14:27:22.288+02:00| modconfig| I125: Successfully extracted the vmnet source.

              2017-07-28T14:27:22.288+02:00| modconfig| I125: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-SI8uxe/vmnet-only auto-build HEADER_DIR=/lib/modules/4.4.76-1-default/build/include CC=/usr/bin/gcc IS_GCC_3=no"

              2017-07-28T14:27:23.337+02:00| modconfig| W115: Failed to build vmnet.  Failed to execute the build command.

              2017-07-28T14:27:23.345+02:00| modconfig| I125: We are now shutdown.  Ready to die!

               

              As for now it seems that opensuse 42.3 is to early-adopted for VMware.

              How and can this be solved?

               

              Regards,

               

              Siegfried

              • 4. Re: Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3
                jpearso Novice

                Hello

                 

                >As for now it seems that opensuse 42.3 is too early-adopted for VMware.

                >How and can this be solved?

                 

                My suggestion would be to :

                1- download the VMware-Workstation-Full-e.x.p-6056110.x86_64.bundle (which is the experiential version) and install it on openSUSE 42.3.

                2- follow the instructions I suggested above.

                 

                Regards

                James

                • 5. Re: Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3
                  Babydoc056 Lurker

                  Ok, I can confirm what you suggested. Thanks.

                   

                  Is there a way to solve this for the other bundles?

                  VMware-Workstation-Full-12.5.3-5115892.x86_64.bundle

                  VMware-Player-12.5.7-5813279.x86_64.bundle

                   

                  Is the problem VMware-related or Opensuse?

                  Do we have to report this?

                  Or is this discussion sufficient?

                   

                  Regards,

                   

                  Siegfried

                  • 6. Re: Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3
                    terryxela Enthusiast

                    James,

                     

                    Thank you for your well explained answered.  I've done all the change you suggested but I have not been able to compile it. I wonder if you have any tips where I should go.

                     

                    -=terry=-

                     

                    ----------------------------------------------------------------------------------------------------------------------------------------------

                    linux-c6pk:~ # uname -a

                    Linux linux-c6pk 4.4.76-1-default #1 SMP Fri Jul 14 08:48:13 UTC 2017 (9a2885c) x86_64 x86_64 x86_64 GNU/Linux

                     

                     

                    linux-c6pk:/usr/lib/vmware/modules/source/vmnet-only # vmware-modconfig --console --install-all

                    [AppLoader] GLib does not have GSettings support.

                    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-ETsddT/vmmon-only'

                    Using kernel build system.

                    /usr/bin/make -C /lib/modules/4.4.76-1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= modules

                    make[1]: Entering directory '/usr/src/linux-4.4.76-1-obj/x86_64/default'

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/linux/driver.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/linux/hostif.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/linux/driverLog.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/memtrack.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/apic.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/vmx86.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/task.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/cpuid.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/hashFunc.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/comport.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/common/phystrack.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/bootstrap/monLoaderVmmon.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/vmcore/moduleloop.o

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/bootstrap/monLoader.o

                    /tmp/modconfig-ETsddT/vmmon-only/linux/driver.c:981:1: warning: always_inline function might not be inlinable [-Wattributes]

                    LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

                    ^

                      CC [M]  /tmp/modconfig-ETsddT/vmmon-only/bootstrap/bootstrap.o

                      LD [M]  /tmp/modconfig-ETsddT/vmmon-only/vmmon.o

                      Building modules, stage 2.

                      MODPOST 1 modules

                      CC      /tmp/modconfig-ETsddT/vmmon-only/vmmon.mod.o

                      LD [M]  /tmp/modconfig-ETsddT/vmmon-only/vmmon.ko

                    make[1]: Leaving directory '/usr/src/linux-4.4.76-1-obj/x86_64/default'

                    /usr/bin/make -C $PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= postbuild

                    make[1]: Entering directory '/tmp/modconfig-ETsddT/vmmon-only'

                    make[1]: 'postbuild' is up to date.

                    make[1]: Leaving directory '/tmp/modconfig-ETsddT/vmmon-only'

                    cp -f vmmon.ko ./../vmmon.o

                    make: Leaving directory '/tmp/modconfig-ETsddT/vmmon-only'

                    make: Entering directory '/tmp/modconfig-ETsddT/vmnet-only'

                    Using kernel build system.

                    /usr/bin/make -C /lib/modules/4.4.76-1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= modules

                    make[1]: Entering directory '/usr/src/linux-4.4.76-1-obj/x86_64/default'

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/driver.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/hub.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/userif.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/netif.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/bridge.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/smac_compat.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/smac.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/procfs.o

                      CC [M]  /tmp/modconfig-ETsddT/vmnet-only/vnetEvent.o

                    In file included from /usr/src/linux-4.4.76-1/include/linux/pci.h:36:0,

                                     from /tmp/modconfig-ETsddT/vmnet-only/compat_netdevice.h:27,

                                     from /tmp/modconfig-ETsddT/vmnet-only/netif.c:43:

                    /usr/src/linux-4.4.76-1/include/linux/pci_ids.h:2255:0: warning: "PCI_VENDOR_ID_VMWARE" redefined [enabled by default]

                    #define PCI_VENDOR_ID_VMWARE  0x15ad

                    ^

                    In file included from /tmp/modconfig-ETsddT/vmnet-only/net.h:38:0,

                                     from /tmp/modconfig-ETsddT/vmnet-only/vnetInt.h:26,

                                     from /tmp/modconfig-ETsddT/vmnet-only/netif.c:42:

                    /tmp/modconfig-ETsddT/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-ETsddT/vmnet-only/netif.c:43:0:

                    /tmp/modconfig-ETsddT/vmnet-only/netif.c: In function ‘VNetNetifStartXmit’:

                    /tmp/modconfig-ETsddT/vmnet-only/compat_netdevice.h:344: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/modconfig-ETsddT/vmnet-only/netif.c:468:4: note: in expansion of macro ‘compat_netif_trans_update’

                        compat_netif_trans_update(dev);

                        ^

                    /usr/src/linux-4.4.76-1/scripts/Makefile.build:259: recipe for target '/tmp/modconfig-ETsddT/vmnet-only/netif.o' failed

                    make[4]: *** [/tmp/modconfig-ETsddT/vmnet-only/netif.o] Error 1

                    make[4]: *** Waiting for unfinished jobs....

                    In file included from /tmp/modconfig-ETsddT/vmnet-only/net.h:38:0,

                                     from /tmp/modconfig-ETsddT/vmnet-only/vnetInt.h:26,

                                     from /tmp/modconfig-ETsddT/vmnet-only/bridge.c:53:

                    /tmp/modconfig-ETsddT/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 included from /usr/src/linux-4.4.76-1/include/linux/pci.h:36:0,

                                     from /tmp/modconfig-ETsddT/vmnet-only/compat_netdevice.h:27,

                                     from /tmp/modconfig-ETsddT/vmnet-only/bridge.c:52:

                    /usr/src/linux-4.4.76-1/include/linux/pci_ids.h:2255:0: note: this is the location of the previous definition

                    #define PCI_VENDOR_ID_VMWARE  0x15ad

                    ^

                    /usr/src/linux-4.4.76-1/Makefile:1428: recipe for target '_module_/tmp/modconfig-ETsddT/vmnet-only' failed

                    make[3]: *** [_module_/tmp/modconfig-ETsddT/vmnet-only] Error 2

                    Makefile:150: recipe for target 'sub-make' failed

                    make[2]: *** [sub-make] Error 2

                    Makefile:24: recipe for target '__sub-make' failed

                    make[1]: *** [__sub-make] Error 2

                    make[1]: Leaving directory '/usr/src/linux-4.4.76-1-obj/x86_64/default'

                    Makefile:120: recipe for target 'vmnet.ko' failed

                    make: *** [vmnet.ko] Error 2

                    make: Leaving directory '/tmp/modconfig-ETsddT/vmnet-only'

                    Failed to build vmnet.  Failed to execute the build command.

                    Unable to install all modules.  See log for details.

                    • 7. Re: Failed to build vmnet module on Linux 4.4.76-1-default openSUSE Leap 42.3
                      Thommie Novice

                      Aside from all the patches presented here:

                       

                      Leap 42.3 was released 29.08.2017 which is one week ago. When can we expect a fixed version from VMWare?  I have compile problems for both Workstation 12.5.6 and 12.5.7 which prevents upgrade to Leap 42.3 on two developer machines.

                       

                      Thanks for info from any "VMWare insider"  ;-)

                       

                      Thommie