VMware Communities

VMware player modules won't compile with Linux 3.0.0-1-686-pae

Hi community members,

Last week I upgraded my Linux kernel from 2.6.39 to 3.0.0. This of course

impled that I had to recompile the VMware modules. Compilation, however,
failed with the following error message:

    Using 2.6.x kernel build system.
     make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
     make -C /lib/modules/3.0.0-1-686-pae/build/include/.. SUBDIRS=$PWD
     SRCROOT=$PWD/. \
               MODULEBUILDDIR= modules
     make[1]: Entering directory `/usr/src/linux-headers-3.0.0-1-686-pae'
       CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
     /tmp/vmware-root/modules/vmmon-only/linux/driver.c:783:59: error:
     'SPIN_LOCK_UNLOCKED' undeclared here (not in a function)        
     make[4]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
     make[3]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2      
     make[2]: *** [sub-make] Error 2                                  
     make[1]: *** [all] Error 2    
     make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-1-686-pae'
     make: *** [vmmon.ko] Error 2                                      
     make:uname -a
    Linux transfix.oostum.north 3.0.0-1-686-pae #1 SMP Sat Aug 27 16:41:03 UTC
    2011 i686 GNU/Linux Leaving directory `/tmp/vmware-root/modules/vmmon-only'

I couldn't find hints on either google, the community forums or the knowledge
base. I tried to build the modules on another Debian Linux system running the
3.0.0 kernel, but there compilation failed as well. Compilation on my previous
kernel (2.6.39) went flawlessly.

Is there anything I overlooked? Did I miss something? Maybe you guys have
a suggestion about how to proceed? Of course I can always boot the previous kernel,

but that shouldn't be necessary, I'd think.

0 Kudos
3 Replies

After spending some time browsing for help, I found


Weltall's blog mentions that the patches made available at the above location work also for

linux 3.0.0-rc1.

I downloaded and applied them to my linux 3.0.0-1-686-pae system and there they work fine

too. The modules load and install fine, so the problem has been solved.

The patch is at http://weltall.heliohost.org/wordpress/wp-content/uploads/2011/05/vmware2.6.39patchv3.tar.bz2

and even though it says 2.6.39 it works fine for 3.0.0 as well, AFAICS.

After downloading and extracting the archive you get two files: vmware2.6.39fixedv3.patch and

patch-modules_2.6.39.sh. Simply run ./patch-modules_2.6.39.sh to apply the patches and install the modules.

0 Kudos

I have try this solution with Vmware Workstation and work very well!!!

Good post.


0 Kudos

You know, one thing I can't stand is spending anyting more than about five minutes trying to find out how to un-subscribe from a discussion group.  Can someone give me the URL for getting off this thing?  I'm getting 50 useless e-maiils a day from discussions like this, and I have no idea where I signed up for them.

I'd be embarassed(sp?) if it weren't for the fact that I've seen worse mail-list administration than this before.  Not being able to find the "Off" switch myself is not something I'm gonna' lose any sleep over...

Thanx in advance for any assisance anyone can provide.  Take care,


0 Kudos