Saída incomum do vmware.modconfig-console

1

Ao executar um arquivo em lote que criei para iterar diretórios recursivos de / tentando encontrar os cabeçalhos do Kernel para vmware-modconfig-console em execução no openSUSE, quando se deparar com / usr / include / ele mostrará o abaixo

    /usr/bin/lib/vmware-tools/sbin64/vmware-modconfig-console --validate-kernel-headers
     -k 3.4.6-2.10-desktop "/usr/include" -- -l "/usr/bin/lib/vmware-tools/"

    In file included from <stdin>:2:0:
    /usr/include/linux/version.h:2:2: error: #error
    "======================================================="
    /usr/include/linux/version.h:3:2: error: #error "You should not include /usr/include
    /{linux,asm}/ header"
    /usr/include/linux/version.h:4:2: error: #error "files directly for the compilation of
     kernel modules."
    /usr/include/linux/version.h:5:2: error: #error ""
    /usr/include/linux/version.h:6:2: error: #error "glibc now uses kernel header files
     from a well-defined"
    /usr/include/linux/version.h:7:2: error: #error "working kernel version (as recommended
     by Linus Torvalds)"
    /usr/include/linux/version.h:8:2: error: #error "These files are glibc internal and may
     not match the"
    /usr/include/linux/version.h:9:2: error: #error "currently running kernel. They should
     only be"
    /usr/include/linux/version.h:10:2: error: #error "included via other system header 
     files - user space"
    /usr/include/linux/version.h:11:2: error: #error "programs should not directly include
     <linux/*.h> or"
    /usr/include/linux/version.h:12:2: error: #error "<asm/*.h> as well."
    /usr/include/linux/version.h:13:2: error: #error ""
    /usr/include/linux/version.h:14:2: error: #error "Since Linux 2.6, the kernel module
     build process has been"
    /usr/include/linux/version.h:15:2: error: #error "updated such that users building
     modules should not typically"
    /usr/include/linux/version.h:16:2: error: #error "need to specify additional include 
     directories at all."
    /usr/include/linux/version.h:17:2: error: #error ""
    /usr/include/linux/version.h:18:2: error: #error "To build kernel modules, ensure you
     have the build environment "
    /usr/include/linux/version.h:19:2: error: #error "available either via the kernel-devel
     and kernel-<flavor>-devel "
    /usr/include/linux/version.h:20:2: error: #error "packages or a properly configured
     kernel source tree."
    /usr/include/linux/version.h:21:2: error: #error ""
    /usr/include/linux/version.h:22:2: error: #error "Then, modules can be built using:"
    /usr/include/linux/version.h:23:2: error: #error "make -C <path> M=/home/abuild/
     rpmbuild/BUILD/linux-glibc-devel-3.4"
    /usr/include/linux/version.h:24:2: error: #error ""
    /usr/include/linux/version.h:25:2: error: #error "For the currently running kernel
     there will be a symbolic "
    /usr/include/linux/version.h:26:2: error: #error "link pointing to the build 
     environment located at "
    /usr/include/linux/version.h:27:2: error: #error "/lib/modules/2.6.37.6-0.11-xen/build
     for use as <path>."
    /usr/include/linux/version.h:28:2: error: #error ""
    /usr/include/linux/version.h:29:2: error: #error "If you are seeing this message, your
     environment is "
    /usr/include/linux/version.h:30:2: error: #error "not configured properly. "
    /usr/include/linux/version.h:31:2: error: #error ""
    /usr/include/linux/version.h:32:2: error: #error "Please adjust the Makefile
     accordingly."
    /usr/include/linux/version.h:33:2: error: #error
    "======================================================="

Esta parece ser uma cópia quase exata do conteúdo de /usr/include/linux/version.h, mas o que não consigo descobrir é por que este subdiretório está fazendo com que a ferramenta vmware-modconfig-console ecoe conteúdo de um arquivo em um subdiretório para stdout ??

    
por user66001 17.12.2012 / 01:52

0 respostas