raducotescu/vmware-server-linux-2.6.3x-kernel — comment on commit bb26dcecbb1accfc946f543c711f09a8e82c479e
File:  line 0
By consatan:

hi,here is some errors in debian 6.0.3 amd64
============================================================================
root@server:/usr/src# uname -r
2.6.32-5-amd64
root@server:/usr/src# cat /etc/debian_version
6.0.3
root@server:/usr/src# md5sum VMware-server-2.0.2-203138.x86_64.tar.gz
cc7aef813008eeb7150c21547d431b39 VMware-server-2.0.2-203138.x86_64.tar.gz
root@server:/usr/src# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.5-4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.5 (Debian 4.3.5-4)
root@server:/usr/src# aptitude install linux-headers-$(uname -r) build-essential patch
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

root@server:/usr/src# w3m https://github.com/raducotescu/vmware-server-linux-2.6.3x-kernel/downloads
root@server:/usr/src# ls -al
total 463580
drwxr-xr-x 4 root root 4096 Nov 5 17:25 .
drwxr-xr-x 12 root root 4096 Nov 5 2011 ..
-rw-r--r-- 1 root root 252682 Nov 5 14:11 e1000e-1.6.3.tar.gz
drwxr-xr-x 4 root root 4096 Nov 5 14:16 linux-headers-2.6.32-5-amd64
drwxr-xr-x 4 root root 4096 Nov 5 14:15 linux-headers-2.6.32-5-common
lrwxrwxrwx 1 root root 26 Nov 5 14:15 linux-kbuild-2.6.32 -> ../lib/linux-kbuild-2.6.32
-rw-r--r-- 1 root root 10775 Nov 5 17:25 raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.6-0-gbb26dce.tar.gz
-rw-r--r-- 1 root root 474415801 Nov 5 15:13 VMware-server-2.0.2-203138.x86_64.tar.gz
-rw-r--r-- 1 root root 122 Nov 5 15:14 VMware-server-Licensing.txt
root@server:/usr/src# tar -zxf raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.6-0-gbb26dce.tar.gz
root@server:/usr/src# cd raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/
root@server:/usr/src/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce# chmod +x vmware-server-2.0.x-kernel-2.6.3x-install.sh
root@server:/usr/src/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce# ./vmware-server-2.0.x-kernel-2.6.3x-install.sh /usr/src
You have VMware Server archive:
VMware-server-2.0.2-203138.x86_64.tar.gz
cat: /etc/*-release: No such file or directory
cat: /etc/*-release: No such file or directory
cat: /etc/*-release: No such file or directory
Extracting the contents of VMware-server-2.0.2-203138.x86_64.tar.gz
Found .tar file for vmmon module
Found .tar file for vsock module
Found .tar file for vmnet module
Found .tar file for vmci module
Extracting .tar files in order to apply the patch...
Untarring /usr/src/vmware-server-distrib/lib/modules/source/vmmon.tar
Untarring /usr/src/vmware-server-distrib/lib/modules/source/vsock.tar
Untarring /usr/src/vmware-server-distrib/lib/modules/source/vmnet.tar
Untarring /usr/src/vmware-server-distrib/lib/modules/source/vmci.tar
Testing patch...
Creating some simlinks for the newer kernels...
ln: creating symbolic link `/usr/src/linux-headers-2.6.32-5-amd64/include/linux/autoconf.h': File exists
ln: creating symbolic link `/usr/src/linux-headers-2.6.32-5-amd64/include/linux/utsrelease.h': File exists
Applying patch...
Preparing new tar file for vmmon module
Preparing new tar file for vsock module
Preparing new tar file for vmnet module
Preparing new tar file for vmci module
Checking that the compiling will succeed...
Trying to compile vmmon module to see if it works
Performing make in /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only
Using 2.6.x kernel build system.
In file included from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./common/vmx86.h:32,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.h:29,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:101:
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/prefetch.h:14,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/list.h:6,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/module.h:9,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/compat_module.h:27,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:26:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
In file included from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./common/vmx86.h:32,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.h:29,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:101:
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/prefetch.h:14,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/list.h:6,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/module.h:9,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/compat_module.h:27,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:26:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:37:1: warning: "HAVE_UNLOCKED_IOCTL" redefined
In file included from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/compat_fs.h:22,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:34:
/usr/src/linux-headers-2.6.32-5-common/include/linux/fs.h:1480:1: warning: this is the location of the previous definition
In file included from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./common/vmx86.h:32,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./common/hostif.h:32,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:74:
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/thread_info.h:22,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/thread_info.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/preempt.h:9,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/mmzone.h:7,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/gfp.h:4,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/mm.h:8,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/compat_page.h:23,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:32:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c: In function ‘HostIFDoIoctl’:
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:3417: warning: control reaches end of non-void function
In file included from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/common/vmx86.h:32,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/common/vmx86.c:40:
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/thread_info.h:22,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/thread_info.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/preempt.h:9,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/seqlock.h:29,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/time.h:8,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/timex.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/sched.h:56,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/common/vmx86.c:32:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
In file included from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./common/vmx86.h:32,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/vmcore/moduleloop.c:35:
/usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/thread_info.h:22,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/thread_info.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/preempt.h:9,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/seqlock.h:29,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/time.h:8,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/timex.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/sched.h:56,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/./include/compat_sched.h:23,
from /usr/src/vmware-server-distrib/lib/modules/source/vmmon-only/vmcore/moduleloop.c:31:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
Trying to compile vmnet module to see if it works
Performing make in /usr/src/vmware-server-distrib/lib/modules/source/vmnet-only
Using 2.6.x kernel build system.
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:121: warning: data definition has no type or storage class
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:121: warning: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:121: warning: parameter names (without types) in function declaration
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:82: warning: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:82: warning: parameter names (without types) in function declaration
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c: In function ‘VNetFilter_HandleUserCall’:
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:1089: error: ‘filterIoctlSem’ undeclared (first use in this function)
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:1089: error: (Each undeclared identifier is reported only once
/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/filter.c:1089: error: for each function it appears in.)
make[4]: *** [/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only/filter.o] Error 1
make[3]: *** [_module_/usr/src/vmware-server-distrib/lib/modules/source/vmnet-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [vmnet.ko] Error 2
There is a problem compiling the vmnet module after it was patched. :(
============================================================================

I try commit the vmware-server-2.0.x-kernel-2.6.3x-install.sh
268 to 270 lines
because in debian 6.0.3, can't find "/usr/src/linux-headers-`uname -r`/include/generated/autoconf.h" and "utsrelease.h" file.
but the "/usr/src/linux-headers-`uname -r`/include/linux/autoconf.h" and "utsrelease.h" is exist.
and commit the 286 to 302 lines
then I try run the script again.

============================================================================
None of the pre-built vmmon modules for VMware Server 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)? [yes]

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

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.32-5-amd64/build/include]

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.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/./common/vmx86.h:32,
from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:
/tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/prefetch.h:14,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/list.h:6,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/module.h:9,
from /tmp/vmware-config0/vmmon-only/./include/compat_module.h:27,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:26:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
In file included from /tmp/vmware-config0/vmmon-only/./common/vmx86.h:32,
from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:
/tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/prefetch.h:14,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/list.h:6,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/module.h:9,
from /tmp/vmware-config0/vmmon-only/./include/compat_module.h:27,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:26:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
CC [M] /tmp/vmware-config0/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
/tmp/vmware-config0/vmmon-only/linux/hostif.c:37:1: warning: "HAVE_UNLOCKED_IOCTL" redefined
In file included from /tmp/vmware-config0/vmmon-only/./include/compat_fs.h:22,
from /tmp/vmware-config0/vmmon-only/linux/hostif.c:34:
/usr/src/linux-headers-2.6.32-5-common/include/linux/fs.h:1480:1: warning: this is the location of the previous definition
In file included from /tmp/vmware-config0/vmmon-only/./common/vmx86.h:32,
from /tmp/vmware-config0/vmmon-only/./common/hostif.h:32,
from /tmp/vmware-config0/vmmon-only/linux/hostif.c:74:
/tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/thread_info.h:22,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/thread_info.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/preempt.h:9,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/mmzone.h:7,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/gfp.h:4,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/mm.h:8,
from /tmp/vmware-config0/vmmon-only/./include/compat_page.h:23,
from /tmp/vmware-config0/vmmon-only/linux/hostif.c:32:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
/tmp/vmware-config0/vmmon-only/linux/hostif.c: In function ‘HostIFDoIoctl’:
/tmp/vmware-config0/vmmon-only/linux/hostif.c:3417: warning: control reaches end of non-void function
CC [M] /tmp/vmware-config0/vmmon-only/common/comport.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hashFunc.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
In file included from /tmp/vmware-config0/vmmon-only/common/vmx86.h:32,
from /tmp/vmware-config0/vmmon-only/common/vmx86.c:40:
/tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/thread_info.h:22,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/thread_info.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/preempt.h:9,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/seqlock.h:29,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/time.h:8,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/timex.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/sched.h:56,
from /tmp/vmware-config0/vmmon-only/common/vmx86.c:32:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
In file included from /tmp/vmware-config0/vmmon-only/./common/vmx86.h:32,
from /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.c:35:
/tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined
In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/thread_info.h:22,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/thread_info.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/preempt.h:9,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/seqlock.h:29,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/time.h:8,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/timex.h:56,
from /usr/src/linux-headers-2.6.32-5-common/include/linux/sched.h:56,
from /tmp/vmware-config0/vmmon-only/./include/compat_sched.h:23,
from /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.c:31:
/usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
The vmmon module loads perfectly into the running kernel.

None of the pre-built vmci modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmci module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmci module.

Building the vmci module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmci-only'
make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
CC [M] /tmp/vmware-config0/vmci-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmci-only/linux/driverLog.o
CC [M] /tmp/vmware-config0/vmci-only/linux/vmciKernelIf.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciContext.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciDatagram.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciDriver.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciDs.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciEvent.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciGroup.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciHashtable.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciProcess.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciQueuePair.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciResource.o
LD [M] /tmp/vmware-config0/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmci-only/vmci.mod.o
LD [M] /tmp/vmware-config0/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
cp -f vmci.ko ./../vmci.o
make: Leaving directory `/tmp/vmware-config0/vmci-only'
The vmci module loads perfectly into the running kernel.

VMWare config patch VMCI!
`/tmp/vmware-config0/vmci-only/Module.symvers' -> `/tmp/vmware-config0/../Module.symvers'
None of the pre-built vsock modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vsock module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vsock module.

VMWare config patch VSOCK!
`/tmp/vmware-config0/../Module.symvers' -> `/tmp/vmware-config0/vsock-only/Module.symvers'
Building the vsock module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vsock-only'
make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
CC [M] /tmp/vmware-config0/vsock-only/linux/af_vsock.o
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:424: warning: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:424: warning: parameter names (without types) in function declaration
/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘VSockVmci_GetAFValue’:
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:534: error: ‘registrationMutex’ undeclared (first use in this function)
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:534: error: (Each undeclared identifier is reported only once
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:534: error: for each function it appears in.)
/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘__VSockVmciCreate’:
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:2437: error: ‘registrationMutex’ undeclared (first use in this function)
/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘VSockVmciSkDestruct’:
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:2614: error: ‘registrationMutex’ undeclared (first use in this function)
/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘VSockVmciPoll’:
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:3394: error: implicit declaration of function ‘sk_sleep’
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:3394: warning: passing argument 2 of ‘poll_wait’ makes pointer from integer without a cast
/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘VSockVmciDevOpen’:
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:4689: error: ‘registrationMutex’ undeclared (first use in this function)
/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘VSockVmciDevRelease’:
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:4717: error: ‘registrationMutex’ undeclared (first use in this function)
/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘VSockVmciExit’:
/tmp/vmware-config0/vsock-only/linux/af_vsock.c:4887: error: ‘registrationMutex’ undeclared (first use in this function)
make[4]: *** [/tmp/vmware-config0/vsock-only/linux/af_vsock.o] Error 1
make[3]: *** [_module_/tmp/vmware-config0/vsock-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
make: *** [vsock.ko] Error 2
make: Leaving directory `/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.]

Do you want networking for your virtual machines? (yes/no/help) [yes]

Configuring a bridged network for vmnet0.

Please specify a name for this network.
[Bridged] LAN

Your computer has multiple ethernet network interfaces available: eth0, eth1.
Which one do you want to bridge to vmnet0? [eth0]

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

Do you wish to configure another bridged network? (yes/no) [no] yes

Configuring a bridged network for vmnet2.

Please specify a name for this network.
[Bridged] WAN

The following bridged networks have been defined:

. vmnet0 is bridged to eth0
. vmnet2 is bridged to eth1

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no

Do you want to be able to use host-only networking in your virtual machines?
[no]

None of the pre-built vmnet modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmnet module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmnet-only'
make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
CC [M] /tmp/vmware-config1/vmnet-only/driver.o
/tmp/vmware-config1/vmnet-only/driver.c:121: warning: data definition has no type or storage class
/tmp/vmware-config1/vmnet-only/driver.c:121: warning: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’
/tmp/vmware-config1/vmnet-only/driver.c:121: warning: parameter names (without types) in function declaration
CC [M] /tmp/vmware-config1/vmnet-only/hub.o
CC [M] /tmp/vmware-config1/vmnet-only/userif.o
CC [M] /tmp/vmware-config1/vmnet-only/netif.o
CC [M] /tmp/vmware-config1/vmnet-only/bridge.o
CC [M] /tmp/vmware-config1/vmnet-only/filter.o
/tmp/vmware-config1/vmnet-only/filter.c:82: warning: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’
/tmp/vmware-config1/vmnet-only/filter.c:82: warning: parameter names (without types) in function declaration
/tmp/vmware-config1/vmnet-only/filter.c: In function ‘VNetFilter_HandleUserCall’:
/tmp/vmware-config1/vmnet-only/filter.c:1089: error: ‘filterIoctlSem’ undeclared (first use in this function)
/tmp/vmware-config1/vmnet-only/filter.c:1089: error: (Each undeclared identifier is reported only once
/tmp/vmware-config1/vmnet-only/filter.c:1089: error: for each function it appears in.)
make[4]: *** [/tmp/vmware-config1/vmnet-only/filter.o] Error 1
make[3]: *** [_module_/tmp/vmware-config1/vmnet-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to build the vmnet module.

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.

Housekeeping...
Thank you for using the script!
Patch provided by:
Ramon de Carvalho Valle
http://risesecurity.org
updated by sirusdv (http://ubuntuforums.org/member.php?u=1289848)
Script author:
Radu Cotescu
http://radu.cotescu.com
============================================================================

help!!!
p.s. I'm sorry my English.