Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd April 2008, 13:51
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Question vmware workstation kernel 2.6.24 compile error

Hi Forumers,

i am experiencing troubles building the vmware workstation module on my linux PC, i think that it has something to do with the kernel version i use because on earlier version there was no such problem present.

Software i use:
Debian sid, kernel 2.4.24 build from the debian source package gcc-4.2 (also tried with debian precompiled image linux-image-2.6.24-1-686)
VMware-workstation-6.0.3-80004.i386 (also tried with VMware-workstation-6.0.2-59824.i386)

Code:
Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.24/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-source-2.6.24'
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/hostif.o
/tmp/vmware-config0/vmmon-only/linux/hostif.c: In function ‘HostIF_BrokenCPUHelper’:
/tmp/vmware-config0/vmmon-only/linux/hostif.c:3056: warning: passing argument 1 of ‘HostIFBrokenCPUHelper’ discards qualifiers from pointer target type
  CC [M]  /tmp/vmware-config0/vmmon-only/common/comport.o
  CC [M]  /tmp/vmware-config0/vmmon-only/common/cpuid.o
In file included from include/asm/bitops.h:2,
                 from /tmp/vmware-config0/vmmon-only/./include/vcpuset.h:74,
                 from /tmp/vmware-config0/vmmon-only/./include/modulecall.h:23,
                 from /tmp/vmware-config0/vmmon-only/common/vmx86.h:18,
                 from /tmp/vmware-config0/vmmon-only/common/hostif.h:18,
                 from /tmp/vmware-config0/vmmon-only/common/cpuid.c:14:
include/asm/bitops_32.h:9:2: error: #error only <linux/bitops.h> can be included directly
make[2]: *** [/tmp/vmware-config0/vmmon-only/common/cpuid.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.24'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/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.
does anybody have an idea how can i fix that?
Reply With Quote
Sponsored Links
  #2  
Old 23rd April 2008, 16:58
o.meyer o.meyer is offline
Senior Member
 
Join Date: Aug 2007
Posts: 167
Thanks: 2
Thanked 24 Times in 23 Posts
Default

Hi blocker,

please have a look at http://www.howtoforge.com/vmware-ser...-kernel-2.6.24 maybe this will also work for Debian.

Best regards,

Olli
Reply With Quote
  #3  
Old 24th April 2008, 09:50
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

hmm it looks like that the tread you posted is for vmware server, and i would like to have vmware workstation installed....
Reply With Quote
  #4  
Old 24th April 2008, 15:00
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

I have tried vmware server, your walktrough works perfect also on debian!
Thanks!
Reply With Quote
  #5  
Old 28th April 2008, 14:59
rmarrs rmarrs is offline
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Works with VMWare Workstation as well

I just tested this on Hardy Heron using VMWare Workstation. Works fine, because the kernel modules are what wouldn't build. Doesn't matter which scale of VMWare you have, they'll all build the same kernel modules.
Reply With Quote
  #6  
Old 3rd May 2008, 19:49
bnv bnv is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Version mismatch

For me the vmmon and vmnet modules compile using the proposed solution, but my virtual machine will not start due to a version mismatch with vmmon module: expecting 167.0, got 161.0. VMWare Workstation 6.02 build-59824 and Kubuntu kernel 2.6.24-16-generic.
Reply With Quote
  #7  
Old 3rd May 2008, 20:16
bnv bnv is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Smile Patched patch

For a working solution for the combination VMWare Workstation 6.02 and host kernel 2.6.24-16, use the patched any-any patch from http://aldeby.org/blog/?p=113
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Apps dayjahone General 19 29th March 2008 17:25
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 20:02
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38
KErnel not showing all my memory Jorem Kernel Questions 8 13th April 2006 12:59
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53


All times are GMT +2. The time now is 10:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.