VMware Cloud Community
donypie
Contributor
Contributor

Vmtools compilation problem with vmmemctl

Hi all,

I try to compile the vmtools on a vmwesx 3.0.1 with a RedHat EL 5 Guest. It does not work, I have the error msg :

\----


What is the location of the directory of C header files that match your running

kernel?

Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config2/vmmemctl-only'

make -C /usr/src/kernels/2.6.18-8.1.4.el5-i686/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.4.el5-i686'

CC /tmp/vmware-config2/vmmemctl-only/os.o

In file included from /tmp/vmware-config2/vmmemctl-only/os.c:26:

include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.

In file included from /tmp/vmware-config2/vmmemctl-only/os.c:41:

/tmp/vmware-config2/vmmemctl-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined

/tmp/vmware-config2/vmmemctl-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined

In file included from /tmp/vmware-config2/vmmemctl-only/os.c:41:

/tmp/vmware-config2/vmmemctl-only/compat_wait.h:60: error: conflicting types for âpoll_initwaitâ

include/linux/poll.h:62: error: previous declaration of âpoll_initwaitâ was here

make[2]: *** Error 1

make[1]: *** \[_module_/tmp/vmware-config2/vmmemctl-only] Error 2

make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.4.el5-i686'

make: *** \[vmmemctl.ko] Error 2

make: Leaving directory `/tmp/vmware-config2/vmmemctl-only'

Unable to build the vmmemctl module.

\----


Can you please help me ?

Does anybody know how to compile the Vmtools with a Centos 5 or RedHat 5 guest ?

Thanks.

Pierre.

Reply
0 Kudos
1 Reply
kriewald
Contributor
Contributor

Just copy the "include.h" file from your last working kernel or write this to

/usr/src/kernels/2.6.18-8.1.4.el5-i686/include/config.h (/usr/src/kernels/<kernel-name>/include/config.h)[code]#ifndef LINUXCONFIG_H

#define LINUXCONFIG_H

#include <linux/autoconf.h>

#endif[/code]

After this all modules compiled very well @ my Gentoo VMs with Kernel 2.6.20 on ESX 3.01 Build 42829 , just the vmhgfs filesystem driver did not work. But I don't need this.

Reply
0 Kudos