Pessoal, resolvi parcialmente os erros de compilação do Postgresql instalando os seguintes pacotes:
# apt-get install libecpg-dev
# apt-get install libcompress-zlib-perl
Só que agora está aparecendo outro erro:
/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0):
In function `__i686.get_pc_thunk.bx':
: multiple definition of
`__i686.get_pc_thunk.bx'
../ecpglib/typename.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first defined
here
collect2: ld returned 1 exit status
make[4]: *** [ecpg] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: ***
[all] Error 2
make: *** [all] Error 2