<div dir="ltr">Hi Nozomi, <div>I have found the cause which is the lower version pg_config came with Solaris. </div><div>Though I have modified the make file to use the V9.1 pg_config but during make stage it still used the older one. </div>
<div>Now the problem is solved. </div><div><br></div><div>Thanks a lot for your help. </div><div>Cheers, </div><div>E</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 2, 2013 at 5:33 PM, Nozomi Anzai <span dir="ltr">&lt;<a href="mailto:anzai@sraoss.co.jp" target="_blank">anzai@sraoss.co.jp</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
&gt; &gt; I can not find the ld.so.conf under /etc nor ldconfig under /sbin<br>
&gt; &gt;<br>
&gt; &gt; I am using Solaris 10 by the way.<br>
&gt; &gt; Could you please advise?<br>
<br>
</div>Sorry, my answer was for CentOS/RHEL, not for Solaris. Could you try with<br>
&quot;crle&quot; command?<br>
<div class="im"><br>
&gt; bash-3.2$ /usr/local/pgsql/bin/psql -f ./pgpool-regclass.sql template1<br>
&gt; psql:./pgpool-regclass.sql:4: ERROR:  incompatible library<br>
&gt; &quot;/usr/local/pgsql/lib/pgpool-regclass.so&quot;: missing magic block<br>
&gt; HINT:  Extension libraries are required to use the PG_MODULE_MAGIC macro.<br>
<br>
</div>I think this message also means pgpool cannot find PostgreSQL libraries<br>
and headers in /usr/local/pgsql or use ones in /postgres/9.1-pgdg/ (it is<br>
wrong now).<br>
Could you try to install pgpool again like this?<br>
<br>
$ ./configure --with-pgsql=/usr/local/pgsql<br>
$ make<br>
$ make install<br>
<br>
$ cd sql/pgpool-recovery/<br>
$ make install<br>
$ /usr/local/pgsql/bin/initdb -D {dirname}<br>
$ /usr/local/pgsql/bin/pg_ctl start -D {dirname}<br>
$ /usr/local/pgsql/bin/psql -f ./pgpool-regclass.sql template1<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; In the mean time, I have built the Postgres 9.1 with the gcc on the Solaris<br>
&gt; box and when I tried again to insert the extensions(pgpool-regclass.sql and<br>
&gt; pgpool-recovery.sql)<br>
&gt; The error for pgpool-regclass.sql is differernt.  see below:<br>
&gt;<br>
&gt; bash-3.2$ /usr/local/pgsql/bin/psql -f ./pgpool-regclass.sql template1<br>
&gt; psql:./pgpool-regclass.sql:4: ERROR:  incompatible library<br>
&gt; &quot;/usr/local/pgsql/lib/pgpool-regclass.so&quot;: missing magic block<br>
&gt; HINT:  Extension libraries are required to use the PG_MODULE_MAGIC macro.<br>
&gt; bash-3.2$<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ethan<br>
&gt;<br>
&gt; On Fri, Nov 29, 2013 at 6:40 PM, Ethan Shin &lt;<a href="mailto:easonkie2nd@gmail.com">easonkie2nd@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi Nozomi,<br>
&gt; &gt; Thanks a lot for picking this up.<br>
&gt; &gt; I can not find the ld.so.conf under /etc nor ldconfig under /sbin<br>
&gt; &gt;<br>
&gt; &gt; I am using Solaris 10 by the way.<br>
&gt; &gt; Could you please advise?<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Ethan<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Fri, Nov 29, 2013 at 6:37 PM, Ethan Shin &lt;<a href="mailto:easonkie2nd@gmail.com">easonkie2nd@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Hi Nozomi,<br>
&gt; &gt;&gt; Thanks a lot for picking this up.<br>
&gt; &gt;&gt; I can not find the ld.so.conf under /etc nor ldconfig under /sbin<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I am using Solaris 10 by the way.<br>
&gt; &gt;&gt; Could you please advise?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards,<br>
&gt; &gt;&gt; Ethan<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Fri, Nov 29, 2013 at 3:03 PM, Nozomi Anzai &lt;<a href="mailto:anzai@sraoss.co.jp">anzai@sraoss.co.jp</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; Hi,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Could you try after adding the library path to PostgresQL into<br>
&gt; &gt;&gt;&gt; ld.so.conf?<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; ex.)<br>
&gt; &gt;&gt;&gt; # vi /etc/ld.so.conf<br>
&gt; &gt;&gt;&gt; include ld.so.conf.d/*.conf<br>
&gt; &gt;&gt;&gt; /postgres/9.1-pgdg/lib<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; # /sbin/ldconfig<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; &gt; Hi Gentlemen,<br>
&gt; &gt;&gt;&gt; &gt; I am trying to execute the pgpool-recovery.sql but being prompted<br>
&gt; &gt;&gt;&gt; below could not load lib pgpool-recovery.so error.<br>
&gt; &gt;&gt;&gt; &gt; Can you please help me to address this?<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; bash-3.2$ psql -f ./pgpool-recovery.sql template1<br>
&gt; &gt;&gt;&gt; psql:./pgpool-recovery.sql:4: ERROR:  could not load library<br>
&gt; &gt;&gt;&gt; &quot;/postgres/9.1-pgdg/lib/pgpool-recovery.so&quot;: ld.so.1: postgres: fatal:<br>
&gt; &gt;&gt;&gt; relocation error: file /postgres/9.1-pgdg/lib/pgpool-recovery.so: symbol<br>
&gt; &gt;&gt;&gt; DirectFunctionCall1: referenced symbol not found<br>
&gt; &gt;&gt;&gt; &gt; psql:./pgpool-recovery.sql:9: ERROR:  could not load library<br>
&gt; &gt;&gt;&gt; &quot;/postgres/9.1-pgdg/lib/pgpool-recovery.so&quot;: ld.so.1: postgres: fatal:<br>
&gt; &gt;&gt;&gt; relocation error: file /postgres/9.1-pgdg/lib/pgpool-recovery.so: symbol<br>
&gt; &gt;&gt;&gt; DirectFunctionCall1: referenced symbol not found<br>
&gt; &gt;&gt;&gt; &gt; psql:./pgpool-recovery.sql:14: ERROR:  could not load library<br>
&gt; &gt;&gt;&gt; &quot;/postgres/9.1-pgdg/lib/pgpool-recovery.so&quot;: ld.so.1: postgres: fatal:<br>
&gt; &gt;&gt;&gt; relocation error: file /postgres/9.1-pgdg/lib/pgpool-recovery.so: symbol<br>
&gt; &gt;&gt;&gt; DirectFunctionCall1: referenced symbol not found<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; bash-3.2$ ldd -d pgpool-recovery.so<br>
&gt; &gt;&gt;&gt; &gt;        symbol not found: textout               (./pgpool-recovery.so)<br>
&gt; &gt;&gt;&gt; &gt;        symbol not found: textin                (./pgpool-recovery.so)<br>
&gt; &gt;&gt;&gt; &gt;        symbol not found: DataDir               (./pgpool-recovery.so)<br>
&gt; &gt;&gt;&gt; &gt;        symbol not found: InterruptPending<br>
&gt; &gt;&gt;&gt;  (./pgpool-recovery.so)<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; Thanks very much in advance!<br>
&gt; &gt;&gt;&gt; &gt; Regards,<br>
&gt; &gt;&gt;&gt; &gt; Ethan<br>
&gt; &gt;&gt;&gt; &gt; _______________________________________________<br>
&gt; &gt;&gt;&gt; &gt; pgpool-general mailing list<br>
&gt; &gt;&gt;&gt; &gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt; &gt;&gt;&gt; &gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; --<br>
&gt; &gt;&gt;&gt; Nozomi Anzai<br>
&gt; &gt;&gt;&gt; SRA OSS, Inc. Japan<br>
&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt; pgpool-general mailing list<br>
&gt; &gt;&gt;&gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt; &gt;&gt;&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
<br>
<br>
--<br>
Nozomi Anzai<br>
SRA OSS, Inc. Japan<br>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</div></div></blockquote></div><br></div>