pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Undefined symbol error - psql CLI client
8+ messages / 3 participants
[nested] [flat]

* Undefined symbol error - psql CLI client
@ 2018-12-19 06:19 Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 10:49 ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Srimal | PickMe @ 2018-12-19 06:19 UTC (permalink / raw)
  To: pgsql-bugs

Hi,

psql returns the following error.

/usr/lib/postgresql/11/bin/psql: symbol lookup error:
/usr/lib/postgresql/11/bin/psql: undefined symbol:
PQsetErrorContextVisibility

Operating system : Ubuntu 18.04LTS
PostgreSQL version : 11.1

Thanks.

-- 
*Regards,*

*Srimal*

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Undefined symbol error - psql CLI client
  2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
@ 2018-12-19 10:49 ` Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:21   ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  0 siblings, 1 reply; 8+ messages in thread

From: Pavel Stehule @ 2018-12-19 10:49 UTC (permalink / raw)
  To: Srimal | PickMe <srimal@pickme.lk>; +Cc: pgsql-bugs

Hi

st 19. 12. 2018 v 9:44 odesílatel Srimal | PickMe <srimal@pickme.lk> napsal:

> Hi,
>
> psql returns the following error.
>
> /usr/lib/postgresql/11/bin/psql: symbol lookup error:
> /usr/lib/postgresql/11/bin/psql: undefined symbol:
> PQsetErrorContextVisibility
>

Maybe you have a old libpq library. Do you have installed some older
Postgres client on your comp?


> Operating system : Ubuntu 18.04LTS
> PostgreSQL version : 11.1
>
> Thanks.
>
> --
> *Regards,*
>
> *Srimal*
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Undefined symbol error - psql CLI client
  2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 10:49 ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
@ 2018-12-19 11:21   ` Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:23     ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Srimal | PickMe @ 2018-12-19 11:21 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-bugs

Hi,

The issue came after I upgrade Postgres from version 10 to 11. That may be
the reason.

On Wed, Dec 19, 2018 at 4:19 PM Pavel Stehule <pavel.stehule@gmail.com>
wrote:

> Hi
>
> st 19. 12. 2018 v 9:44 odesílatel Srimal | PickMe <srimal@pickme.lk>
> napsal:
>
>> Hi,
>>
>> psql returns the following error.
>>
>> /usr/lib/postgresql/11/bin/psql: symbol lookup error:
>> /usr/lib/postgresql/11/bin/psql: undefined symbol:
>> PQsetErrorContextVisibility
>>
>
> Maybe you have a old libpq library. Do you have installed some older
> Postgres client on your comp?
>
>
>> Operating system : Ubuntu 18.04LTS
>> PostgreSQL version : 11.1
>>
>> Thanks.
>>
>> --
>> *Regards,*
>>
>> *Srimal*
>>
>

-- 
*Regards,*

*Srimal*

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Undefined symbol error - psql CLI client
  2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 10:49 ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:21   ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
@ 2018-12-19 11:23     ` Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:33       ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  0 siblings, 1 reply; 8+ messages in thread

From: Pavel Stehule @ 2018-12-19 11:23 UTC (permalink / raw)
  To: Srimal | PickMe <srimal@pickme.lk>; +Cc: pgsql-bugs

st 19. 12. 2018 v 12:22 odesílatel Srimal | PickMe <srimal@pickme.lk>
napsal:

> Hi,
>
> The issue came after I upgrade Postgres from version 10 to 11. That may be
> the reason.
>

maybe libpq was not updated, or there there are more libpq and older has
higher priority



> On Wed, Dec 19, 2018 at 4:19 PM Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
>
>> Hi
>>
>> st 19. 12. 2018 v 9:44 odesílatel Srimal | PickMe <srimal@pickme.lk>
>> napsal:
>>
>>> Hi,
>>>
>>> psql returns the following error.
>>>
>>> /usr/lib/postgresql/11/bin/psql: symbol lookup error:
>>> /usr/lib/postgresql/11/bin/psql: undefined symbol:
>>> PQsetErrorContextVisibility
>>>
>>
>> Maybe you have a old libpq library. Do you have installed some older
>> Postgres client on your comp?
>>
>>
>>> Operating system : Ubuntu 18.04LTS
>>> PostgreSQL version : 11.1
>>>
>>> Thanks.
>>>
>>> --
>>> *Regards,*
>>>
>>> *Srimal*
>>>
>>
>
> --
> *Regards,*
>
> *Srimal*
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Undefined symbol error - psql CLI client
  2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 10:49 ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:21   ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:23     ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
@ 2018-12-19 11:33       ` Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:54         ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Srimal | PickMe @ 2018-12-19 11:33 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-bugs

