Skip navigation
VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
9,549 Views 18 Replies Last post: Sep 28, 2008 4:33 PM by skycrash RSS
1 2 Previous Next
michaeldadmum Novice 18 posts since
Apr 30, 2007
Currently Being Moderated

Jun 8, 2008 6:41 AM

can't compile under linux 2.6.26

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]: *** can't compile under linux 2.6.26 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.

NigelCunningh… Novice 24 posts since
Apr 19, 2007
Currently Being Moderated
1. Jun 23, 2008 7:33 PM in response to: michaeldadmum
Re: can't compile under linux 2.6.26

 

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:
xtknight Lurker 1 posts since
Mar 3, 2007
Currently Being Moderated
2. Jul 9, 2008 1:15 PM in response to: michaeldadmum
Re: can't compile under linux 2.6.26

Thanks a lot.  It works for me in 2.6.26-rc8.

Moonfire Lurker 1 posts since
Feb 7, 2006
Currently Being Moderated
3. Jul 14, 2008 1:41 PM in response to: NigelCunningh…
Re: can't compile under linux 2.6.26

 

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 Re: can't compile under linux 2.6.26  /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]: *** Re: can't compile under linux 2.6.26 Error 2

 

 

 

phaoost Lurker 1 posts since
Jul 21, 2008
Currently Being Moderated
4. Jul 21, 2008 2:39 PM in response to: NigelCunningh…
Re: can't compile under linux 2.6.26

thanks, works fine with 2.6.26

mcgoy Novice 7 posts since
Feb 13, 2006
Currently Being Moderated
5. Jul 22, 2008 9:29 AM in response to: NigelCunningh…
Re: can't compile under linux 2.6.26

Thank you very much!  It worked for me with latest 2.6.26

1abc Novice 4 posts since
Jul 20, 2008
Currently Being Moderated
6. Jul 25, 2008 12:22 AM in response to: mcgoy
Re: can't compile under linux 2.6.26

 

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 Re: can't compile under linux 2.6.26  /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 Re: can't compile under linux 2.6.26  /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!

 

 

 

 

 

 

 

 

vinicius.vbf Novice 7 posts since
Sep 12, 2005
Currently Being Moderated
7. Jul 31, 2008 4:10 PM in response to: 1abc
Re: can't compile under linux 2.6.26

Works for me too. Kernel 2.6.26 final.

pbx06 Lurker 1 posts since
Jul 31, 2008
Currently Being Moderated
8. Jul 31, 2008 9:11 PM in response to: NigelCunningh…
Re: can't compile under linux 2.6.26

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!

pkoning Lurker 2 posts since
Jul 7, 2008
Currently Being Moderated
9. Aug 28, 2008 2:16 PM in response to: 1abc
Re: can't compile under linux 2.6.26

 

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

 

 

 

 

 

---paul

 

 

pkoning Lurker 2 posts since
Jul 7, 2008
Currently Being Moderated
10. Aug 28, 2008 2:17 PM in response to: pkoning
Re: can't compile under linux 2.6.26

 

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

 

 

--paul

 

 

birdie Master 1,073 posts since
Oct 10, 2003
Currently Being Moderated
11. Sep 1, 2008 11:55 AM in response to: pkoning
Re: can't compile under linux 2.6.26

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.

feldgendler Lurker 3 posts since
Sep 21, 2008
Currently Being Moderated
12. Sep 21, 2008 9:28 AM in response to: michaeldadmum
Re: can't compile under linux 2.6.26

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.

Phil=4096 Novice 3 posts since
Sep 19, 2008
Currently Being Moderated
13. Sep 22, 2008 9:16 AM in response to: feldgendler
Re: can't compile under linux 2.6.26

 

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.

 

 

feldgendler Lurker 3 posts since
Sep 21, 2008
Currently Being Moderated
14. Sep 22, 2008 9:45 AM in response to: Phil=4096
Re: can't compile under linux 2.6.26

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?

Bookmarked By (0)

Share This Page

Communities