异常的 vmware.modconfig-console 输出

异常的 vmware.modconfig-console 输出

运行一个批处理文件时,我创建了一个迭代递归目录,试图找到vmware-modconfig-console在 openSUSE 上运行的内核头,当它遇到 /usr/include/ 时,它会输出以下内容

    /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
    "======================================================="

这看起来几乎是 /usr/include/linux/version.h 内容的精确副本,但我无法弄清楚为什么这个子目录使 vmware-modconfig-console 工具回显 a 的内容文件在 stdout 的子目录中?

相关内容