Re: PG 14.1 psql: symbol lookup error: psql: undefined symbol: PQmblenBounded - Mailing list pgsql-bugs

From Tom Lane
Subject Re: PG 14.1 psql: symbol lookup error: psql: undefined symbol: PQmblenBounded
Date
Msg-id 3766309.1637600743@sss.pgh.pa.us
Whole thread Raw
In response to PG 14.1 psql: symbol lookup error: psql: undefined symbol: PQmblenBounded  ("Lembark, Steven" <Steven.Lembark@broadridge.com>)
List pgsql-bugs
"Lembark, Steven" <Steven.Lembark@broadridge.com> writes:
> New installation of PG-14.1 from tarball on RH 8.3 built with gcc-11
> using CFLAGS='-O2 -march=native -pipe' (didn't seem particularly 
> exotic). Sample session is shown below, error appears to happen 
> more-or-less randomly: using "\l+" or "\db+" has caused it a few 
> times. Restarting the psql session and re-issuing the same commands
> does not cause a repeatable error. 

Hmph.  PQmblenBounded is exported by recent versions of libpq.so,
so this would seem to be telling us that psql is sometimes binding
to an older libpq.so.  Most likely the older one is in /usr/lib64
or some other standard place while you dropped the newer one someplace
else.  That's not a usage that Linux is terribly friendly to; you
have to be sure that the executable includes an rpath option pointing
to "someplace else", or that you consistently set the LD_LIBRARY_PATH
environment variable.  The fact that the failure is inconsistent
seems odd, so I'm not sure quite which way it's going wrong for you.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Ronan Dunklau
Date:
Subject: Re: table unreadable after altering related table embedded via a view
Next
From: Andres Freund
Date:
Subject: Re: BUG #17255: Server crashes in index_delete_sort_cmp() due to race condition with vacuum