Em 18 de junho de 2013 10:21, Juliano Atanazio <[email protected]>escreveu:

>
>
>
> 2013/6/18 Filho Arrais <[email protected]>
>
>> Estou compilando o postgres 8.4.4 (preciso dessa versão) no Debian 7 e
>> Ubuntu 13.04, porém me deparo com esse erro e não consegui resolver, peço a
>> ajuda dos demais que já tenham passado por isso.
>>
>> Instalei as dependências
>>
>> # aptitude install build-essential zlib1g-dev libreadline6-dev flex bison
>> libxml++2.6-dev libxml2-dev libperl-dev libclass-dbi-perl
>> libyaml-libyaml-perl libyaml-dev libdbd-sybase-perl freetds-dev
>>
>> Rodei o configura com suporte a XML e PERL
>>
>>  # ./configure --with-libxml --with-perl
>>
>> rodando o make
>>
>> # time make -j install
>>
>
> A opção "-j" do make requer um inteiro, pois indica o número de jobs que o
> make fará simultaneamente.
> Muito útil para CPUs de vários núcleos ou mesmo várias CPUs.
> Recomenda-se que esse inteiro seja o seu total de núcleos + 1.
> Se sua máquina tem 4 núcleos, então será 5, por exemplo.
> Uma sugestão minha, dê preferência ao inglês em servidores, pois para vc
> pesquisar erros tem muito mais material.
> Resumindo, tente fazer isto:
>
> # LANGUAGE=en time make -jN install
>
> Sendo que N é seu (núcleos + 1)
>
> Se der erro de novo poste aqui, por favor.
>
> Mesmo erro amigão. :(

make[3]: Entering directory `/root/postgresql-8.4.4/src/pl/plperl'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
-fpic -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/lib/perl/5.14/CORE  -c -o plperl.o plperl.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
-fpic -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/lib/perl/5.14/CORE  -c -o spi_internal.o spi_internal.c
"/usr/bin/perl" /usr/share/perl/5.14/ExtUtils/xsubpp -typemap
/usr/share/perl/5.14/ExtUtils/typemap SPI.xs >SPI.c
/bin/sh ../../../config/mkinstalldirs '/usr/local/pgsql/lib'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
-fpic -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/lib/perl/5.14/CORE  -c -o SPI.o SPI.c
plperl.c: In function âplperl_safe_initâ:
plperl.c:595:12: error: lvalue required as left operand of assignment
plperl.c: In function âplperl_hash_from_tupleâ:
plperl.c:1781:10: warning: the comparison will always evaluate as âtrueâ
for the address of âisnullâ will never be NULL [-Waddress]
plperl.c:1781:10: warning: the comparison will always evaluate as âtrueâ
for the address of âisnullâ will never be NULL [-Waddress]
plperl.c:1781:10: warning: the comparison will always evaluate as âtrueâ
for the address of âisnullâ will never be NULL [-Waddress]
make[3]: *** [plperl.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/root/postgresql-8.4.4/src/pl/plperl'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/root/postgresql-8.4.4/src/pl'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/postgresql-8.4.4/src'
make: *** [install] Error 2
Command exited with non-zero status 2
0.89user 0.21system 0:02.85elapsed 38%CPU (0avgtext+0avgdata
26908maxresident)k
0inputs+63456outputs (0major+912701minor)pagefaults 0swaps




>
>
>>
>> Retorno
>>
>> make[3]: Entrando no diretório `/root/postgresql-8.4.4/src/pl/plperl'
>> "/usr/bin/perl" plperl_opmask.pl plperl_opmask.h
>> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
>> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
>> -fpic -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2
>> -I/usr/lib/perl/5.14/CORE  -c -o spi_internal.o spi_internal.c
>> "/usr/bin/perl" /usr/share/perl/5.14/ExtUtils/xsubpp -typemap
>> /usr/share/perl/5.14/ExtUtils/typemap SPI.xs >SPI.c
>> /bin/sh ../../../config/mkinstalldirs '/usr/local/pgsql/lib'
>> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
>> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
>> -fpic -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2
>> -I/usr/lib/perl/5.14/CORE  -c -o plperl.o plperl.c
>> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
>> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
>> -fpic -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2
>> -I/usr/lib/perl/5.14/CORE  -c -o SPI.o SPI.c
>> plperl.c: In function âplperl_safe_initâ:
>> plperl.c:595:12: error: lvalue required as left operand of assignment
>> plperl.c: In function âplperl_hash_from_tupleâ:
>> plperl.c:1781:10: warning: the comparison will always evaluate as âtrueâ
>> for the address of âisnullâ will never be NULL [-Waddress]
>> plperl.c:1781:10: warning: the comparison will always evaluate as âtrueâ
>> for the address of âisnullâ will never be NULL [-Waddress]
>> plperl.c:1781:10: warning: the comparison will always evaluate as âtrueâ
>> for the address of âisnullâ will never be NULL [-Waddress]
>> make[3]: ** [plperl.o] Erro 1
>> make[3]: ** Esperando que outros processos terminem.
>> make[3]: Saindo do diretório `/root/postgresql-8.4.4/src/pl/plperl'
>> make[2]: ** [install] Erro 2
>> make[2]: Saindo do diretório `/root/postgresql-8.4.4/src/pl'
>> make[1]: ** [install] Erro 2
>> make[1]: Saindo do diretório `/root/postgresql-8.4.4/src'
>> make: ** [install] Erro 2
>>
>> real    0m28.689s
>> user    3m26.117s
>> sys     0m11.473s
>> _______________________________________________
>> pgbr-geral mailing list
>> [email protected]
>> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>>
>>
>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a