Re: 9.1.1 build failure : postgres link fails

From: Rob Sargentg <robjsargent(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 9.1.1 build failure : postgres link fails
Date: 2011-11-21 03:27:58
Message-ID: 4EC9C53E.9080004@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/20/2011 11:05 AM, Tom Lane wrote:
> Rob Sargent<robjsargent(at)gmail(dot)com> writes:
>> On 11/20/2011 09:24 AM, Tom Lane wrote:
>>> It appears that on Ubuntu, libbsd defines those symbols, which confuses
>>> configure into supposing that they're provided by libc, and then the
>>> link fails because libbsd isn't actually linked into the postmaster.
>>> The question is what's pulling in libbsd though. In the previous report
>>> it came via libedit, which you're not using. I'd try looking in the
>>> config.log file to see what it was linking in the test that decided
>>> setproctitle was available, and then using ldd on each of those
>>> libraries to see which one(s) require libbsd.
>> Will do. Then there's always trying Ubuntu-11?
> Couldn't say. But re-reading this, I wonder if maybe you *are* using
> libedit. Have you got readline installed? If not, configure will try
> libedit as second choice ... so maybe the best fix is to install
> readline (and don't forget readline-devel or local equivalent).
>
> regards, tom lane
I built readline-6.2 from source and got passed linking 'postgres'
executable. Progress! now chasing down libperl

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fpic -shared -o plperl.so plperl.o SPI.o
Util.o -L../../../src/port -Wl,--as-needed
-Wl,-rpath,'/usr/lib/perl/5.10/CORE',--enable-new-dtags
-fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl
-ldl -lm -lpthread -lc -lcrypt
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[3]: *** [plperl.so] Error 1
make[3]: Leaving directory `/home/rob/tools/postgresql-9.1.1/src/pl/plperl'
make[2]: *** [all-plperl-recurse] Error 2
make[2]: Leaving directory `/home/rob/tools/postgresql-9.1.1/src/pl'
make[1]: *** [all-pl-recurse] Error 2
make[1]: Leaving directory `/home/rob/tools/postgresql-9.1.1/src'
make: *** [all-src-recurse] Error 2

I had to make a simlink 'ln -s /usr/lib/libperl.so.5.10
/usr/lib/libperl.so' which I thought was supposed to happen automagically...

BUT
make[1]: Leaving directory `/home/rob/tools/postgresql-9.1.1/config'
All of PostgreSQL successfully made. Ready to install.
PostgreSQL installation complete.

Thank you Tom for the readline tip. Sort of thing that would take me
forever to track down.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ashish Gupta 2011-11-21 08:24:24 Re: Postgres 9.0.4 replication issue: FATAL: requested WAL segment 0000000100000B110000000D has already been removed
Previous Message David Johnston 2011-11-21 03:17:49 Re: Table Design question for gurus (without going to "NoSQL")...