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

Re: Compilando o kernel



Oi Serjao,

Segui o procedimento recomendado por voce, mas, ao executar o make xconfig,
foi retornada a mesma mensagem anterior ao terminal. Mesmo assim, obrigado
pela ajuda.

Estou achando que isso estah ocorrendo em funcao da falta de algum pacote
necessario para a compilacao, que nao estah instalado.

Alguem mais saberia dizer qual seria o problema?

[]'s,

Luiz
----- Original Message ----- 
From: "Sergio" <blinox@yahoo.com.br>
To: "Luiz Antonio F. Barbosa" <labarbos@terra.com.br>
Sent: Monday, July 21, 2003 2:47 PM
Subject: Re: Compilando o kernel


Prezado Luiz,

Compile o kernel da maneira Debian que é muito mais prático, simples e
eficiente:

Recompilando o kernel no Debian:

Pacotes necessários: gcc, libc6-dev, cpp, binutils, gcc-i386-gnu, bin86,
make, dpkg-dev, perl e kernel-package.

Descompacte o código fonte do kernel no diretório /usr/src:

# dpkg -i kernel-source-2.4.18_2.4_18-5_all.deb
Descompacte o arquivo que foi criado:
# bunzip2 kernel-source-2.4.18.tar.bz2
# tar xvf kernel-source-2.4.18.tar

Crie um link simbólico:
# ln -s kernel-source-2.4.18 linux

Entre no diretório linux.
Execute o `make xconfig' e salve suas preferências.
Dê o comando `make-kpkg clean'.

Compile o kernel:
# make-kpkg --revision=teste.1.0 kernel-image

A palavra `teste' pode ser substituída por qualquer outra que você quiser
e o número da versão (1.0) serve apenas como controle de suas compilações
(pode ser qualquer número).
OBS.: Não inclua hífens no parâmetro `--revision', somente pontos.
Após compilar, o kernel será gravado no diretório superior (..) com um nome
do tipo `kernel-image-2.2.10-i386_teste.1.0.deb'.

Basta digitar:
# dpkg -i kernel-image-2.2.10-i386_teste.1.0.deb
E o dpkg fará o resto da instalação do kernel para você e perguntará se
deseja criar um disquete de inicialização (recomendável).
Reinicie o computador.

Caso algo dê errado, use o disquete recém-criado.


Boa sorte,


[ ]'s

Sergio











Em Seg, 2003-07-21 às 11:56, Luiz Antonio F. Barbosa escreveu:
> Olah perssoal,
>
> Fiz a instalacao do CD1 do Debian3.0r1, instalei gcc e todos os pacotes
necessarios para a compilacao e dos quais o gcc depndia, como o make, o
binutils, libgcc, etc, alem dos pacotes necessarios para rodar o bz2.
>
> Baixei o kernel 2.4.20 no www.kernel.org e procedi da seguinte maneira:
>
> # cd /usr/src
> # tar -jxvf linux-2.4.20.tar.bz2
> # ln -s linux-2.4.20 linux
> # cd /usr/src/linux
> # make config
>
> Quando executei o make config, o promprt retornou as mensagens exibidas a
seguir e nao pude continuar com a compilacao.
>
> Algeum saberia me dizer, com base nas mensagens exibidas no prompt que
eestao abaixo, qual seria o problema?
>
> Mensagens exibidas no prompt:
>
> In file included from tkparse.c:48:
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:37:23: features.h: No
such file or directory
>
> In file included from
/usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:43,
>
> from tkparse.c:48:
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stddef.h:199: syntax error
before "typedef"
>
> In file included from tkparse.c:48:
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:45:25: bits/types.h: No
such file or directory
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:74:19: libio.h: No such
file or directory
>
> In file included from tkparse.c:48:
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:89: parse error before
"fpos_t"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:138:28:
bits/stdio_lim.h: No such file or directory
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:151: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:153: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:158: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:170: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:193: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:195: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:211: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:215: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:263: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:268: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:283: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:285: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:288: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:292: parse error before
"_G_va_list"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:294: parse error before
"_G_va_list"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:298: parse error before
"_G_va_list"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:335: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:337: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:340: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:360: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:361: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:364: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:383: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:384: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:387: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:416: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:426: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:451: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:460: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:464: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:469: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:472: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:484: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:486: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:488: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:504: parse error before
"fpos_t"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:507: parse error before
'*' token
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:540: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:542: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:544: parse error before
"__THROW"
>
> /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:555: parse error before
"__THROW"
>
> tkparse.c:49:20: stdlib.h: No such file or directory
>
> tkparse.c:50:20: string.h: No such file or directory
>
> In file included from tkparse.c:52:
>
> tkparse.h:9: syntax error before "enum"
>
> tkparse.c: In function `my_strcmp':
>
> tkparse.c:62: warning: implicit declaration of function `strcmp'
>
> tkparse.c: In function `syntax_error':
>
> tkparse.c:70: warning: implicit declaration of function `fprintf'
>
> tkparse.c:71: warning: implicit declaration of function `exit'
>
> tkparse.c: In function `get_varnum':
>
> tkparse.c:92: warning: implicit declaration of function `realloc'
>
> tkparse.c:92: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:98: warning: implicit declaration of function `malloc'
>
> tkparse.c:98: warning: implicit declaration of function `strlen'
>
> tkparse.c:98: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:99: warning: implicit declaration of function `strcpy'
>
> tkparse.c: In function `get_string':
>
> tkparse.c:120: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:121: warning: implicit declaration of function `memcpy'
>
> tkparse.c: In function `tokenize_if':
>
> tkparse.c:232: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:233: warning: implicit declaration of function `memset'
>
> tkparse.c:302: warning: initialization makes pointer from integer without
a cast
>
> tkparse.c:308: warning: implicit declaration of function `free'
>
> tkparse.c: In function `tokenize_choices':
>
> tkparse.c:338: warning: initialization makes pointer from integer without
a cast
>
> tkparse.c:347: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:359: warning: implicit declaration of function `strncmp'
>
> tkparse.c: In function `tokenize_line':
>
> tkparse.c:386: warning: initialization makes pointer from integer without
a cast
>
> tkparse.c:498: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:560: warning: implicit declaration of function `strdup'
>
> tkparse.c:560: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:561: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:562: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:613: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:615: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:617: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:659: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:664: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:668: warning: implicit declaration of function `sprintf'
>
> tkparse.c:676: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c: In function `do_source':
>
> tkparse.c:759: warning: implicit declaration of function `fopen'
>
> tkparse.c:759: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:765: warning: assignment makes pointer from integer without a
cast
>
> tkparse.c:786: warning: implicit declaration of function `fgets'
>
> tkparse.c:787: warning: implicit declaration of function `feof'
>
> tkparse.c:810: warning: implicit declaration of function `fclose'
>
> make[1]: *** [tkparse.o] Error 1
>
> make: *** [xconfig] Error 2
>
>
>
> Obrigado desde jah!
>
> []'s,
>
> Luiz





Reply to: