Skip site navigation (1) Skip section navigation (2)

Re: Trouble compiling postgres 7.4 on aix 4.3.3 using gcc

From: Ewan Leith <ejl(at)man(dot)fwltech(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:54:01
Message-ID: 1012BD903945D411915500105A48FF5701C73BA3@nt.man.fwltech.com (view raw or flat)
Thread:
Lists: pgsql-ports
Brilliant, thanks that sorted it

I had to do:
gmake install in src/interfaces/libpq
gmake clean
./configure --with-libs=/usr/local/pgsql/lib
gmake

And it all worked.

Thanks for your help

Ewan


> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: 25 November 2003 17:14
> To: Ewan Leith
> Cc: 'pgsql-ports(at)postgresql(dot)org'
> Subject: Re: [PORTS] Trouble compiling postgres 7.4 on aix 4.3.3 using
> gcc 
> 
> 
> 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
> 
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo(at)postgresql(dot)org so 
> that your
>       message can get through to the mailing list cleanly
> 

pgsql-ports by date

Next:From: Karl DeBisschopDate: 2003-11-27 02:27:53
Subject: Comments on PostgreSQL client wrapper proposal
Previous:From: Peter EisentrautDate: 2003-11-25 17:38:05
Subject: Re: Solaris build of 7.4 problem with --enable-thread-safety

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group