Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries ) - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries )
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380A626B48@EXADV1.host.magwien.gv.at
Whole thread Raw
Responses Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries )  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: "D'Arcy J.M. Cain"
Date:
Subject: Re: New version of money type
Next
From: Andrew - Supernews
Date:
Subject: Re: New version of money type