VMware Communities > VMTN > Desktop Products > VMware Workstation > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 Previous Next
18 Replies Last post: Sep 28, 2008 4:33 PM by skycrash
Reply

can't compile under linux 2.6.26

Jun 8, 2008 6:41 AM

Click to view michaeldadmum's profile Novice michaeldadmum 18 posts since
Apr 30, 2007
When I was using VMWare Wkst 6.0.2 and upgraded the kernel to 2.6.25, it doesn't compile anymore. After I upgraded it to Wkst 6.5 Beta 1, it works.

After I upgraded my kernel to 2.6.26-rc1, it doesn't compile anymore again.


Are there any patch?

/tmp/vmware-config0/vmmon-only/linux/driver.c:177: error: unknown field ‘nopage' specified in initializer
/tmp/vmware-config0/vmmon-only/linux/driver.c:178: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** _module_/tmp/vmware-config0/vmmon-only Error 2
make: *** http://vmmon.ko Error 2
For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/go/unsup-linux-products" and
"http://www.vmware.com/go/unsup-linux-tools".

Execution aborted.

Reply Re: can't compile under linux 2.6.26 Jun 23, 2008 7:33 PM
Click to view NigelCunningham's profile Novice NigelCunningham 21 posts since
Apr 19, 2007

I've just had a go at this.

With the attached replacement tarballs (pop them both in /usr/lib/vmware/modules/source after backing up the old files), I resume a suspended machine and access the net from a workstation 6.0.4 installation with a 2.6.26-rc7 kernel. I have not made the #ifdefs right for backwards compatability but apart from that... (Your mileage may vary).

Nigel

Attachments:
Reply Re: can't compile under linux 2.6.26 Jul 9, 2008 1:15 PM
Click to view xtknight's profile Lurker xtknight 1 posts since
Mar 3, 2007
Thanks a lot. It works for me in 2.6.26-rc8.
Reply Re: can't compile under linux 2.6.26 Jul 14, 2008 1:41 PM
in response to: NigelCunningham
Click to view Moonfire's profile Lurker Moonfire 1 posts since
Feb 7, 2006

Hi,

this works not for me.
If i compile this, this works fine, and will use, i get error that this is the wrong version of modules.

I now use the final 2.6.26 and need to build vmware-modules-1.0.0.20.

Is there a way to use?

BR Maik
____________________________

* Preparing vmmon module
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.26/build M=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.26'
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.20/work/vmmon-only/linux/driver.o
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.20/work/vmmon-only/linux/driver.c:197: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.20/work/vmmon-only/linux/driver.c:198: warning: initialization from incompatible pointer type
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.20/work/vmmon-only/linux/driver.o] Error 1
make[2]: *** http://_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.20/work/vmmon-only Error 2
make[1]: *** sub-make Error 2

Reply Re: can't compile under linux 2.6.26 Jul 21, 2008 2:39 PM
in response to: NigelCunningham
Click to view phaoost's profile Lurker phaoost 1 posts since
Jul 21, 2008
thanks, works fine with 2.6.26
Reply Re: can't compile under linux 2.6.26 Jul 22, 2008 9:29 AM
in response to: NigelCunningham
Click to view mcgoy's profile Novice mcgoy 6 posts since
Feb 13, 2006
Thank you very much! It worked for me with latest 2.6.26
Reply Re: can't compile under linux 2.6.26 Jul 25, 2008 12:22 AM
in response to: mcgoy
Click to view 1abc's profile Novice 1abc 4 posts since
Jul 20, 2008

VMWare workstation 6.04 is broken for me since 2.6.22. I use the newest ubuntu with custom kernel 2.6.26 atm.

LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /tmp/vmware-config0/vmmon-only/vmmon.o
see include/linux/module.h for more information
WARNING: "init_mm" [/tmp/vmware-config0/vmmon-only/vmmon.ko] undefined!
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.26'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config0/vmmon.o': -1 Unknown symbol in module
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel. You may want to
rebuild a kernel based on that directory, or specify another directory.

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.

Please help!


Reply Re: can't compile under linux 2.6.26 Jul 31, 2008 4:10 PM
in response to: 1abc
Click to view vinicius.vbf's profile Novice vinicius.vbf 7 posts since
Sep 12, 2005
Works for me too. Kernel 2.6.26 final.
Reply Re: can't compile under linux 2.6.26 Jul 31, 2008 9:11 PM
in response to: NigelCunningham
Click to view pbx06's profile Lurker pbx06 1 posts since
Jul 31, 2008
hi.
i have the beta . + linux 2.6.26 + tuxonice patch
i replaced the source vmmon and vmnet tar.
now my question is : how do you compile the module i was unable to launh any instaler from the /usr/lib/vmware/* dir. i have not found any script helper!
Reply Re: can't compile under linux 2.6.26 Aug 28, 2008 2:16 PM
in response to: 1abc
Click to view pkoning's profile Lurker pkoning 2 posts since
Jul 7, 2008

Same for me, Linux 2.6.23.3 built from the stock sources.

---paul

Reply Re: can't compile under linux 2.6.26 Aug 28, 2008 2:17 PM
in response to: pkoning
Click to view pkoning's profile Lurker pkoning 2 posts since
Jul 7, 2008

Let me clarify that.. I thought the thread would show. I get "init_mm undefined" in vmmon.ko, linux 2.6.26.3.

--paul

Reply Re: can't compile under linux 2.6.26 Sep 1, 2008 11:55 AM
in response to: pkoning
Click to view birdie's profile Expert birdie 604 posts since
Oct 10, 2003
Always updated vmware-any-any-updates

I get "init_mm undefined" in vmmon.ko, linux 2.6.26.3.

It looks like you made a mistake of not including deprecated system calls when building your custom kernel. Please, recompile with CONFIG_UNUSED_SYMBOLS enabled. This option is located in the "Kernel hacking" section.
Reply Re: can't compile under linux 2.6.26 Sep 21, 2008 9:28 AM
Click to view feldgendler's profile Lurker feldgendler 3 posts since
Sep 21, 2008
I've made a patch that seems to get the kernel module to compile and work with 2.6.26.
Now I'd really like VMware to merge it, to save everybody the trouble of applying the patch after every VMware or kernel upgrade.
Reply Re: can't compile under linux 2.6.26 Sep 22, 2008 9:16 AM
in response to: feldgendler
Click to view Phil=4096's profile Novice Phil=4096 3 posts since
Sep 19, 2008

This is great - works a treat ... except I couldn't figure out how to use this "automagically", so I had to extract all the .tars from /usr/lib/vmware/modules/source, patch by hand and re-tar the 3 archives. Then vmware-config.pl works and builds a working system. I'm sure there must be an easier way, but patch couldn't find files and then just didn't do the changes.

This was on Fedora 8, vmware server 1.0.7 installed by rpm.

Phil.

Reply Re: can't compile under linux 2.6.26 Sep 22, 2008 9:45 AM
in response to: Phil=4096
Click to view feldgendler's profile Lurker feldgendler 3 posts since
Sep 21, 2008
Exactly. Applying patches manually is a pain. Does anyone know where to submit patches so that they get included in the next release of VMware?
1 2 Previous Next
Actions