Re: Trouble compiling postgres 7.4 on aix 4.3.3 using gcc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ewan Leith <ejl(at)man(dot)fwltech(dot)com>
Cc: "'pgsql-ports(at)postgresql(dot)org'" <pgsql-ports(at)postgresql(dot)org>
Subject: Re: Trouble compiling postgres 7.4 on aix 4.3.3 using gcc
Date: 2003-11-25 17:14:09
Message-ID: 28529.1069780449@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Ewan Leith <ejl(at)man(dot)fwltech(dot)com> writes:

> ld: 0711-317 ERROR: Undefined symbol: .PQresultErrorField
> ld: 0711-317 ERROR: Undefined symbol: .last_path_separator
> ld: 0711-317 ERROR: Undefined symbol: .PQsetNoticeReceiver
> ld: 0711-317 ERROR: Undefined symbol: .PQfreemem
> collect2: ld returned 8 exit status
> gmake[4]: *** [libecpg.so] Error 1

Looks to me like the linker is trying to link against a pre-7.4 version
of libpq.so --- those are all symbols that got added in 7.4. Probably
it is taking the existing installed version of libpq.so in preference to
the just-built one in the source tree.

Dunno what the clean solution to this under AIX is, but a brute force
answer is to go ahead and install the new libpq (gmake install in
src/interfaces/libpq) and then continue with building ecpg.

regards, tom lane

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Seum-Lim Gan 2003-11-25 17:22:23 Re: Solaris build of 7.4 problem with
Previous Message Ewan Leith 2003-11-25 17:04:26 Trouble compiling postgres 7.4 on aix 4.3.3 using gcc