VMware

This Question is Answered

2 "helpful" answers available (6 pts)
7 Replies Last post: Jan 5, 2006 9:21 AM by der_schreiner  

Workstation 5.5 will not build on Ubuntu Dapper Host (2.6.15-10-k7) posted: Jan 1, 2006 12:39 PM

Click to view jb606's profile Novice 4 posts since
Dec 9, 2005
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.

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

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.15-10-k7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.15-10-k7'
CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config3/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config3/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config3/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config3/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config3/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config3/vmmon-only/common/task.o
CC [M] /tmp/vmware-config3/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o
In file included from include/asm/bitops.h:10,
from /tmp/vmware-config3/vmmon-only/./include/vcpuset.h:74,
from /tmp/vmware-config3/vmmon-only/./include/modulecall.h:22,
from /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.c:15:
include/asm/alternative.h:7: error: syntax error before 'u8'
include/asm/alternative.h:7: warning: no semicolon at end of struct or union
include/asm/alternative.h:8: warning: type defaults to 'int' in declaration of 'replacement'
include/asm/alternative.h:8: warning: data definition has no type or storage class
include/asm/alternative.h:9: error: syntax error before 'cpuid'
include/asm/alternative.h:9: warning: type defaults to 'int' in declaration of 'cpuid'
include/asm/alternative.h:9: warning: data definition has no type or storage class
include/asm/alternative.h:10: error: syntax error before 'instrlen'
include/asm/alternative.h:10: warning: type defaults to 'int' in declaration of 'instrlen'
include/asm/alternative.h:10: warning: data definition has no type or storage class
include/asm/alternative.h:11: error: syntax error before 'replacementlen'
include/asm/alternative.h:11: warning: type defaults to 'int' in declaration of 'replacementlen'
include/asm/alternative.h:11: warning: data definition has no type or storage class
include/asm/alternative.h:12: error: syntax error before 'pad'
include/asm/alternative.h:12: warning: type defaults to 'int' in declaration of 'pad'
include/asm/alternative.h:12: warning: data definition has no type or storage class
make[2]: *** [/tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o] Error 1
make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-10-k7'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config3/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.

Any Ideas?

Message was edited by:
jb606
Click to view petr's profile Champion VMware Employees 7,223 posts since
Jul 10, 2003
I would say that your kernel headers are broken - problems occur in /lib/modules/2.6.15-10-k7/build/include/asm/alternative.h which is distributed with your kernel sources. Most probably this file is missing #include <asm/types.h>.
Click to view KevinG's profile Guru VMware Employees User Moderators 16,980 posts since
Jan 8, 2004
Since Ubuntu Dapper Host (2.6.15-10-k7) is not a supported host OS. I believe that you will need to download and install Petr's any-any-update patch if you insist on using this kernel.
Click to view petr's profile Champion VMware Employees 7,223 posts since
Jul 10, 2003
I doubt using any-any-update will help in this case. It will only make things worse.
Click to view RDPetruska's profile Guru User Moderators vExpert 15,886 posts since
Jan 11, 2005
Since Ubuntu Dapper Host (2.6.15-10-k7) is not a
supported host OS. I believe that you will need to
download and install Petr's any-any-update patch if
you insist on using this kernel.

... Only if Petr's updated/released an any-any-update-97 or better ;-)
Click to view JRaven's profile Novice 6 posts since
Feb 25, 2005
To fix the problem, just plop this at the beginning of alternative.h...

#ifndef u8
#define u8 unsigned char
#endif

... apparently VMware is QA'ing the new headers for Dapper.
Click to view der_schreiner's profile Lurker 1 posts since
Jan 5, 2006
Thank you, after i write the include line, vmware-config.pl works fine on 2.6.15-11-686

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities