도와주세요!!
글 수 15,339
2009.02.02 10:24:28 (*.75.2.69)
15923
linux OS : CentOS 5.2
: arm-toolchain-3.4.3 /usr/arm-linux/설치하였습니다.
linux-2.6.21]# make distclean
linux-2.6.21]# ./falinux-config.sh ez-pxa270
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:107:23: error: sys/types.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:108:22: error: sys/stat.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:109:22: error: sys/mman.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:110:20: error: unistd.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:111:19: error: fcntl.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:112:20: error: string.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:113:20: error: stdlib.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:114:19: error: stdio.h: 그런 파일이나 디렉토리가 없음
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h:11,
from scripts/basic/fixdep.c:115:
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h:122:61: error: limits.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:116:19: error: ctype.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:117:23: error: arpa/inet.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c: In function ‘usage’:
scripts/basic/fixdep.c:131: warning: implicit declaration of function ‘fprintf’
scripts/basic/fixdep.c:131: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:131: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:131: error: for each function it appears in.)
scripts/basic/fixdep.c:132: warning: implicit declaration of function ‘exit’
scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘print_cmdline’:
scripts/basic/fixdep.c:140: warning: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:140: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:143: error: ‘NULL’ undeclared here (not in a function)
scripts/basic/fixdep.c: In function ‘grow_config’:
scripts/basic/fixdep.c:156: warning: implicit declaration of function ‘realloc’
scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:158: warning: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:158: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘is_defined_config’:
scripts/basic/fixdep.c:174: warning: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: In function ‘define_config’:
scripts/basic/fixdep.c:187: warning: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:206: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:214: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:220: warning: implicit declaration of function ‘tolower’
scripts/basic/fixdep.c:222: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:206: warning: unused variable ‘s’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:225: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:227: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:233: warning: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:244: warning: implicit declaration of function ‘isalnum’
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:259: warning: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:259: warning: incompatible implicit declaration of built-in function ‘strlen’
scripts/basic/fixdep.c: In function ‘do_config_file’:
scripts/basic/fixdep.c:270: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:274: warning: implicit declaration of function ‘open’
scripts/basic/fixdep.c:274: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:276: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:276: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:280: warning: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:282: warning: implicit declaration of function ‘close’
scripts/basic/fixdep.c:285: warning: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:285: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:285: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:285: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:292: error: too many arguments to function ‘parse_config_file’
scripts/basic/fixdep.c:294: warning: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:270: warning: unused variable ‘st’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:299: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:302: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:304: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:306: warning: incompatible implicit declaration of built-in function ‘strchr’
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:308: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:309: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:312: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:304: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘print_deps’:
scripts/basic/fixdep.c:341: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:345: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:347: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:347: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:353: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:357: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:357: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:357: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:364: error: too many arguments to function ‘parse_dep_file’
scripts/basic/fixdep.c:341: warning: unused variable ‘st’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:376: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:376: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:378: warning: incompatible implicit declaration of built-in function ‘exit’
make[1]: *** [scripts/basic/fixdep] 오류 1
make: *** [scripts_basic] 오류 2
위와같은애러가나옵니다.
: arm-toolchain-3.4.3 /usr/arm-linux/설치하였습니다.
linux-2.6.21]# make distclean
linux-2.6.21]# ./falinux-config.sh ez-pxa270
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:107:23: error: sys/types.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:108:22: error: sys/stat.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:109:22: error: sys/mman.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:110:20: error: unistd.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:111:19: error: fcntl.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:112:20: error: string.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:113:20: error: stdlib.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:114:19: error: stdio.h: 그런 파일이나 디렉토리가 없음
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h:11,
from scripts/basic/fixdep.c:115:
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h:122:61: error: limits.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:116:19: error: ctype.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c:117:23: error: arpa/inet.h: 그런 파일이나 디렉토리가 없음
scripts/basic/fixdep.c: In function ‘usage’:
scripts/basic/fixdep.c:131: warning: implicit declaration of function ‘fprintf’
scripts/basic/fixdep.c:131: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:131: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:131: error: for each function it appears in.)
scripts/basic/fixdep.c:132: warning: implicit declaration of function ‘exit’
scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘print_cmdline’:
scripts/basic/fixdep.c:140: warning: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:140: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:143: error: ‘NULL’ undeclared here (not in a function)
scripts/basic/fixdep.c: In function ‘grow_config’:
scripts/basic/fixdep.c:156: warning: implicit declaration of function ‘realloc’
scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:158: warning: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:158: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘is_defined_config’:
scripts/basic/fixdep.c:174: warning: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: In function ‘define_config’:
scripts/basic/fixdep.c:187: warning: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:206: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:214: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:220: warning: implicit declaration of function ‘tolower’
scripts/basic/fixdep.c:222: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:206: warning: unused variable ‘s’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:225: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:227: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:233: warning: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:244: warning: implicit declaration of function ‘isalnum’
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:259: warning: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:259: warning: incompatible implicit declaration of built-in function ‘strlen’
scripts/basic/fixdep.c: In function ‘do_config_file’:
scripts/basic/fixdep.c:270: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:274: warning: implicit declaration of function ‘open’
scripts/basic/fixdep.c:274: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:276: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:276: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:280: warning: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:282: warning: implicit declaration of function ‘close’
scripts/basic/fixdep.c:285: warning: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:285: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:285: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:285: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:292: error: too many arguments to function ‘parse_config_file’
scripts/basic/fixdep.c:294: warning: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:270: warning: unused variable ‘st’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:299: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:302: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:304: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:306: warning: incompatible implicit declaration of built-in function ‘strchr’
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:308: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:309: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:312: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:304: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘print_deps’:
scripts/basic/fixdep.c:341: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:345: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:347: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:347: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:353: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:357: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:357: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:357: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:364: error: too many arguments to function ‘parse_dep_file’
scripts/basic/fixdep.c:341: warning: unused variable ‘st’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:376: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:376: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:378: warning: incompatible implicit declaration of built-in function ‘exit’
make[1]: *** [scripts/basic/fixdep] 오류 1
make: *** [scripts_basic] 오류 2
위와같은애러가나옵니다.
이렇게 다시 설치해 보세요. 루트(/)로 이동하신 후, 크로스 컴파일러를 그냥 압축 풀기를 하십시오.
]# cd /
]# tar zxvf arm-toolchain-3.4.3.tar.gz
이렇게 루트에서 풀기를 하신 후 다시 한번 컴파일해 보세요.