[pgpool-committers: 2864] Re: pgpool: Add pgpool_adm docs.

Tatsuo Ishii ishii at postgresql.org
Wed Dec 9 16:10:49 JST 2015


Usama,

While installing pgpool_adm extension, I noticed that sometimes
pgpool_adm.so failed to load because missing reference to libpcp.so.
To fix this, I have changed src/sql/pgpool_adm/Makefile as follows:

> SHLIB_LINK = -L../../libs/pcp/.libs -lpcp

<S HLIB_LINK =  -L../../libs/pcp/.libs -lpcp -Wl,--as-needed -Wl,-rpath,'${libdir}',--enable-new-dtags

Problem is, ${libdir} is expanded to the libdir where PostgreSQL's
libraries installed (including pgpool_adm.so). But my intention was
${libdir} to point to the libdir which is not necessarily same as
PostgreSQL libdir. It's best to point to the directory (prefix/lib
where prefix is specified by configure). Any idea how to fix?

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp

> Add pgpool_adm docs.
> 
> Also enhance Makefile of pgpool_adm to replace the SHLIB_LINK to add
> modern ld flags. Still have problem though: i.e. ${libdir} should not
> be replaced by PostgreSQL's lib dir, rather than pcplib dir installing
> dir.
> 
> Branch
> ------
> master
> 
> Details
> -------
> http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=f690f9927847c743dfa97dbd3371717a43ea4231
> 
> Modified Files
> --------------
> doc/pgpool-en.html          |  315 ++++++++++++++++++++++++++++++++++++++++++-
> doc/pgpool_adm.odp          |  Bin 0 -> 17456 bytes
> doc/pgpool_adm.png          |  Bin 0 -> 32437 bytes
> src/sql/pgpool_adm/Makefile |    5 +-
> 4 files changed, 317 insertions(+), 3 deletions(-)
> 
> _______________________________________________
> pgpool-committers mailing list
> pgpool-committers at pgpool.net
> http://www.pgpool.net/mailman/listinfo/pgpool-committers


More information about the pgpool-committers mailing list