Thread: Building Pg 8.2.4 on AIX 5.3 doesn't produce shared libs?

Building Pg 8.2.4 on AIX 5.3 doesn't produce shared libs?

From
Sic Transit Gloria Mundi
Date:

I would like to use Perl, DBI, and DBD::Pg on AIX.  As I understand it, I need a shared lib version of the client libs for this.

When building on AIX5.3 ML04 (powerpc_power5, 64 bit), it seems only the static libraries are built.  This seems true with either xlc (8.x) or gcc (3.3.2).  Everything works, there are just no ./lib/*.so at the end of the process.

I see the 8.2 history mentions a fix was added to allow shared libs to build on aix.

This must be something basic I don't understand.  Any pointers to get on the right track would be greatly appreciated.

Tim


Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Re: Building Pg 8.2.4 on AIX 5.3 doesn't produce shared libs?

From
Tom Lane
Date:
Sic Transit Gloria Mundi <sitrglmu@yahoo.com> writes:
> I would like to use Perl, DBI, and DBD::Pg on AIX.  As I understand it, I need a shared lib version of the client
libsfor this. 

> When building on AIX5.3 ML04 (powerpc_power5, 64 bit), it seems only the static libraries are built.  This seems true
witheither xlc (8.x) or gcc (3.3.2).  Everything works, there are just no ./lib/*.so at the end of the process. 

IIRC, on AIX the .a files actually are shared libraries.  You don't need
anything named .so.  Check the -hackers and -patches archives from back
around mid-Sept 2006 for details.

            regards, tom lane

Re: Building Pg 8.2.4 on AIX 5.3 doesn't produce shared libs?

From
"Albe Laurenz"
Date:
> Sic Transit Gloria Mundi writes:
>> I would like to use Perl, DBI, and DBD::Pg on AIX.  As I
>> understand it, I need a shared lib version of the client libs
>> for this.
>>
>> When building on AIX5.3 ML04 (powerpc_power5, 64 bit), it
>> seems only the static libraries are built.  This seems true
>> with either xlc (8.x) or gcc (3.3.2).  Everything works,
>> there are just no ./lib/*.so at the end of the process.
>
> IIRC, on AIX the .a files actually are shared libraries.  You don't
need
> anything named .so.  Check the -hackers and -patches archives from
back
> around mid-Sept 2006 for details.

Correct. libpq.a IS the shared library.
Run 'ar -t libpq.a' to see the shared object therein.

Try to run 'ldd psql', the output should contain 'libpq.a(libpq.so)'
if it is dynamically linked.

Yours,
Laurenz Albe