I have these packages installed.

[image: image.png]



On Wed, Dec 19, 2018 at 4:54 PM Pavel Stehule <pavel.stehule@gmail.com>
wrote:

>
>
> st 19. 12. 2018 v 12:22 odesílatel Srimal | PickMe <srimal@pickme.lk>
> napsal:
>
>> Hi,
>>
>> The issue came after I upgrade Postgres from version 10 to 11. That may
>> be the reason.
>>
>
> maybe libpq was not updated, or there there are more libpq and older has
> higher priority
>
>
>
>> On Wed, Dec 19, 2018 at 4:19 PM Pavel Stehule <pavel.stehule@gmail.com>
>> wrote:
>>
>>> Hi
>>>
>>> st 19. 12. 2018 v 9:44 odesílatel Srimal | PickMe <srimal@pickme.lk>
>>> napsal:
>>>
>>>> Hi,
>>>>
>>>> psql returns the following error.
>>>>
>>>> /usr/lib/postgresql/11/bin/psql: symbol lookup error:
>>>> /usr/lib/postgresql/11/bin/psql: undefined symbol:
>>>> PQsetErrorContextVisibility
>>>>
>>>
>>> Maybe you have a old libpq library. Do you have installed some older
>>> Postgres client on your comp?
>>>
>>>
>>>> Operating system : Ubuntu 18.04LTS
>>>> PostgreSQL version : 11.1
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> *Regards,*
>>>>
>>>> *Srimal*
>>>>
>>>
>>
>> --
>> *Regards,*
>>
>> *Srimal*
>>
>

-- 
*Regards,*

*Srimal*

Attachments:

image.png (image/png, 43.5K) download view image
^ permalink raw reply [nested|flat] 8+ messages in thread

* Re: Undefined symbol error - psql CLI client
  2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 10:49 ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:21   ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:23     ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:33       ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
@ 2018-12-19 11:54         ` Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 14:21           ` Re: Undefined symbol error - psql CLI client Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Pavel Stehule @ 2018-12-19 11:54 UTC (permalink / raw)
  To: Srimal | PickMe <srimal@pickme.lk>; +Cc: pgsql-bugs

st 19. 12. 2018 v 12:33 odesílatel Srimal | PickMe <srimal@pickme.lk>
napsal:

> I have these packages installed.
>
> [image: image.png]
>
>
>
> On Wed, Dec 19, 2018 at 4:54 PM Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
>
>>
>>
>> st 19. 12. 2018 v 12:22 odesílatel Srimal | PickMe <srimal@pickme.lk>
>> napsal:
>>
>>> Hi,
>>>
>>> The issue came after I upgrade Postgres from version 10 to 11. That may
>>> be the reason.
>>>
>>
>> maybe libpq was not updated, or there there are more libpq and older has
>> higher priority
>>
>
maybe there are broken dependency between releases, or some other

>
>>
>>
>>> On Wed, Dec 19, 2018 at 4:19 PM Pavel Stehule <pavel.stehule@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> st 19. 12. 2018 v 9:44 odesílatel Srimal | PickMe <srimal@pickme.lk>
>>>> napsal:
>>>>
>>>>> Hi,
>>>>>
>>>>> psql returns the following error.
>>>>>
>>>>> /usr/lib/postgresql/11/bin/psql: symbol lookup error:
>>>>> /usr/lib/postgresql/11/bin/psql: undefined symbol:
>>>>> PQsetErrorContextVisibility
>>>>>
>>>>
>>>> Maybe you have a old libpq library. Do you have installed some older
>>>> Postgres client on your comp?
>>>>
>>>>
>>>>> Operating system : Ubuntu 18.04LTS
>>>>> PostgreSQL version : 11.1
>>>>>
>>>>> Thanks.
>>>>>
>>>>> --
>>>>> *Regards,*
>>>>>
>>>>> *Srimal*
>>>>>
>>>>
>>>
>>> --
>>> *Regards,*
>>>
>>> *Srimal*
>>>
>>
>
> --
> *Regards,*
>
> *Srimal*
>

