undefined symbol PQconnectionNeedsPassword referenced by file pg_ctl.o

Поиск
Список
Период
Сортировка
Искать

undefined symbol PQconnectionNeedsPassword referenced by file pg_ctl.o

От:
"Edmundo Robles L." <erobles@sensacd.com.mx>
Дата:
Hi, i tried to compile postgres 8.3.13 but  i  got the  next error:
Undefined                       first referenced
symbol                              in file
PQconnectionNeedsPassword           pg_ctl.o
ERROR: Symbol referencing errors. No output written to pg_ctl

cc -b elf -O pg_ctl.o  -L../../../src/port -lpgport 
-L../../../src/interfaces/libpq -lpq -L../../../src/port   -lpgport -lz 
-lreadline -lsocket -lm  -o pg_ctl

What library or object i missing???

by the way  i  have compiled   previous version of  postgres like 
8.3.11  without this problem.
El contenido de este correo electrónico y sus archivos adjuntos son privados y confidenciales y va dirigido exclusivamente a su destinatario.  No se autoriza la utilización, retransmisión, diseminación, o cualquier otro uso de esta información por un receptor o entidades distintas al destinatario.  Si recibe este correo sin ser el destinatario se le solicita eliminarlo y hacerlo del conocimiento del emisor. La empresa no se hace responsable de transmisiones o comunicaciones no autorizadas o emitidas por personas ajenas a sus colaboradores utilizando éste medio electrónico.
 
The content of this email and its attached files are private and confidential and intended exclusively for the use of the individual or entity to which they are addressed. The retransmission, dissemination, or any other use of this information other than by the intended recipient is prohibited.  If you have received this email in error please delete it and notify the sender.  The company cannot be held liable for unauthorized electronic transmissions or communications, nor for those emitted by non-company individuals and entities.

Re: undefined symbol PQconnectionNeedsPassword referenced by file pg_ctl.o

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Edmundo Robles L."  writes:
> Hi, i tried to compile postgres 8.3.13 but  i  got the  next error:
> Undefined                       first referenced
> symbol                              in file
> PQconnectionNeedsPassword           pg_ctl.o
> ERROR: Symbol referencing errors. No output written to pg_ctl

> cc -b elf -O pg_ctl.o  -L../../../src/port -lpgport 
> -L../../../src/interfaces/libpq -lpq -L../../../src/port   -lpgport -lz 
> -lreadline -lsocket -lm  -o pg_ctl

> What library or object i missing???

Apparently you're trying to link against a pre-8.3 version of libpq.
I'd guess the linker is for some reason picking up an old library in
/usr/lib rather than the one in ../../../src/interfaces/libpq (if
indeed there is anything there).

			regards, tom lane
FAQ