VMware Communities
lfaraone
Contributor
Contributor

vmnet fails to build on kernel 3.13.0-1-generic

vmnet fails to build on an Ubuntu trusty system running 3.13.0-1-generic, although the module builds fine on earlier kernels.

Admittedly, 14.04 isn't anywhere near release, and is most certainly not a supported platform for Workstation 10.0.1. That said, if there's a straightforward fix I can apply to enable building the module, that'd be nice.

Build log below:

make[1]: Entering directory `/usr/src/linux-headers-3.13.0-1-generic'
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/driver.o
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/hub.o
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/userif.o
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/netif.o
/tmp/modconfig-LTmunl/vmnet-only/hub.c: In function ‘VNetHubFindHubByID’:
/tmp/modconfig-LTmunl/vmnet-only/hub.c:132:49: warning: argument to ‘sizeof’ in ‘memcmp’ call is the same expression as the first source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
         memcmp(idNum, currHub->id.pvnID, sizeof idNum))) {
                                                 ^
/tmp/modconfig-LTmunl/vmnet-only/hub.c: In function ‘VNetHubAlloc’:
/tmp/modconfig-LTmunl/vmnet-only/hub.c:315:36: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same pointer type ‘uint8 *’ as the destination; expected ‘uint8’ or an explicit length [-Wsizeof-pointer-memaccess]
   memcpy(hub->id.pvnID, id, sizeof id);
                                    ^
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/bridge.o
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/filter.o
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/procfs.o
  CC [M]  /tmp/modconfig-LTmunl/vmnet-only/smac_compat.o
/tmp/modconfig-LTmunl/vmnet-only/filter.c:206:1: error: conflicting types for ‘VNetFilterHookFn’
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
 ^
/tmp/modconfig-LTmunl/vmnet-only/filter.c:64:18: note: previous declaration of ‘VNetFilterHookFn’ was here
 static nf_hookfn VNetFilterHookFn;
                  ^
/tmp/modconfig-LTmunl/vmnet-only/filter.c:64:18: warning: ‘VNetFilterHookFn’ used but never defined [enabled by default]
/tmp/modconfig-LTmunl/vmnet-only/filter.c:206:1: warning: ‘VNetFilterHookFn’ defined but not used [-Wunused-function]
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
 ^
make[2]: *** [/tmp/modconfig-LTmunl/vmnet-only/filter.o] Error 1
0 Kudos
4 Replies
mfelker
Expert
Expert

AFFAIK there is no patch for kernel 3.13.  I am using Ubuntu 14.04 myself.  Curiously, as you may have found out from the most recent updates there is a kernel 3.13.0-2-generic.  However that's pretty weird as kernel 3.13 final has not been released on kernel.org. A response I received on the Ubuntu forums was not very helpful here.

We will see when 3.13 is declared stable by Linux

0 Kudos
DevZer01
Contributor
Contributor

I am unable to build the vmnet module on 3.13 and now i regret the decision to upgrade to 14.04. i've also attached the build error for reference by others.

devzero@beast:/var/tmp$ /usr/bin/make -j8 -C vmnet-only auto-build HEADER_DIR=/lib/modules/3.13.0-1-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no

Using 2.6.x kernel build system.

make: Entering directory `/var/tmp/vmnet-only'

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

   MODULEBUILDDIR= modules

make[1]: Entering directory `/usr/src/linux-headers-3.13.0-1-generic'

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

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

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

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

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

  CC [M]  /var/tmp/vmnet-only/filter.o

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

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

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/hub.c:43:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/smac_compat.c:53:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/hub.c:43:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/smac_compat.c:53:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/userif.c:45:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/filter.c:48:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/driver.c:51:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/var/tmp/vmnet-only/hub.c: In function ‘VNetHubFindHubByID’:

/var/tmp/vmnet-only/hub.c:132:49: warning: argument to ‘sizeof’ in ‘memcmp’ call is the same expression as the first source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]

         memcmp(idNum, currHub->id.pvnID, sizeof idNum))) {

                                                 ^

/var/tmp/vmnet-only/hub.c: In function ‘VNetHubAlloc’:

/var/tmp/vmnet-only/hub.c:315:36: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same pointer type ‘uint8 *’ as the destination; expected ‘uint8’ or an explicit length [-Wsizeof-pointer-memaccess]

   memcpy(hub->id.pvnID, id, sizeof id);

                                    ^

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/userif.c:45:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/filter.c:48:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/driver.c:51:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

/var/tmp/vmnet-only/filter.c: At top level:

/var/tmp/vmnet-only/filter.c:206:1: error: conflicting types for ‘VNetFilterHookFn’

VNetFilterHookFn(unsigned int hooknum,                 // IN:

^

/var/tmp/vmnet-only/filter.c:64:18: note: previous declaration of ‘VNetFilterHookFn’ was here

static nf_hookfn VNetFilterHookFn;

                  ^

/var/tmp/vmnet-only/userif.c: In function ‘VNetUserIfIoctl’:

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/userif.c:809:7: note: in expansion of macro ‘ASSERT_ON_COMPILE’

       ASSERT_ON_COMPILE(VNET_NOTIFY_VERSION == 5);

       ^

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/userif.c:810:7: note: in expansion of macro ‘ASSERT_ON_COMPILE’

       ASSERT_ON_COMPILE(ACTION_EXPORTED_VERSION == 2);

       ^

/var/tmp/vmnet-only/filter.c:64:18: warning: ‘VNetFilterHookFn’ used but never defined [enabled by default]

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/netif.c:42:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/var/tmp/vmnet-only/filter.c:206:1: warning: ‘VNetFilterHookFn’ defined but not used [-Wunused-function]

VNetFilterHookFn(unsigned int hooknum,                 // IN:

^

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/netif.c:42:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

make[2]: *** [/var/tmp/vmnet-only/filter.o] Error 1

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

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/procfs.c:43:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/procfs.c:43:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

In file included from /var/tmp/vmnet-only/vnet.h:28:0,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/bridge.c:52:

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/var/tmp/vmnet-only/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/var/tmp/vmnet-only/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/var/tmp/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

In file included from /var/tmp/vmnet-only/monitorAction_exported.h:31:0,

                 from /var/tmp/vmnet-only/vnet.h:29,

                 from /var/tmp/vmnet-only/vnetInt.h:24,

                 from /var/tmp/vmnet-only/bridge.c:52:

/var/tmp/vmnet-only/monitorAction_exported.h: In function ‘MonitorActionSet_AtomicInclude’:

/var/tmp/vmnet-only/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/var/tmp/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro ‘ASSERT_ON_COMPILE’

    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);

    ^

make[1]: *** [_module_/var/tmp/vmnet-only] Error 2

make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-1-generic'

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

make: Leaving directory `/var/tmp/vmnet-only'

devzero@beast:/var/tmp$

0 Kudos
svitakj
Contributor
Contributor

I have found working solution on this Dan Dar3 blog:

http://dandar3.blogspot.cz/

I have not used patch command, while this gave me error in patching, another side i have inserted if sequnces manualy into file. It's simple:

#if ...

original value

#else

new value

#endif

And after that, compiling vmnet is working Smiley Wink

Thanks to Dan Dar3

0 Kudos
nelsonpinto
Contributor
Contributor

make *** vmnet.ko error 2

Dan Dar3 patch works, great

Dan Dar3: VMware Player 6.0.1 on Ubuntu 14.04 alpha - Modules compile error

Nelson

0 Kudos