Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyriW-00027j-En for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Feb 2019 05:25:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyriV-0001c0-3w for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Feb 2019 05:25:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyriU-0001bt-Ro for pgsql-bugs@lists.postgresql.org; Wed, 27 Feb 2019 05:25:14 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyriS-0006bg-M5 for pgsql-bugs@lists.postgresql.org; Wed, 27 Feb 2019 05:25:14 +0000 Received: by mail-qk1-x744.google.com with SMTP id f196so9136187qke.10 for ; Tue, 26 Feb 2019 21:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:cc:date:message-id:in-reply-to:references:reply-to :user-agent:mime-version; bh=JQawUPu7dS3DER5M52vhKzzSFzQvys/PpmkIVYWAVfs=; b=iSQBUNVyGTOPRsIYc0Tvr/RB6AUZSQjDTg20J4ffjNZAK/C6TsDD9zhgOVKsmVTeCg UM5YTfdU+H3WZzaWaaMbbraieIeWjZsCTgCve6ImZc9Mm038LH8pTfeW6PCj9sbyGy7b rYv7AMu0Xjwnvutoddjze+okVVU49Lj8LwE+8tm0mXlAQoGuqVEJdNw/QtCwtBX1Wik3 4h8dpYoiMAGQdEgyRQnqGoDhci3HbQgTiuZtlXMr2RrZ2kpLogh1VuxJw+vR4owoOy4e atuwwSwWpPTTx2qlSCHm3HRSNJQfHG9+eXN9F3kUap4grgoXFz1756le3fszXf06Q4xi KDJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:cc:date:message-id:in-reply-to :references:reply-to:user-agent:mime-version; bh=JQawUPu7dS3DER5M52vhKzzSFzQvys/PpmkIVYWAVfs=; b=uNZmGcwqaPB1p94T/dLZLejIOUJp9I8chW+IM4V+gXG301pjP82Q2jmER4Jjmb0q3y BwB1E+EMB4zqrblxMZACWOKodKmCfZzMB/KgwZ9yGVF6yftOBp7PkMeD0Wf0LXjyJoPU 0z0nyK5+rM2qrztftRun5rubpgXnH3lESEcLMEon9SJxxsRa/+pVB4DIrEiqVMs1vAIo EXCqbzR1O1M2UbY1vq2+Zq08c7qZOEBa9K1d4vMm7xxYvugi8kY7zHeurrqqJgjxVyQY 5eCd8RagkZp7GfhwzWcNN9zwRT1sK3exA6QTyS6/Bn9xMeSKwLdoF5p6B0KZT0e2UkqE fNSg== X-Gm-Message-State: AHQUAuZP7W+t9w4V3wJpu4WQ93Fo1UKqu+GIuoRyvTSbIEU07xe9jJT2 ZmBLo073jfv+9JIS/CViaeU= X-Google-Smtp-Source: AHgI3IZQVirVo8gJv5ZPip8n2Bp9nWUyyuOFu+eG50UpN/3NGOK5RcPVC2tkhm9RgrZdsDAYahthAw== X-Received: by 2002:a37:8586:: with SMTP id h128mr902135qkd.322.1551245110830; Tue, 26 Feb 2019 21:25:10 -0800 (PST) Received: from [192.168.2.50] (pool-71-246-251-133.washdc.fios.verizon.net. [71.246.251.133]) by smtp.gmail.com with ESMTPSA id r30sm9656794qtj.45.2019.02.26.21.25.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Feb 2019 21:25:10 -0800 (PST) From: "Guy Rouillier" To: prakash.ramakrishnan.ap@nielsen.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15656: Not able to login database Cc: prakash.ramakrishnan.ap@nielsen.com Date: Wed, 27 Feb 2019 05:25:08 +0000 Message-Id: In-Reply-To: <15656-0d7c966640830876@postgresql.org> References: <15656-0d7c966640830876@postgresql.org> Reply-To: "Guy Rouillier" User-Agent: eM_Client/7.2.34711.0 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------=_MB61C22B81-CE08-4968-9D6B-B267983AC86C" X-Antivirus: Avast (VPS 190226-6, 02/26/2019), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --------=_MB61C22B81-CE08-4968-9D6B-B267983AC86C Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2/26/2019 8:30:37 AM, "PG Bug reporting form"=20 wrote: >The following bug has been logged on the website: > >Bug reference: 15656 >Logged by: ramakrishnan r >Email address: prakash.ramakrishnan.ap@nielsen.com >PostgreSQL version: 10.4 >Operating system: rhel 7.5 >Description: > >Hi Team, > >we are facing in PostgreSQL symbol lookup error and not able to login plea= se >do the needful. > >=3D=3D> export LD_LIBRARY_PATH=3D$/opt/app/PostgreSQL/10/lib:$LD_LIBRARY_P= ATH >postgres@sydcosausd001.enterprisenet.org:/home/postgres >=3D=3D> export LD_LIBRARY_PATH >postgres@sydcosausd001.enterprisenet.org:/home/postgres >=3D=3D> psql -p 5432 >/opt/app/PostgreSQL/10/bin/psql.bin: symbol lookup error: >/opt/app/PostgreSQL/10/bin/psql.bin: undefined symbol: >PQsetErrorContextVisibility >postgres@sydcosausd001.enterprisenet.org:/home/postgres > I just did a fresh install of PG 10.6 on Linux Mint 19.1 Tessa, using=20 the version in the repos: postgres=3D# select version(); version ---------------------------------------------------------------------------= ---------------------------------------------------- PostgreSQL 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1) on x86_64-pc-linux-gnu,=20 compiled by gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0, 64-bit (1 row) I didn't have to do anything with LD_LIBRARY_PATH because I did a=20 default installation. Function PQsetErrorContextVisibility is found=20 here: /usr/lib/x86_64-linux-gnu/libpq.so.5 If I do "ldd /usr/lib/postgresql/10/bin/psql" the second entry I see is=20 this: libpq.so.5 =3D> /usr/lib/x86_64-linux-gnu/libpq.so.5 (0x00007f93b7f20000) So, find where libpq.so.* is installed on your system, and make sure=20 that is on your LD_LIBRARY_PATH. Use ldd to ensure that psql is fully=20 linked to required libraries. -- Guy Rouillier > --------=_MB61C22B81-CE08-4968-9D6B-B267983AC86C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2/26/2019 8:30:37 AM, "PG Bug reporting form" <norep= ly@postgresql.org> wrote:

The following bug has been logged on the website:=
=C2=A0
Bug reference: 15656
Logged by: ramakrishnan r
Email address: prakash.ramakrishnan.ap@niels= en.com
PostgreSQL version: 10.4
Operating system: rhel 7.5
Description:
=C2=A0
Hi Team,
=C2=A0
we are facing in PostgreSQL symbol lookup error a= nd not able to login please
do the needful.
=C2=A0
=3D=3D> export LD_LIBRARY_PATH=3D$/opt/app/Pos= tgreSQL/10/lib:$LD_LIBRARY_PATH
postgres@sydcosausd001.enterprisenet.org:/home/po= stgres
=3D=3D> export LD_LIBRARY_PATH
postgres@sydcosausd001.enterprisenet.org:/home/po= stgres
=3D=3D> psql -p 5432
/opt/app/PostgreSQL/10/bin/psql.bin: symbol looku= p error:
/opt/app/PostgreSQL/10/bin/psql.bin: undefined sy= mbol:
PQsetErrorContextVisibility
postgres@sydcosausd001.enterprisenet.org:/home/po= stgres
=C2=A0
I just did a fresh install of PG 10.6 on Linux Mint 19.1 Tessa, using= the version in the repos:

postgres=3D# select ve= rsion();
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 version =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0
-------------------------------------------------------------= ------------------------------------------------------------------
=C2=A0PostgreSQL 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1) on x86_64-pc-linux-g= nu, compiled by gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0, 64-bit
(1 row= )

I didn't have to do anything with LD_LIBRARY_P= ATH because I did a default installation. =C2=A0Function=C2=A0PQsetErrorCon= textVisibility is found here:

/usr/lib/x86_64-li= nux-gnu/libpq.so.5

If I do "ldd /usr/lib/postgre= sql/10/bin/psql" the second entry I see is this:

libpq.so.5 =3D> /usr/lib/x86_64-linux-gnu/libpq.so.5 (0x00007f93b7f2000= 0)

So, find where=C2=A0libpq.so.* is installed o= n your system, and make sure that is on your LD_LIBRARY_PATH. Use ldd to e= nsure that psql is fully linked to required libraries.

--
Guy Rouillier



--------=_MB61C22B81-CE08-4968-9D6B-B267983AC86C--