Attachments:

image.png (image/png, 43.5K) download view image
^ permalink raw reply [nested|flat] 8+ messages in thread

* Re: Undefined symbol error - psql CLI client
  2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 10:49 ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:21   ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:23     ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:33       ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:54         ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
@ 2018-12-19 14:21           ` Alvaro Herrera <alvherre@2ndquadrant.com>
  2018-12-19 18:22             ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  0 siblings, 1 reply; 8+ messages in thread

From: Alvaro Herrera @ 2018-12-19 14:21 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: Srimal | PickMe <srimal@pickme.lk>; pgsql-bugs

On 2018-Dec-19, Pavel Stehule wrote:

> st 19. 12. 2018 v 12:33 odesílatel Srimal | PickMe <srimal@pickme.lk>
> napsal:
> 
> maybe there are broken dependency between releases, or some other


> >>>>> /usr/lib/postgresql/11/bin/psql: symbol lookup error:
> >>>>> /usr/lib/postgresql/11/bin/psql: undefined symbol:
> >>>>> PQsetErrorContextVisibility

I bet there is another libpq that is being picked up.
PQsetErrorContextVisibility was added in 9.6.  Maybe
ldd /usr/lib/postgresql/11/bin/psql
would give a clue.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Undefined symbol error - psql CLI client
  2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 10:49 ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:21   ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:23     ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 11:33       ` Re: Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
  2018-12-19 11:54         ` Re: Undefined symbol error - psql CLI client Pavel Stehule <pavel.stehule@gmail.com>
  2018-12-19 14:21           ` Re: Undefined symbol error - psql CLI client Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2018-12-19 18:22             ` Srimal | PickMe <srimal@pickme.lk>
  0 siblings, 0 replies; 8+ messages in thread

From: Srimal | PickMe @ 2018-12-19 18:22 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Pavel Stehule <pavel.stehule@gmail.com>; pgsql-bugs

Hi,

Yes, it was using an incorrect libpq version which comes with Pipelinedb
(See the attached screenshot). I have uninstalled Pipelinedb since I'm not
using that anymore. The issue is fixed now.

[image: image.png]


Thank you all for the great support.


On Wed, Dec 19, 2018 at 7:51 PM Alvaro Herrera <alvherre@2ndquadrant.com>
wrote:

> On 2018-Dec-19, Pavel Stehule wrote:
>
> > st 19. 12. 2018 v 12:33 odesílatel Srimal | PickMe <srimal@pickme.lk>
> > napsal:
> >
> > maybe there are broken dependency between releases, or some other
>
>
> > >>>>> /usr/lib/postgresql/11/bin/psql: symbol lookup error:
> > >>>>> /usr/lib/postgresql/11/bin/psql: undefined symbol:
> > >>>>> PQsetErrorContextVisibility
>
> I bet there is another libpq that is being picked up.
> PQsetErrorContextVisibility was added in 9.6.  Maybe
> ldd /usr/lib/postgresql/11/bin/psql
> would give a clue.
>
> --
> Álvaro Herrera                https://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>


-- 
*Regards,*

*Srimal*

Attachments:

image.png (image/png, 58.3K) download view image
^ permalink raw reply [nested|flat] 8+ messages in thread


end of thread, other threads:[~2018-12-19 18:22 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-19 06:19 Undefined symbol error - psql CLI client Srimal | PickMe <srimal@pickme.lk>
2018-12-19 10:49 ` Pavel Stehule <pavel.stehule@gmail.com>
2018-12-19 11:21   ` Srimal | PickMe <srimal@pickme.lk>
2018-12-19 11:23     ` Pavel Stehule <pavel.stehule@gmail.com>
2018-12-19 11:33       ` Srimal | PickMe <srimal@pickme.lk>
2018-12-19 11:54         ` Pavel Stehule <pavel.stehule@gmail.com>
2018-12-19 14:21           ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-12-19 18:22             ` Srimal | PickMe <srimal@pickme.lk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox