problema a recompilar kernel

Barroso

Power Member
boas tou a recompilar o kernel do ubuntu 5.10 o 2.6.12 e da me sempre um erro no inttypes.h
Código:
 HOSTCC  lib/gen_crc32table
In file included from lib/gen_crc32table.c:3:
/usr/local/include/inttypes.h:1: error: parse error before numeric constant
In file included from lib/gen_crc32table.c:3:
/usr/local/include/inttypes.h:18:1: invalid digit "8" in octal constant
/usr/local/include/inttypes.h:18: error: syntax error at '#' token
/usr/local/include/inttypes.h:19:1: invalid digit "9" in octal constant
/usr/local/include/inttypes.h:19: error: syntax error at '#' token
/usr/local/include/inttypes.h:28:1: invalid digit "8" in octal constant
/usr/local/include/inttypes.h:29:1: invalid digit "9" in octal constant
/usr/local/include/inttypes.h:38:1: invalid digit "8" in octal constant
/usr/local/include/inttypes.h:39:1: invalid digit "9" in octal constant
/usr/local/include/inttypes.h:39: error: syntax error at '#' token
lib/gen_crc32table.c:11: error: parse error before "crc32table_be"
lib/gen_crc32table.c:11: warning: type defaults to `int' in declaration of `crc32table_be'
lib/gen_crc32table.c:11: warning: data definition has no type or storage class
lib/gen_crc32table.c: In function `crc32init_le':
lib/gen_crc32table.c:23: error: `uint32_t' undeclared (first use in this function)
lib/gen_crc32table.c:23: error: (Each undeclared identifier is reported only once
lib/gen_crc32table.c:23: error: for each function it appears in.)
lib/gen_crc32table.c:23: error: parse error before "crc"
lib/gen_crc32table.c:25: error: `crc32table_le' undeclared (first use in this function)
lib/gen_crc32table.c:28: error: `crc' undeclared (first use in this function)
lib/gen_crc32table.c: In function `crc32init_be':
lib/gen_crc32table.c:40: error: `uint32_t' undeclared (first use in this function)
lib/gen_crc32table.c:40: error: parse error before "crc"
lib/gen_crc32table.c:45: error: `crc' undeclared (first use in this function)
lib/gen_crc32table.c: At top level:
lib/gen_crc32table.c:51: error: parse error before "table"
lib/gen_crc32table.c:52: warning: function declaration isn't a prototype
lib/gen_crc32table.c: In function `output_table':
lib/gen_crc32table.c:55: error: `len' undeclared (first use in this function)
lib/gen_crc32table.c:58: error: `trans' undeclared (first use in this function)
lib/gen_crc32table.c:58: error: `table' undeclared (first use in this function)
lib/gen_crc32table.c: In function `main':
lib/gen_crc32table.c:70: error: `crc32table_le' undeclared (first use in this function)
make[2]: *** [lib/gen_crc32table] Error 1
make[1]: *** [lib] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.12'
make: *** [stamp-build] Error 2

k raio me falta aki? perdoem a noobice mas nao csg me safar :(
 
Tas a recompilar o kernel com que fim? Pretendes so actualizar, ou queres mudar alguma coisa?

Ubuntu nao traz de origem ferramentas para compilar, instalaste isso?

Para evitar erros uma boa politica e carregares a configuracao anterior. Começa por experimentar isso e depois modifica pequenas coisas a tua vontade. Se fizeres isso fica mais facil e evitas os erros :)
 
Se tiveres com problemas, o mais facil é seguires este tutorial.
showthread.php


Isso é para a versão 2.6.14, mas podes bem sacar a 2.6.15 e o respectivo patch(Se quiseres), que o processo é o mesmo.
 
Back
Topo