You are not logged in.

#1 2011-12-25 04:29:54

shengcor
Member
Registered: 2011-12-25
Posts: 4

open-vm-tool compilation failed

was trying to compile the latest open-vm-tools, but get the following errors. Absolutely a newbie here, can someone please take a look at it? Thanks!


Using 2.6.x kernel build system.
Building VMCI Sockets with VMCI module symbols.
make[2]: Entering directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vsock'
cp -f /home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/VMwareVMCIModule.symvers ./Module.symvers
make -C /lib/modules/3.1.5-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR=/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux modules
make[3]: Entering directory `/usr/src/linux-3.1.5-1-ARCH'
  Building modules, stage 2.
  MODPOST 1 modules
make[3]: Leaving directory `/usr/src/linux-3.1.5-1-ARCH'
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR=/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux postbuild
make[3]: Entering directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vsock'
make[3]: `postbuild' is up to date.
make[3]: Leaving directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vsock'
cp -f vsock.ko ./../vsock.o
make[2]: Leaving directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vsock'
make VM_UNAME=3.1.5-1-ARCH MV=mv RM=rm      \
   OVT_SOURCE_DIR=/home/shengc/Downloads/open-vm-tools-2011.12.20-562307                 \
   MODULEBUILDDIR=/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux        \
    -C "/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet"
Using 2.6.x kernel build system.
make[2]: Entering directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet'
make -C /lib/modules/3.1.5-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR=/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux modules
make[3]: Entering directory `/usr/src/linux-3.1.5-1-ARCH'
  CC [M]  /home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.o
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c: In function ‘vmxnet_map_pkt’:
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2045:2: error: implicit declaration of function ‘skb_frag_size’ [-Werror=implicit-function-declaration]
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2057:42: error: request for member ‘p’ in something not a structure or union
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2087:36: error: request for member ‘p’ in something not a structure or union
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c: In function ‘vmxnet_rx_frags’:
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2589:10: error: implicit declaration of function ‘__skb_frag_set_page’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

make[4]: *** [/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.o] Error 1
make[3]: *** [_module_/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet] Error 2
make[3]: Leaving directory `/usr/src/linux-3.1.5-1-ARCH'
make[2]: *** [vmxnet.ko] Error 2
make[2]: Leaving directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet'
make[1]: *** [vmxnet] Error 2
make[1]: Leaving directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules'
make: *** [all-recursive] Error 1

Offline

#2 2011-12-25 06:09:30

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: open-vm-tool compilation failed

For future reference, please use the forum's code tags. Thanks. smile

I hate dealing with gcc output, but from what I can tell, "-Werror," a compiler flag, is treating code warnings as errors and thus yielding "cc1: some warnings being treated as errors." I suggest modifying the Makefile (found in the program's source directory) and removing "-Werror" from its CFLAGS (a variable within the Makefile). However, somehow finding the source of these warnings (usually by contacting an upstream developer) and verifying that they can indeed be overlooked is probably a safer choice.

Offline

#3 2011-12-25 06:55:16

shengcor
Member
Registered: 2011-12-25
Posts: 4

Re: open-vm-tool compilation failed

@itsbrad212 Thanks for your reply:-)

The Werror options is turned on everywhere. I turned off configure, Makefile in the root, and Makefile in modules/linux/vmxnet/Makefile, but gcc make still complained the same thing,

 CC [M]  /home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.o
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c: In function ‘vmxnet_map_pkt’:
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2045:2: error: implicit declaration of function ‘skb_frag_size’ [-Werror=implicit-function-declaration]
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2057:42: error: request for member ‘p’ in something not a structure or union
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2087:36: error: request for member ‘p’ in something not a structure or union
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c: In function ‘vmxnet_rx_frags’:
/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.c:2589:10: error: implicit declaration of function ‘__skb_frag_set_page’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

make[4]: *** [/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet/vmxnet.o] Error 1
make[3]: *** [_module_/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet] Error 2
make[3]: Leaving directory `/usr/src/linux-3.1.5-1-ARCH'
make[2]: *** [vmxnet.ko] Error 2
make[2]: Leaving directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules/linux/vmxnet'
make[1]: *** [vmxnet] Error 2
make[1]: Leaving directory `/home/shengc/Downloads/open-vm-tools-2011.12.20-562307/modules'
make: *** [all-recursive] Error 1

I read a post here  that someone has successfully compiled open-vm-toolbox before, so I thought I could too...

I think I will just report this to the corresponding team.

Last edited by shengcor (2011-12-25 06:56:23)

Offline

#4 2011-12-25 07:14:21

shengcor
Member
Registered: 2011-12-25
Posts: 4

Re: open-vm-tool compilation failed

BTW, I just realized the open-vm-tools I installed using pacman are pretty new

[shengc@arch open-vm-tools-2011.12.20-562307]$ pacman -Q open-vm-tools-modules open-vm-tools
open-vm-tools-modules 2011.11.20-2
open-vm-tools 2011.11.20-1

I am using Vmware fusion 4 on OSX 10.7.2. I still cannot make my sound and host-client copy/paste work...

Last edited by shengcor (2011-12-25 07:14:45)

Offline

#5 2012-04-04 00:49:07

timsears
Member
Registered: 2011-09-05
Posts: 3

Re: open-vm-tool compilation failed

I just upgraded to osx 10.7 and vmware fusion 4 and have no luck with open-vm-tools. Any tips would be appreciated.

Offline

Board footer

Powered by FluxBB