Você instalou o pacote kernel-headers?

[]'s

On 31 jan, 21:20, max <[email protected]> wrote:
> On Sun, Jan 31, 2010 at 3:13 PM, Marlon Willrich <[email protected]> wrote:
> > Salve galera,
>
> > Seguinte.. eu estou montando um ambiente de HA em uma máquina virtual e uma
> > máquina real..  tenho um slack12.1 na virtual que fiz cópia da real.
>
> > Na máquina virtual estou executando o kernel 2.6.24.5-smp do slack.. já está
> > instalado todos os pacotes da pasta "d" do cd, porém qdo tento compilar o
> > drbd , tanto com o slackbuild dele ou o pacote separado aparece uns erros
> > como se não tivesse pacotes g++ ou pacotes do kernel instalado.. aparece
> > este erro aqui:
>
> > gcc version 4.2.3
> > configure:2215: $? = 0
> > configure:2204: gcc -V >&5
> > gcc: '-V' option must have argument
> > configure:2215: $? = 1
> > configure:2204: gcc -qversion >&5
> > gcc: unrecognized option '-qversion'
> > gcc: no input files
> > configure:2215: $? = 1
> > configure:2237: checking for C compiler default output file name
> > configure:2259: gcc -O2 -fPIC   conftest.c  >&5
> > In file included from /usr/include/stdio.h:28,
> >                  from conftest.c:9:
> > /usr/include/features.h:330:25: error: sys/cdefs.h: No such file or
> > directory
> > In file included from /usr/include/stdio.h:34,
> >                  from conftest.c:9:
> > /usr/lib/gcc/i486-slackware-linux/4.2.3/include/stddef.h:214: error:
> > expected '=', ',', ';', 'asm'
> >  or '__attribute__' before 'typedef'
> > In file included from conftest.c:9:
> > /usr/include/stdio.h:49: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before 'typedef'
> > /usr/include/stdio.h:54: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '__USING_N
> > AMESPACE_STD'
> > In file included from /usr/include/stdio.h:75,
> >                  from conftest.c:9:
> > /usr/include/libio.h:332: error: expected specifier-qualifier-list before
> > 'size_t'
> > /usr/include/libio.h:364: error: expected declaration specifiers or '...'
> > before 'size_t'
> > /usr/include/libio.h:373: error: expected declaration specifiers or '...'
> > before 'size_t'
>
> > no final do log ele fala : configure:2310: error: C compiler cannot create
> > executables
>
> > e na máquina real, que por eqto não consigo testar com a mesma versão do
> > kernel, esta parte funciona certinho :
>
> > gcc version 4.2.3
> > configure:2215: $? = 0
> > configure:2204: gcc -V >&5
> > gcc: '-V' option must have argument
> > configure:2215: $? = 1
> > configure:2204: gcc -qversion >&5
> > gcc: unrecognized option '-qversion'
> > gcc: no input files
> > configure:2215: $? = 1
> > configure:2237: checking for C compiler default output file name
> > configure:2259: gcc -O2 -fPIC   conftest.c  >&5
> > configure:2263: $? = 0
> > configure:2300: result: a.out
> > configure:2316: checking whether the C compiler works
> > configure:2325: ./a.out
> > configure:2329: $? = 0
> > configure:2344: result: yes
> > configure:2351: checking whether we are cross compiling
> > configure:2353: result: no
> > configure:2356: checking for suffix of executables
> > configure:2363: gcc -o conftest -O2 -fPIC   conftest.c  >&5
> > configure:2367: $? = 0
> > configure:2389: result:
> > configure:2395: checking for suffix of object files
> > configure:2417: gcc -c -O2 -fPIC  conftest.c >&5
> > configure:2421: $? = 0
> > configure:2442: result: o
> > configure:2446: checking whether we are using the GNU C compiler
> > configure:2465: gcc -c -O2 -fPIC  conftest.c >&5
> > configure:2465: $? = 0
> > configure:2474: result: yes
> > configure:2483: checking whether gcc accepts -g
> > configure:2503: gcc -c -g  conftest.c >&5
>
> > Na maquina real estou com um kernel compilado, 2.6.28-7.
>
> > Porem este aí nao funciona na virtual.. ehehheoue tá um rolo ... e por eqto
> > não posso reiniciar a maquina real para testar com o kernel antigo.
>
> > Voces tem alguma idéia do que possa ser aquele primeiro erro lá ?
>
> > --
> > GUS-BR - Grupo de Usuários de Slackware Brasil
> >http://www.slackwarebrasil.org/
> >http://groups.google.com/group/slack-users-br
>
> > Antes de perguntar:
> >http://www.istf.com.br/perguntas/
>
> > Para sair da lista envie um e-mail para:
> > [email protected]
>
> Este cdefs.h vem junto com a glibc, tem coisa faltando nessa tua instalação.

-- 
GUS-BR - Grupo de Usuários de Slackware Brasil
http://www.slackwarebrasil.org/
http://groups.google.com/group/slack-users-br

Antes de perguntar:
http://www.istf.com.br/perguntas/

Para sair da lista envie um e-mail para:
[email protected]

Responder a