The environment in which libpqwalreceiver.so was built has caused it be linked 
with /usr/lib/libpq.so.4 when it should be linked with 
/disk0.7/postgres/postgres/9.0-pgdg/lib/libpq.so.5. This might be because it 
was the first/only libpq found by the linker.

You can probably override this by setting this in the environment in which you 
run/start replication:

setenv LD_LIBRARAY_PATH=/disk0.7/postgres/postgres/9.0-pgdg/lib

But the correct solution is to build libpqwalreceiver.so with the correct linker settings i.e. Use RPATH or the -R flag during the build.
On 10/20/10 13:05, Daniel Harris wrote:
Ah ha, worked out how to use ldd. Not difficult!

Here's what I see:
-bash-3.00# ldd /disk0.7/postgres/postgres/9.0-pgdg/bin/psql
        libpq.so.5 =>    
/disk0.7/postgres/postgres/9.0-pgdg/bin/../lib/libpq.so.5

But:
-bash-3.00# ldd /disk0.7/postgres/postgres/9.0-pgdg/lib/libpqwalreceiver.so
        libpq.so.4 =>    /usr/lib/libpq.so.4

Different libpq.so libraries, as you thought, Onno. Now I just need to work out 
how to point libpqwalreceiever at the right library...

Dan
_______________________________________________
databases-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/databases-discuss

Reply via email to