[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Recompilar kernel



Acabei de instalar o Debian Etch. Instalou tranquilamente e sem problemas.

Terminada a instalação:
nano /etc/apt/sources.list
comento a entrada do CD-ROM

apt-get update

apt-get install kde kdm xorg samba kernel-headers-2.6.18-4 
kernel-sources-2.6.18

mas não consigo recompilar o kernel.

  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: error: sys/types.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:106:22: error: sys/stat.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:107:22: error: sys/mman.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:108:20: error: unistd.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:109:19: error: fcntl.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:110:20: error: string.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:111:20: error: stdlib.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:112:19: error: stdio.h: Arquivo ou diretório não 
encontrado
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: 
Arquivo ou diretório não encontrado
scripts/basic/fixdep.c:114:19: error: ctype.h: Arquivo ou diretório não 
encontrado
scripts/basic/fixdep.c:115:23: error: 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: warning: incompatible implicit declaration of 
built-in 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:130: warning: incompatible implicit declaration of 
built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘print_cmdline’:
scripts/basic/fixdep.c:138: warning: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:138: warning: incompatible implicit declaration of 
built-in function ‘printf’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:141: error: ‘NULL’ undeclared here (not in a function)
scripts/basic/fixdep.c: In function ‘grow_config’:
scripts/basic/fixdep.c:154: warning: implicit declaration of 
function ‘realloc’
scripts/basic/fixdep.c:154: warning: assignment makes pointer from integer 
without a cast
scripts/basic/fixdep.c:156: warning: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:156: warning: incompatible implicit declaration of 
built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘is_defined_config’:
scripts/basic/fixdep.c:172: warning: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: In function ‘define_config’:
scripts/basic/fixdep.c:185: warning: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:185: warning: incompatible implicit declaration of 
built-in function ‘memcpy’
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:204: error: ‘PATH_MAX’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:212: warning: incompatible implicit declaration of 
built-in function ‘memcpy’
scripts/basic/fixdep.c:218: warning: implicit declaration of 
function ‘tolower’
scripts/basic/fixdep.c:220: warning: incompatible implicit declaration of 
built-in function ‘printf’
scripts/basic/fixdep.c:204: warning: unused variable ‘s’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:223: error: expected declaration specifiers or ‘...’ 
before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:225: error: ‘len’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:231: warning: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:242: warning: implicit declaration of 
function ‘isalnum’
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:255: warning: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:255: warning: incompatible implicit declaration of 
built-in function ‘strlen’
scripts/basic/fixdep.c: In function ‘do_config_file’:
scripts/basic/fixdep.c:266: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:270: warning: implicit declaration of function ‘open’
scripts/basic/fixdep.c:270: error: ‘O_RDONLY’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:272: warning: incompatible implicit declaration of 
built-in function ‘fprintf’
scripts/basic/fixdep.c:272: error: ‘stderr’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:274: warning: incompatible implicit declaration of 
built-in function ‘exit’
scripts/basic/fixdep.c:276: warning: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:278: warning: implicit declaration of function ‘close’
scripts/basic/fixdep.c:281: warning: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:281: error: ‘PROT_READ’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:281: error: ‘MAP_PRIVATE’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:281: warning: assignment makes pointer from integer 
without a cast
scripts/basic/fixdep.c:288: error: too many arguments to 
function ‘parse_config_file’
scripts/basic/fixdep.c:290: warning: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:266: warning: unused variable ‘st’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:295: error: expected declaration specifiers or ‘...’ 
before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:298: error: ‘len’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:300: error: ‘PATH_MAX’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:302: warning: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:302: warning: incompatible implicit declaration of 
built-in function ‘strchr’
scripts/basic/fixdep.c:304: warning: incompatible implicit declaration of 
built-in function ‘fprintf’
scripts/basic/fixdep.c:304: error: ‘stderr’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:305: warning: incompatible implicit declaration of 
built-in function ‘exit’
scripts/basic/fixdep.c:307: warning: incompatible implicit declaration of 
built-in function ‘memcpy’
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of 
built-in function ‘printf’
scripts/basic/fixdep.c:300: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘print_deps’:
scripts/basic/fixdep.c:337: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:341: error: ‘O_RDONLY’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:343: warning: incompatible implicit declaration of 
built-in function ‘fprintf’
scripts/basic/fixdep.c:343: error: ‘stderr’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:345: warning: incompatible implicit declaration of 
built-in function ‘exit’
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of 
built-in function ‘fprintf’
scripts/basic/fixdep.c:353: error: ‘PROT_READ’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:353: error: ‘MAP_PRIVATE’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:353: warning: assignment makes pointer from integer 
without a cast
scripts/basic/fixdep.c:360: error: too many arguments to 
function ‘parse_dep_file’
scripts/basic/fixdep.c:337: warning: unused variable ‘st’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:372: warning: incompatible implicit declaration of 
built-in function ‘fprintf’
scripts/basic/fixdep.c:372: error: ‘stderr’ undeclared (first use in this 
function)
scripts/basic/fixdep.c:374: warning: incompatible implicit declaration of 
built-in function ‘exit’
make[1]: ** [scripts/basic/fixdep] Erro 1
make: ** [scripts_basic] Erro 2


dicas?

gcc 4.1, make 3.81, binutils 2.17,  util-linux 2.12r, module-init-tools 
3.3-pre2, e2fsprogs 1.40-WIP, pcmcia-cs 3.2.8, procps 3.2.7, oprofile 0.9.2, 
udev 105.

obrigado.

[]s



Reply to: