배치 파일을 실행할 때 openSUSE에서 실행 중인 커널 헤더를 찾는 과정을 반복하는 재귀 디렉터리를 만들었고 vmware-modconfig-console
/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 도구가 하위 디렉토리에 있는 파일의 내용을 에코하는 이유를 알 수 없습니다. 표준 출력에?