Problem:

Folgende Fehlermeldung kommt, wenn man auf Ubuntu 8.04 (hardy) vmware-install.pl ausführt:

Extracting the sources of the vsock module.
Building the vsock module.
Using 2.6.x kernel build system.
make: Entering directory `/root/tmp/vmware-config0/vsock-only'
make -C /lib/modules/2.6.24.4-desktop-1mnb/build/include/.. SUBDIRS=$PWD
SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.24.4-desktop-1mnb'
CC [M] /root/tmp/vmware-config0/vsock-only/linux/af_vsock.o
In file included from /root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:92:
/root/tmp/vmware-config0/vsock-only/./include/compat_wait.h:64: error:
conflicting types for ‘poll_initwait’ include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here /root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:260: warning: initialization from incompatible pointer type
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘__VSockVmciCreate’:
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:1789: warning: passing argument 1 of ‘sk_alloc’ makes pointer from integer without a cast
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:1789: warning: passing argument 3 of ‘sk_alloc’ makes integer from pointer without a cast
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:1789: warning: passing argument 4 of ‘sk_alloc’ makes pointer from integer without a cast
make[2]: *** [/root/tmp/vmware-config0/vsock-only/linux/af_vsock.o]
Error 1
make[1]: *** --_module_/root/tmp/vmware-config0/vsock-only-- Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.4-desktop-1mnb'
make: *** http://vsock.ko Error 2
make: Leaving directory `/root/tmp/vmware-config0/vsock-only'
Unable to build the vsock module.

The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and
host. The rest of this software provided by VMware Server is designed to work
independently of this feature. If you wish to have the VSOCK feature 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.
Press the Enter key to continue.

Lösung:

Als erstes drückt man Enter und führt den Rest der Installation bis zum Ende aus.

Es liegt an dem Ubuntu-Kernel, welcher ein paar mehr Informationen enthält.
Um das Problem zu umgehen kann man einfach die Tests in der autoconf ausschalten. Hier die Kurzanleitung:

#Sicherheitskopie anlegen:
cp -p /usr/lib/vmware/modules/source/vsock.tar /usr/lib/vmware/modules/source/vsock.tar.bak
#auspacken
cd /usr/local/src/
tar xf /usr/lib/vmware/modules/source/vsock.tar 
#Aenderungen
cd vsock-only/
sed -i 's/^\#include //' autoconf/*.c 
cd ..
#einpacken
tar cf /usr/lib/vmware/modules/source/vsock.tar vsock-only/*

Nun noch einmal vmware-update.pl starten und immer schön mit der Enter-Taste bestätigen.

Links:

Kategorien:

Stichwörter:

ubuntu · vmware-server · vmware · vsock · autoconf ·