VMware Communities
oldschooler
Contributor
Contributor

Unable to build the vmblock module error - VMWKS 6.04 and openSUSE 11

sudo /usr/bin/vmware-config.pl

Making sure services for VMware Workstation are stopped.

Stopping VMware services:

Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?

What directory contains your desktop menu entry files? These files have a

.desktop file extension.

In which directory do you want to install the application's icon?

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your

running kernel. Do you want this program to try to build the vmmon module for

your system (you need to have a C compiler installed on your system)?

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.3.1", while you are trying to use

"/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware

Workstation may crash if you'll continue. Please try to use exactly same

compiler as one used for building your kernel. Do you want to go with compiler

"/usr/bin/gcc" version "4.3" anyway? yes

What is the location of the directory of C header files that match your running

kernel?

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.

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

make -C /lib/modules/2.6.25.5-1.1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default'

make -C /usr/src/linux-2.6.25.5-1.1 O=/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default/. modules

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

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

CC /tmp/vmware-config0/vmmon-only/common/comport.o

CC /tmp/vmware-config0/vmmon-only/common/cpuid.o

CC /tmp/vmware-config0/vmmon-only/common/hash.o

CC /tmp/vmware-config0/vmmon-only/common/memtrack.o

CC /tmp/vmware-config0/vmmon-only/common/phystrack.o

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

CC /tmp/vmware-config0/vmmon-only/common/vmciContext.o

CC /tmp/vmware-config0/vmmon-only/common/vmciDatagram.o

CC /tmp/vmware-config0/vmmon-only/common/vmciDriver.o

CC /tmp/vmware-config0/vmmon-only/common/vmciDs.o

CC /tmp/vmware-config0/vmmon-only/common/vmciGroup.o

CC /tmp/vmware-config0/vmmon-only/common/vmciHashtable.o

CC /tmp/vmware-config0/vmmon-only/common/vmciProcess.o

CC /tmp/vmware-config0/vmmon-only/common/vmciResource.o

CC /tmp/vmware-config0/vmmon-only/common/vmciSharedMem.o

CC /tmp/vmware-config0/vmmon-only/common/vmx86.o

CC /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o

LD /tmp/vmware-config0/vmmon-only/vmmon.o

Building modules, stage 2.

MODPOST 1 modules

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.25.5-1.1-obj/x86_64/default'

cp -f vmmon.ko ./../vmmon.o

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

The module loads perfectly in the running kernel.

/dev is dynamic:

Trying to find a suitable vmblock module for your running kernel.

None of the pre-built vmblock modules for VMware Workstation is suitable for

your running kernel. Do you want this program to try to build the vmblock

module for your system (you need to have a C compiler installed on your

system)?

Extracting the sources of the vmblock module.

Building the vmblock module.

Using 2.6.x kernel build system.

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

make -C /lib/modules/2.6.25.5-1.1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default'

make -C /usr/src/linux-2.6.25.5-1.1 O=/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default/. modules

CC /tmp/vmware-config0/vmblock-only/linux/block.o

CC /tmp/vmware-config0/vmblock-only/linux/control.o

CC /tmp/vmware-config0/vmblock-only/linux/dbllnklst.o

CC /tmp/vmware-config0/vmblock-only/linux/dentry.o

/tmp/vmware-config0/vmblock-only/linux/dentry.c: In function ‘DentryOpRevalidate’:

/tmp/vmware-config0/vmblock-only/linux/dentry.c:101: error: ‘struct nameidata’ has no member named ‘dentry’

/tmp/vmware-config0/vmblock-only/linux/dentry.c:101: error: ‘struct nameidata’ has no member named ‘dentry’

/tmp/vmware-config0/vmblock-only/linux/dentry.c:102: error: implicit declaration of function ‘path_release’

make[4]: *** Error 1

make[3]: *** Error 2

make[2]: *** Error 2

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default'

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

make: Leaving directory `/tmp/vmware-config0/vmblock-only'

Unable to build the vmblock module.

The vmblock module enables dragging or copying files from within a guest and

dropping or pasting them onto your host (guest to host drag and drop and file

copy/paste). The rest of the software provided by VMware Workstation is

designed to work independently of this feature (including host to guest drag

and drop and file copy/paste).

If you would like the guest to host drag and drop and file copy/paste features,

you can install the driver by running vmware-config.pl again after making sure

that gcc, binutils, make and the kernel sources for your running kernel are

installed on your machine. These packages are available on your distribution's

installation CD.

I seem to remember having a similar error on my old system and I ended having to edit some config file...

This is 64-bit OS and VMWKS rpm.

Any help appreciated.

0 Kudos
3 Replies
oldschooler
Contributor
Contributor

You know oddly enough after I got that intial error I just finished the install everything appears to be working for me...?:|

0 Kudos
chiefelder
Contributor
Contributor

VMware does work without the vmblock module. However, there have been some changes to the namei.h structures in kernel versions > 2.6.25 which keeps the module from compiling properly. A patch has alredy been introduced in this thread:

Apply the patch to the VMware sources in /usr/lib/vmware/modules/source:

$ tar xvf vmblock.tar

$ patch -p0 <vmblock-2.6.26.patch

$ mv vmblock.tar vmbock.tar.orig

$ tar cf vmblock.tar vmblock-only/

$ vmware-config.pl

Worked perfectly on my openSUSE 11.0 with kernel 2.6.25.11-0.1-pae. Hope that helps.

0 Kudos
oldschooler
Contributor
Contributor

Removed my auto-reply from the internet!

0 Kudos