Re: undefined symbol PQconnectionNeedsPassword referenced by file pg_ctl.o

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Edmundo Robles L(dot)" <erobles(at)sensacd(dot)com(dot)mx>
Cc: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: undefined symbol PQconnectionNeedsPassword referenced by file pg_ctl.o
Date: 2011-01-19 22:29:15
Message-ID: 28397.1295476155@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Edmundo Robles L." <erobles(at)sensacd(dot)com(dot)mx> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2011-01-19 22:36:35 Re: How to fire triggers just on "top" level DML
Previous Message A.M. 2011-01-19 22:26:40 Re: How to fire triggers just on "top" level DML