Unable to build the vmmon module while installing VMware

Hi, I am trying to install VMWare Workstation 6.0.4 (the latest version as far as I know) into Suse 11.0. When running /usr/bin/vmware-config.pl it tries to build the necessary modules. Everything seems to go fine except for the vmmon module.

This is what I get:

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for 
your system (you need to have a C compiler installed on your system)? [yes] 

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.3.1", while you are trying to use 
"/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware 
Workstation may crash if you'll continue. Please try to use exactly same 
compiler as one used for building your kernel. Do you want to go with compiler 
"/usr/bin/gcc" version "4.3" anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.26.3-default/build/include]                   

Extracting the sources of the vmmon module.

Building the vmmon module.

Unknown VMware Workstation 6.0.4 build 93057 detected. Building for Workstation 6.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config20/vmmon-only'
make -C /lib/modules/2.6.26.3-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/packages/BUILD/kernel-2.6.26.3default'
CC [M]  /tmp/vmware-config20/vmmon-only/linux/driver.o
/tmp/vmware-config20/vmmon-only/linux/driver.c:171: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config20/vmmon-only/linux/driver.c:172: warning: initialization from incompatible pointer type
/tmp/vmware-config20/vmmon-only/linux/driver.c:175: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config20/vmmon-only/linux/driver.c:176: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config20/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config20/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/kernel-2.6.26.3default'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config20/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please 
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

I have these packages installed:

gcc
gcc-c++
binutils
binutils-devel
linux-kernel-headers
kernel-source
make

i’ve just update to a new kernel

Output of uname -r:

2.6.26.3-default

I ran those commands as suggested and got…

rpm -qa|grep kernel:

kernel-syms-2.6.25.11-0.1
linux-kernel-headers-2.6.25-8.1
kernel-2.6.26.3default-1
kernel-default-2.6.25.11-0.1
kernel-source-2.6.25.11-0.1

Has anyone else had this problem or know how to fix it? I’m stuck!!

Look for the latest vmware-any-any patch.

How to install VMWare in 2.6.26 linux kernel - vmkernelnewbies | Google Groups

thanks a lot :wink: