VMware Communities > VMTN > Desktop Products > VMware Player > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 Replies Last post: Apr 10, 2008 2:40 AM by OnOffPT
Reply

Problem Installing into Ubuntu 8.04 RC Hardy Heron

Mar 26, 2008 8:08 PM

Click to view neilford's profile Enthusiast neilford 44 posts since
Sep 2, 2007

I was running the install when this popped up. I am not sure what to do, at this point.

Thanks.

neilford

In file included from include/asm/bitops.h:2,
from /tmp/vmware-config1/vmmon-only/./include/vcpuset.h:74,
from /tmp/vmware-config1/vmmon-only/./include/modulecall.h:23,
from /tmp/vmware-config1/vmmon-only/common/vmx86.h:18,

from /tmp/vmware-config1/vmmon-only/common/hostif.h:18,
from /tmp/vmware-config1/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-config1/vmmon-only/common/cpuid.o] Error 1
make[1]: *** _module_/tmp/vmware-config1/vmmon-only Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-12-generic'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-config1/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.

Reply Re: Problem Installing into Ubuntu 8.04 RC Hardy Heron Apr 10, 2008 2:40 AM
Click to view OnOffPT's profile Lurker OnOffPT 1 posts since
Apr 10, 2008

VMWare 6 and Ubuntu Hardy: vmmon compile error


Just a quick post to documentate how eitch got his VMWare config to work:

Problem: include/asm/bitops_32.h:9:2: error: #error only <linux/bitops.h> can be included directly, and vmmon-only compile failes

Solution: change line 74 in vmmon-only source file to read: #include “linux/bitops.h”

Steps:

  1. cd /usr/lib/vmware/modules/source
  2. cp vmmon.tar vmmon.tar.orig
  3. sudo tar xvf vmmon.tar
  4. cd vmmon-only/include/
  5. sudo vi vcpuset.h
  6. change line 74 from: #include “asm/bitops.h” to: #include “linux/bitops.h”
  7. rm vmmon.tar (return to the folder where you decompressed the tar file)
  8. sudo tar cvf vmmon.tar vmmon-only/
  9. sudo rm -rf vmmon-only/
  10. sudo vmware-config.pl

That’s it, the compile will work now and vmware should be usable as normal
eitch

source: http://eitchpress.eitchnet.ch/?p=13

All credits go to Eitch . Thanks.

Actions