QUOTE: |
Trying to find a suitable vmhgfs module for your running kernel. None of the pre-built vmhgfs modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmhgfs module for your system (you need to have a C compiler installed on your system)? [yes] Extracting the sources of the vmhgfs module. Building the vmhgfs module. Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config2/vmhgfs-only' make -C /lib/modules/2.6.22-14-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic' CC [M] /tmp/vmware-config2/vmhgfs-only/backdoor.o CC [M] /tmp/vmware-config2/vmhgfs-only/backdoorGcc32.o CC [M] /tmp/vmware-config2/vmhgfs-only/bdhandler.o CC [M] /tmp/vmware-config2/vmhgfs-only/cpName.o CC [M] /tmp/vmware-config2/vmhgfs-only/cpNameLinux.o CC [M] /tmp/vmware-config2/vmhgfs-only/cpNameLite.o CC [M] /tmp/vmware-config2/vmhgfs-only/dbllnklst.o CC [M] /tmp/vmware-config2/vmhgfs-only/dentry.o CC [M] /tmp/vmware-config2/vmhgfs-only/dir.o CC [M] /tmp/vmware-config2/vmhgfs-only/eventManager.o CC [M] /tmp/vmware-config2/vmhgfs-only/file.o CC [M] /tmp/vmware-config2/vmhgfs-only/filesystem.o /tmp/vmware-config2/vmhgfs-only/filesystem.c: In function 『HgfsInitFileSystem』: /tmp/vmware-config2/vmhgfs-only/filesystem.c:582: error: too few arguments to function 『kmem_cache_create』 /tmp/vmware-config2/vmhgfs-only/filesystem.c:593: error: too few arguments to function 『kmem_cache_create』 make[2]: *** [/tmp/vmware-config2/vmhgfs-only/filesystem.o] Error 1 make[1]: *** [_module_/tmp/vmware-config2/vmhgfs-only] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic』 make: *** [vmhgfs.ko] Error 2 make: Leaving directory `/tmp/vmware-config2/vmhgfs-only』 Unable to build the vmhgfs module. The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.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 Enter key to continue ] |
QUOTE: |
hgfsInodeCache = compat_kmem_cache_create("hgfsInodeCache", sizeof (HgfsInodeInfo), 0, SLAB_HWCACHE_ALIGN, HgfsInodeCacheCtor); |
QUOTE: |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR) #define compat_kmem_cache_create(name, size, align, flags, ctor) kmem_cache_create(name, size, align, flags, ctor, NULL) #else #define compat_kmem_cache_create(name, size, align, flags, ctor) kmem_cache_create(name, size, align, flags, ctor) #endif |
QUOTE: |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR) |
QUOTE: |
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR) |
QUOTE: |
Bug fixed: CC [M] /tmp/vmware-config3/vmhgfs-only/filesystem.o /tmp/vmware-config3/vmhgfs-only/filesystem.c: En la función 『HgfsInitFileSystem』: /tmp/vmware-config3/vmhgfs-only/filesystem.c:582: error: muy pocos argumentos para la función 『kmem_cache_create』 /tmp/vmware-config3/vmhgfs-only/filesystem.c:593: error: muy pocos argumentos para la función 『kmem_cache_create』 make[2]: *** [/tmp/vmware-config3/vmhgfs-only/filesystem.o] Error 1 make[1]: *** [_module_/tmp/vmware-config3/vmhgfs-only] Error 2 make[1]: se sale del directorio `/usr/src/linux-headers-2.6.22-14-generic' make: *** [vmhgfs.ko] Error 2 make: se sale del directorio `/tmp/vmware-config3/vmhgfs-only' Unable to build the vmhgfs module. Software necesario - sudo aptitude install build-essential linux-headers-$(uname -r) vmwaretools - cd /tmp - tar -xzvf VMwareTools-6.0.2-59824.tar.gz - cd vmware-tools-distrib/lib/modules/source - cp vmhgfs.tar vmhgfs.tar.old - tar xvf vmhgfs.tar - cd vmhgfs-only - chmod 644 compat_slab.h - vi compat_slab.h Search-> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR) Fix-> #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR) Save Chages - chmod 444 compat_slab.h - cd .. - rm vmhgfs.tar - tar cvf vmhgfs.tar vmhgfs-only - cd /tmp/vmware-tools-distrib - sudo ./vmware-install.pl Enjoy! |
[火星人 ] VMWare 6安裝VMWare Tools for Linux的一個問題已經有645次圍觀