+ Responder ao Tópico



  1. #1
    crazy4tech
    Visitante

    Padrão Compilação de Kernel

    Olá pessoal,

    Sou novato na compilação de kernel, fiz a instalação do CL10, e precisei ativar no kernel o suporte a quotas. Eis abaixo o que ocorreu logo depois que digitei o comando make menuconfig


    [[email protected] linux-2.6.14]# make menuconfig
    HOSTCC scripts/basic/fixdep
    scripts/basic/fixdep.c:105:23: sys/types.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:106:22: sys/stat.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:107:22: sys/mman.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:108:20: unistd.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:109:19: fcntl.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:110:20: string.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:111:20: stdlib.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:112:19: stdio.h: Arquivo ou diretório não encontrado
    In file included from /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/include/syslimits.h:7,
    from /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/include/limits.h:11,
    from scripts/basic/fixdep.c:113:
    /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/include/limits.h:122:75: limits.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:114:19: ctype.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c:115:23: arpa/inet.h: Arquivo ou diretório não encontrado
    scripts/basic/fixdep.c: In function `usage':
    scripts/basic/fixdep.c:129: warning: implicit declaration of function `fprintf'
    scripts/basic/fixdep.c:129: error: `stderr' undeclared (first use in this function)
    scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
    scripts/basic/fixdep.c:129: error: for each function it appears in.)
    scripts/basic/fixdep.c:130: warning: implicit declaration of function `exit'
    scripts/basic/fixdep.c: In function `print_cmdline':
    scripts/basic/fixdep.c:135: warning: implicit declaration of function `printf'
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:138: error: `NULL' undeclared here (not in a function)
    scripts/basic/fixdep.c: In function `grow_config':
    scripts/basic/fixdep.c:151: warning: implicit declaration of function `realloc'
    scripts/basic/fixdep.c:151: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:152: error: `NULL' undeclared (first use in this function)
    scripts/basic/fixdep.c:153: warning: implicit declaration of function `perror'
    scripts/basic/fixdep.c: In function `is_defined_config':
    scripts/basic/fixdep.c:169: warning: implicit declaration of function `memcmp'
    scripts/basic/fixdep.c: In function `define_config':
    scripts/basic/fixdep.c:182: warning: implicit declaration of function `memcpy'
    scripts/basic/fixdep.c: In function `use_config':
    scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:215: warning: implicit declaration of function `tolower'
    scripts/basic/fixdep.c:201: warning: unused variable `s'
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:220: error: parse error before "size_t"
    scripts/basic/fixdep.c:221: warning: function declaration isn't a prototype
    scripts/basic/fixdep.c: In function `parse_config_file':
    scripts/basic/fixdep.c:222: error: `map' undeclared (first use in this function)
    scripts/basic/fixdep.c:222: error: `len' undeclared (first use in this function)
    scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl'
    scripts/basic/fixdep.c:239: warning: implicit declaration of function `isalnum'
    scripts/basic/fixdep.c: In function `strrcmp':
    scripts/basic/fixdep.c:252: warning: implicit declaration of function `strlen'
    scripts/basic/fixdep.c: In function `do_config_file':
    scripts/basic/fixdep.c:263: error: storage size of `st' isn't known
    scripts/basic/fixdep.c:267: warning: implicit declaration of function `open'
    scripts/basic/fixdep.c:267: error: `O_RDONLY' undeclared (first use in this function)
    scripts/basic/fixdep.c:269: error: `stderr' undeclared (first use in this function)
    scripts/basic/fixdep.c:273: warning: implicit declaration of function `fstat'
    scripts/basic/fixdep.c:275: warning: implicit declaration of function `close'
    scripts/basic/fixdep.c:278: warning: implicit declaration of function `mmap'
    scripts/basic/fixdep.c:278: error: `NULL' undeclared (first use in this function)
    scripts/basic/fixdep.c:278: error: `PROT_READ' undeclared (first use in this function)
    scripts/basic/fixdep.c:278: error: `MAP_PRIVATE' undeclared (first use in this function)
    scripts/basic/fixdep.c:278: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:287: warning: implicit declaration of function `munmap'
    scripts/basic/fixdep.c:263: warning: unused variable `st'
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:292: error: parse error before "size_t"
    scripts/basic/fixdep.c:293: warning: function declaration isn't a prototype
    scripts/basic/fixdep.c: In function `parse_dep_file':
    scripts/basic/fixdep.c:294: error: `map' undeclared (first use in this function)
    scripts/basic/fixdep.c:295: error: `len' undeclared (first use in this function)
    scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:299: warning: implicit declaration of function `strchr'
    scripts/basic/fixdep.c:301: error: `stderr' undeclared (first use in this function)
    scripts/basic/fixdep.c:297: warning: unused variable `s'
    [[email protected] linux]# make menuconfig
    HOSTCC scripts/basic/fixdep
    scripts/basic/fixdep.c:97:23: sys/types.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:98:22: sys/stat.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:99:22: sys/mman.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:100:20: unistd.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:101:19: fcntl.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:102:20: string.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:103:20: stdlib.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:104:19: stdio.h: Arquivo ou diret?rio n?o encontrado
    In file included from /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/include/syslimits.h:7,
    from /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/include/limits.h:11,
    from scripts/basic/fixdep.c:105:
    /usr/lib/gcc-lib/i386-conectiva-linux/3.3.3/include/limits.h:122:75: limits.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:106:19: ctype.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c:107:24: netinet/in.h: Arquivo ou diret?rio n?o encontrado
    scripts/basic/fixdep.c: In function `usage':
    scripts/basic/fixdep.c:121: warning: implicit declaration of function `fprintf'
    scripts/basic/fixdep.c:121: error: `stderr' undeclared (first use in this function)
    scripts/basic/fixdep.c:121: error: (Each undeclared identifier is reported only once
    scripts/basic/fixdep.c:121: error: for each function it appears in.)
    scripts/basic/fixdep.c:122: warning: implicit declaration of function `exit'
    scripts/basic/fixdep.c: In function `print_cmdline':
    scripts/basic/fixdep.c:127: warning: implicit declaration of function `printf'
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:130: error: `NULL' undeclared here (not in a function)
    scripts/basic/fixdep.c: In function `grow_config':
    scripts/basic/fixdep.c:143: warning: implicit declaration of function `realloc'
    scripts/basic/fixdep.c:143: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:144: error: `NULL' undeclared (first use in this function)
    scripts/basic/fixdep.c:145: warning: implicit declaration of function `perror'
    scripts/basic/fixdep.c: In function `is_defined_config':
    scripts/basic/fixdep.c:161: warning: implicit declaration of function `memcmp'
    scripts/basic/fixdep.c: In function `define_config':
    scripts/basic/fixdep.c:174: warning: implicit declaration of function `memcpy'
    scripts/basic/fixdep.c: In function `use_config':
    scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:207: warning: implicit declaration of function `tolower'
    scripts/basic/fixdep.c:193: warning: unused variable `s'
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:212: error: parse error before "size_t"
    scripts/basic/fixdep.c:213: warning: function declaration isn't a prototype
    scripts/basic/fixdep.c: In function `parse_config_file':
    scripts/basic/fixdep.c:214: error: `map' undeclared (first use in this function)
    scripts/basic/fixdep.c:214: error: `len' undeclared (first use in this function)
    scripts/basic/fixdep.c:220: warning: implicit declaration of function `ntohl'
    scripts/basic/fixdep.c:231: warning: implicit declaration of function `isalnum'
    scripts/basic/fixdep.c: In function `strrcmp':
    scripts/basic/fixdep.c:244: warning: implicit declaration of function `strlen'
    scripts/basic/fixdep.c: In function `do_config_file':
    scripts/basic/fixdep.c:255: error: storage size of `st' isn't known
    scripts/basic/fixdep.c:259: warning: implicit declaration of function `open'
    scripts/basic/fixdep.c:259: error: `O_RDONLY' undeclared (first use in this function)
    scripts/basic/fixdep.c:261: error: `stderr' undeclared (first use in this function)
    scripts/basic/fixdep.c:265: warning: implicit declaration of function `fstat'
    scripts/basic/fixdep.c:267: warning: implicit declaration of function `close'
    scripts/basic/fixdep.c:270: warning: implicit declaration of function `mmap'
    scripts/basic/fixdep.c:270: error: `NULL' undeclared (first use in this function)
    scripts/basic/fixdep.c:270: error: `PROT_READ' undeclared (first use in this function)
    scripts/basic/fixdep.c:270: error: `MAP_PRIVATE' undeclared (first use in this function)
    scripts/basic/fixdep.c:270: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:279: warning: implicit declaration of function `munmap'
    scripts/basic/fixdep.c:255: warning: unused variable `st'
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:284: error: parse error before "size_t"
    scripts/basic/fixdep.c:285: warning: function declaration isn't a prototype
    scripts/basic/fixdep.c: In function `parse_dep_file':
    scripts/basic/fixdep.c:286: error: `map' undeclared (first use in this function)
    scripts/basic/fixdep.c:287: error: `len' undeclared (first use in this function)
    scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:291: warning: implicit declaration of function `strchr'
    scripts/basic/fixdep.c:293: error: `stderr' undeclared (first use in this function)
    scripts/basic/fixdep.c:289: warning: unused variable `s'
    scripts/basic/fixdep.c: In function `print_deps':
    scripts/basic/fixdep.c:325: error: storage size of `st' isn't known
    scripts/basic/fixdep.c:329: error: `O_RDONLY' undeclared (first use in this function)
    scripts/basic/fixdep.c:331: error: `stderr' undeclared (first use in this function)
    scripts/basic/fixdep.c:341: error: `NULL' undeclared (first use in this function)
    scripts/basic/fixdep.c:341: error: `PROT_READ' undeclared (first use in this function)
    scripts/basic/fixdep.c:341: error: `MAP_PRIVATE' undeclared (first use in this function)
    scripts/basic/fixdep.c:341: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:325: warning: unused variable `st'
    scripts/basic/fixdep.c: In function `traps':
    scripts/basic/fixdep.c:360: error: `stderr' undeclared (first use in this function)
    make[1]: ** [scripts/basic/fixdep] Erro 1
    make: ** [scripts_basic] Erro 2


    Desde já agradeço..

    Falow pessoal!

    PS. desculpem o texto longo...rssss

  2. #2

    Padrão Compilação de Kernel

    cara, de onde sao estes sources do kernel que vc tá compilando? tenta baixar os sources do kernel vanilla, que tem menos chances de terem sido mexidos e terem problemas como este.



  3. #3
    crazy4tech
    Visitante

    Padrão Compilação kernel

    Engraçado que o Kernel-Sources que instalei eh o q selecionei pelo Synaptic.....