Erro ao executar o comando "config" para configurar o kernel

Iniciado por Gabriell, 21 de Agosto de 2008, 13:33

tópico anterior - próximo tópico

Gabriell

Olá, ao executar o comando "make xconfig" para configurar o kernel recebo a seguinte mensagem:

  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:107:23: erro: sys/types.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:108:22: erro: sys/stat.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:109:22: erro: sys/mman.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:110:20: erro: unistd.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:111:19: erro: fcntl.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:112:20: erro: string.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:113:20: erro: stdlib.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:114:19: erro: stdio.h: Arquivo ou diretório inexistente
No arquivo incluído de /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
                 de /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
                 de scripts/basic/fixdep.c:115:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: erro: limits.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:116:19: erro: ctype.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c:117:23: erro: arpa/inet.h: Arquivo ou diretório inexistente
scripts/basic/fixdep.c: Na função ‘usage’:
scripts/basic/fixdep.c:131: aviso: implicit declaration of function ‘fprintf’
scripts/basic/fixdep.c:131: aviso: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:131: erro: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:131: erro: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:131: erro: for each function it appears in.)
scripts/basic/fixdep.c:132: aviso: implicit declaration of function ‘exit’
scripts/basic/fixdep.c:132: aviso: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: Na função ‘print_cmdline’:
scripts/basic/fixdep.c:140: aviso: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:140: aviso: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c: No nivel superior:
scripts/basic/fixdep.c:143: erro: ‘NULL’ undeclared here (not in a function)
scripts/basic/fixdep.c: Na função ‘grow_config’:
scripts/basic/fixdep.c:156: aviso: implicit declaration of function ‘realloc’
scripts/basic/fixdep.c:156: aviso: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:158: aviso: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:158: aviso: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: Na função ‘is_defined_config’:
scripts/basic/fixdep.c:174: aviso: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: Na função ‘define_config’:
scripts/basic/fixdep.c:187: aviso: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:187: aviso: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c: Na função ‘use_config’:
scripts/basic/fixdep.c:206: erro: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:214: aviso: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:220: aviso: implicit declaration of function ‘tolower’
scripts/basic/fixdep.c:222: aviso: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:206: aviso: unused variable ‘s’
scripts/basic/fixdep.c: No nivel superior:
scripts/basic/fixdep.c:225: erro: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: Na função ‘parse_config_file’:
scripts/basic/fixdep.c:227: erro: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:233: aviso: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:244: aviso: implicit declaration of function ‘isalnum’
scripts/basic/fixdep.c: Na função ‘strrcmp’:
scripts/basic/fixdep.c:261: aviso: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:261: aviso: incompatible implicit declaration of built-in function ‘strlen’
scripts/basic/fixdep.c: Na função ‘do_config_file’:
scripts/basic/fixdep.c:272: erro: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:276: aviso: implicit declaration of function ‘open’
scripts/basic/fixdep.c:276: erro: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:278: aviso: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:278: erro: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:280: aviso: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:282: aviso: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:284: aviso: implicit declaration of function ‘close’
scripts/basic/fixdep.c:287: aviso: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:287: erro: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:287: erro: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:287: aviso: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:294: erro: too many arguments to function ‘parse_config_file’
scripts/basic/fixdep.c:296: aviso: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:272: aviso: unused variable ‘st’
scripts/basic/fixdep.c: No nivel superior:
scripts/basic/fixdep.c:301: erro: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: Na função ‘parse_dep_file’:
scripts/basic/fixdep.c:304: erro: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:306: erro: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:308: aviso: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:308: aviso: incompatible implicit declaration of built-in function ‘strchr’
scripts/basic/fixdep.c:310: aviso: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:310: erro: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:311: aviso: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:313: aviso: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:314: aviso: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:306: aviso: unused variable ‘s’
scripts/basic/fixdep.c: Na função ‘print_deps’:
scripts/basic/fixdep.c:343: erro: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:347: erro: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:349: aviso: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:349: erro: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:351: aviso: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:355: aviso: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:359: erro: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:359: erro: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:359: aviso: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:366: erro: too many arguments to function ‘parse_dep_file’
scripts/basic/fixdep.c:343: aviso: unused variable ‘st’
scripts/basic/fixdep.c: Na função ‘traps’:
scripts/basic/fixdep.c:378: aviso: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:378: erro: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:380: aviso: incompatible implicit declaration of built-in function ‘exit’
make[1]: ** [scripts/basic/fixdep] Erro 1
make: ** [scripts_basic] Erro 2

O mesmo acontece com o config e menuconfig.
Alguém sabe o que fazer?
"A maior virtude não é ser capaz de descobrir o quê, dentre todas as opções possíveis, te atrai, mas sim descobrir o quê é atraente naquela opção que está em tua mão."
-Richard P. Feynman, Físico norte-americano ganhador do prêmio Nobel de 1965

mstr