Re: LD_LIBRARY_PATH not honored on Debian unstable

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: LD_LIBRARY_PATH not honored on Debian unstable
Date: 2008-01-09 13:52:28
Message-ID: 4784D19C.1090606@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Markus Schiltknecht wrote:
> Hi,
>
> I'm trying to run 'make check' on a 64bit Debian unstable. That aborts
> after 60 seconds due to not being able to connect to the postmaster.
>
> I figured that there's nothing wrong with the postmaster, rather psql
> can't start up, because it gets linked against an older libpq.so.5. It
> looks like for some reason, it doesn't respect the LD_LIBRARY_PATH env
> variable, see ldd output:
>
> markus(at)argodan:/home/markus/projects/pgsql/sources/current/pgsql/src/test/regress#
> LD_LIBRARY_PATH=/home/markus/projects/pgsql/sources/current/pgsql/src/test/regress/./tmp_check/install//usr/lib
> ldd -r -v tmp_check/install/usr/bin/psql
>
[snip]
> undefined symbol: pg_valid_server_encoding_id
> (tmp_check/install/usr/bin/psql)
> undefined symbol: PQconnectionNeedsPassword
> (tmp_check/install/usr/bin/psql)
>
>
> Giving it an additional LD_PRELOAD for the newish libpq.5.1 helps:
>
> markus(at)argodan:/home/markus/projects/pgsql/sources/current/pgsql/src/test/regress#
>
> LD_PRELOAD=/home/markus/projects/pgsql/sources/current/pgsql/src/test/regress/tmp_check/install/usr/lib/libpq.so.5.1
> LD_LIBRARY_PATH=/home/markus/projects/pgsql/sources/current/pgsql/src/test/regress/./tmp_check/install//usr/lib
> ldd -r -v tmp_check/install/usr/bin/psql
>
[snip]
> Somebody have an idea on what's wrong here? Thanks.
>
>

Smells suspiciously like an rpath problem to me. What are your configure
settings?

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Markus Schiltknecht 2008-01-09 14:11:26 Re: LD_LIBRARY_PATH not honored on Debian unstable
Previous Message A. Kretschmer 2008-01-09 13:52:23 Re: operator suggest " interval / interval = numeric"