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?

От:
Sic Transit Gloria Mundi <sitrglmu@yahoo.com>
Дата:

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?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
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.

			regards, tom lane

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

От:
"Albe Laurenz" <all@adv.magwien.gv.at>
Дата:
> 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
FAQ