Contributor
Contributor

Modules compilation failed on Linux 2.6.30 kernel

Jump to solution

Hello,

I'm on the last development kernel (2.6.30rc4) and the compilation of modules failed.

I have read the post from this discussion : http://communities.vmware.com/message/1236652

The attached file named souce.tar.gz compile correctly this modules :

vmmon-only
vmnet-only

But the module vmblock-only fail on compilation with this error :

Using 2.6.x kernel build system.

make: entrant dans le répertoire « /tmp/vmware-root/modules/vmblock-only »

make -C /lib/modules/2.6.30-020630rc4-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.30-020630rc4-generic »

CC /tmp/vmware-root/modules/vmblock-only/linux/block.o

CC /tmp/vmware-root/modules/vmblock-only/linux/control.o

/tmp/vmware-root/modules/vmblock-only/linux/control.c: In function ‘SetupProcDevice’:

/tmp/vmware-root/modules/vmblock-only/linux/control.c:159: error: ‘struct proc_dir_entry’ has no member named ‘owner’

/tmp/vmware-root/modules/vmblock-only/linux/control.c:171: error: ‘struct proc_dir_entry’ has no member named ‘owner’

make[2]: *** Erreur 1

make[1]: *** Erreur 2

make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.30-020630rc4-generic »

make: *** http://vmblock.ko Erreur 2

make: quittant le répertoire « /tmp/vmware-root/modules/vmblock-only »

Unable to install vmblock

Operating System : Ubuntu 9.04 x86-64 (Jaunty)

Runnng kernel : Linux 2.6.30-020630rc4-amd64 (from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30-rc4/ )

Software : VMware-Player-2.5.2-156735.x86_64

I listen for any tests

Bye bye ...

0 Kudos
1 Solution

Accepted Solutions
Enthusiast
Enthusiast

Hi! I started that thread on the other forum that you mentioned.

I haven't used Player, but here's a patch for VMware Workstation 6.5.2 for Linux 2.6.30 kernel:

http://communities.vmware.com/thread/208963

This should help with module problems on 2.6.30. I tested on Linux 2.6.30-rc4.

Do Player and Workstation share the same modules?

Josh

View solution in original post

0 Kudos
4 Replies
Contributor
Contributor

I have fix the problem.

In the file vmblock-only/linux/control.c

Comment the lines :

159 : //controlProcDirEntry->owner = THIS_MODULE;
171 : //controlProcMountpoint->owner = THIS_MODULE;

After, all module compile successfully and vmplayer run on 2.6.30

I attached the correct source directory for compile on this kernel.

Untar this source directory and put it on /usr/lib/vmware/modules

Bye,

0 Kudos
Enthusiast
Enthusiast

Hi! I started that thread on the other forum that you mentioned.

I haven't used Player, but here's a patch for VMware Workstation 6.5.2 for Linux 2.6.30 kernel:

http://communities.vmware.com/thread/208963

This should help with module problems on 2.6.30. I tested on Linux 2.6.30-rc4.

Do Player and Workstation share the same modules?

Josh

View solution in original post

0 Kudos
Contributor
Contributor

Hi,

I don't know if the kernel modules are the same from Workstation and Player, but probably yes.

Because, I run a binary from a source directory of Workstation (downloaded on this forum).

Bye,

0 Kudos
Contributor
Contributor

You're a star, thank you! You just saved me a significant amount of time at a critical moment. Thanks again!

0 Kudos