Re: 9.1.1 build failure : postgres link fails
| От | Rob Sargentg |
|---|---|
| Тема | Re: 9.1.1 build failure : postgres link fails |
| Дата | |
| Msg-id | 4EC9C53E.9080004@gmail.com обсуждение исходный текст |
| Ответ на | Re: 9.1.1 build failure : postgres link fails (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On 11/20/2011 11:05 AM, Tom Lane wrote: > Rob Sargent<robjsargent@gmail.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.
В списке pgsql-general по дате отправления: