After I upgraded my Ubuntu from version 7.04 to 7.10. I have a big problem on program vmware server program . This program returns error message after I run vmware command. This is error message :
sing 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config2/vmmon-only’ make -C /lib/modules/2.6.22-14-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic’ CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o CC [M] /tmp/vmware-config2/vmmon-only/linux/hostif.o CC [M] /tmp/vmware-config2/vmmon-only/common/cpuid.o CC [M] /tmp/vmware-config2/vmmon-only/common/hash.o CC [M] /tmp/vmware-config2/vmmon-only/common/memtrack.o CC [M] /tmp/vmware-config2/vmmon-only/common/phystrack.o CC [M] /tmp/vmware-config2/vmmon-only/common/task.o cc1plus: warning: command line option “-Wdeclaration-after-statement” is valid for C/ObjC but not for C++ cc1plus: warning: command line option “-Wno-pointer-sign” is valid for C/ObjC but not for C++ cc1plus: warning: command line option “-Wstrict-prototypes” is valid for Ada/C/ObjC but not for C++ cc1plus: warning: command line option “-ffreestanding” is valid for C/ObjC but not for C++ include/asm/page.h: In function ‘pte_t native_make_pte(long unsigned int)’: include/asm/page.h:112: error: expected primary-expression before ‘)’ token include/asm/page.h:112: error: expected ‘;’ before ‘{’ token include/asm/page.h:112: error: expected primary-expression before ‘.’ token include/asm/page.h:112: error: expected `;’ before ‘}’ token make[2]: *** [/tmp/vmware-config2/vmmon-only/common/task.o] Error 1 make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic’ make: *** [vmmon.ko] Error 2 make: Leaving directory `/tmp/vmware-config2/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 fix this problem by install new patch [vmware-any-any-update114.tar.gz] of vmware , you can download this file from this site :
http://platan.vc.cvut.cz/ftp/pub/vmware/
After you downloaded , you unzip this file and run file runme.pl.
During run this script , you can use default of answer.
I think this problem happen from , my Ubuntu has new kernel after I upgraded Ubuntu from version 7.04 to 7.10 but my vmware program doesn’t compatible new kernal.