From: | "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at> |
---|---|
To: | "Rocco Altier *EXTERN*" <RoccoA(at)Routescape(dot)com>, "Tom Lane *EXTERN*" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries ) |
Date: | 2006-09-15 15:05:14 |
Message-ID: | 52EF20B2E3209443BC37736D00C3C1380A626B48@EXADV1.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Rocco Altier wrote:
> Here is the working one:
> initdb needs:
> /usr/lib/libc.a(shr.o)
> /unix
> /usr/lib/libcrypt.a(shr.o)
>
> Here is the broken one:
> initdb needs:
> ../../../src/interfaces/libpq/libpq.so
> /usr/lib/libc.a(shr.o)
> /usr/lib/librtl.a(shr.o)
> /unix
> /usr/lib/libcrypt.a(shr.o)
>
> When run it shows:
> exec(): 0509-036 Cannot load program initdb because of the following
> errors:
> 0509-150 Dependent module libpq.so could not be loaded.
> 0509-022 Cannot load module libpq.so.
> 0509-026 System error: A file or directory in the
> path name does
> not exist.
Yup, that's as expected :^)
Up to now you have built against the static libpq.a
I didn't add the right -blibpath to this patch that
failed for you - the broken initdb is dynamically linked
but does not know where to look for its shared library.
The patch I just submitted to pgsql-patches should take
care of that. It makes the executables look in --libdir.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew - Supernews | 2006-09-15 15:14:10 | Re: New version of money type |
Previous Message | D'Arcy J.M. Cain | 2006-09-15 15:05:01 | Re: New version of money type |