dmitton
Contributor
Contributor

Well, I'm back! 2.6.25 was released today and anothe vmware compile issue! Does anyone have a fix?

The error appears a little different this time ...

CC /tmp/vmware-config2/vmmon-only/common/task.o

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

cc1plus: warning: command line option "-Werror-implicit-function-declaration" is valid for C/ObjC but not for C++

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(pteval_t)':

include/asm/page.h:128: error: expected primary-expression before ')' token

include/asm/page.h:128: error: expected ';' before '{' token

include/asm/page.h:128: error: expected primary-expression before '.' token

include/asm/page.h:128: error: expected `;' before '}' token

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.25'

make: *** http://vmmon.ko Error 2

make: Leaving directory `/tmp/vmware-config2/vmmon-only'

Unable to build the vmmon module.

Execution aborted.

Thanks in advance!

Reply
0 Kudos
mkossmann
Enthusiast
Enthusiast

I'am not aware of any patches for older versions of vmware. But vmware-beta 6.5 seems to work with 2.6.25.

Reply
0 Kudos
dmitton
Contributor
Contributor

Reply ... part 1 of 2!

Thanks for the response. Is it possible you could make your vmblock.tar, vmmon.tar and vmnet.tar files available?

Email or posted some where so that I could check them out?

Reply
0 Kudos
dmitton
Contributor
Contributor

Reply part 2 of 2 ...

I have made some edits and gotten the original sources to compile and work (with my work spaces) under kernel 2.6.25.

Simply, I made these edits:

- tar -xvf vmmon.tar

vi vmmon-only/common/hostKernel.h +56 and remove "include <asm/page.h>"

tar -cvf vmmon.tar vmmon-only/

- tar -xvf vmnet.tar

vi vmnetInt.h +79 and remove entire "SET_SK_DEAD" declaration.

vi bridge.c +949 and remove /* SET_SK_DEAD(bridge->sk, 1); */

vi filter.c +48 and remove /* .hooknum = NF_IP_LOCAL_IN, */

vi filter.c +53 and remove /* .hooknum = NF_IP_POST_ROUTING, */

vi filter.c +233 and remove /* transmit = (hooknum == NF_IP_POST_ROUTING);*/

tar -cvf vmnet.tar vmnet-only/

Then I did the normal `/usr/bin/vmware-config.pl`

Reply
0 Kudos
jprog
Contributor
Contributor

same problem with Ubuntu 8.0.4 Hardy

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmmon-only'

make -C /lib/modules/2.6.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'

CC /tmp/vmware-config0/vmmon-only/linux/driver.o

In file included from /tmp/vmware-config0/vmmon-only/./include/vmware.h:25,

from /tmp/vmware-config0/vmmon-only/linux/driver.c:48:

my config:

Linux aphrodite 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux

VMware Workstation 6.0.0 build-45731

tried with[ vmware-any-any-update115a.tgz|http://rtr.ca/vmware-2.6.24/vmware-any-any-update115a.tgz] 01-Dec-2007 ( http://rtr.ca/vmware-2.6.24/ )

then vmware started, but starting a vm guest system: Version mismatch with vmmon module, expecting 161.0, got 167.0.

... Try restinalling VMware Workstation ...

Reply
0 Kudos
jprog
Contributor
Contributor

fixed by

1) downloaded the latest VMware version:

Latest Released Version:6.0.2 |10/18/07 |59824 |210 MB

2) try setup -> failed with the same compile error as above

3) install any-any-patch -> works

works for me.

Reply
0 Kudos
dmitton
Contributor
Contributor

First off, there was an exploit found in kernel 2.6.24, I think you should be using at least kernel 2.6.24.2. See http://forums.theplanet.com/index.php?showtopic=89616 and http://www.milw0rm.com/exploits/5093.

Then, kernel 2.6.24.x has a separate solution, I used the source from http://rtr.ca/vmware-2.6.24/, the file 115a any-any update.

Now, this solution may fix 2.6.24.x as well as 2.6.25. I finally just signed up for and downloaded VMWare Server 2.0 Beta 2, unpacked it, extracted the module source and used those. They compiled perfectly.

Good luck!

Reply
0 Kudos
jprog
Contributor
Contributor

yes, thanks 115a any-any update works for me.

Reply
0 Kudos