VMware Communities
michaeldadmum
Contributor
Contributor

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]: *** Error 1

make[1]: *** 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.

Tags (3)
0 Kudos
18 Replies
NigelCunningham
Contributor
Contributor

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

0 Kudos
xtknight
Contributor
Contributor

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

0 Kudos
Moonfire
Contributor
Contributor

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 /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]: *** Error 1

make[2]: *** http://_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.20/work/vmmon-only Error 2

make[1]: *** Error 2

0 Kudos
phaoost
Contributor
Contributor

thanks, works fine with 2.6.26

0 Kudos
mcgoy
Contributor
Contributor

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

0 Kudos
1abc
Contributor
Contributor

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 /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" undefined!

CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o

LD /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!

0 Kudos
vinicius_vbf
Contributor
Contributor

Works for me too. Kernel 2.6.26 final.

0 Kudos
pbx06
Contributor
Contributor

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!

0 Kudos
pkoning
Contributor
Contributor

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

---paul

0 Kudos
pkoning
Contributor
Contributor

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

--paul

0 Kudos
birdie
Expert
Expert

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.

0 Kudos
feldgendler
Contributor
Contributor

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.

0 Kudos
Phil_4096
Contributor
Contributor

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.

0 Kudos
feldgendler
Contributor
Contributor

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?

0 Kudos
dhjdhj
Contributor
Contributor

How does one use this patch file?

0 Kudos
dhjdhj
Contributor
Contributor

Nigel - you saved my a THANK YOU

0 Kudos
feldgendler
Contributor
Contributor

Try the normal way,have it stop at compiler error, apply the patch, make again.

0 Kudos
skycrash
Contributor
Contributor

Thanks.. this patches work for me.. (2.6.26-5)

Bye

0 Kudos