Re: undefined reference to `pg_snprintf when we upgraded libpq version from 10.3 to 12.3

From: Martín Marqués <martin(dot)marques(at)gmail(dot)com>
To: M Tarkeshwar Rao <m(dot)tarkeshwar(dot)rao(at)ericsson(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, Ashutosh Mishra B <ashutosh(dot)b(dot)mishra(at)ericsson(dot)com>, Saloni Singh <saloni(dot)singh(at)ericsson(dot)com>
Subject: Re: undefined reference to `pg_snprintf when we upgraded libpq version from 10.3 to 12.3
Date: 2020-12-16 21:42:35
Message-ID: CABeG9LvK3wZPPh=7QW69NCb2HJvKCRs_BpAkysUTMjN7OJdXhA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Did you also upgrade the libpq devel package?

To start, what distribution are you using, and how did you upgrade?
Are you using RHEL or Debian based packages? Did you upgrade libpq
using packages (yum/dnf update libpq or apt upgrade libpq)?

In any case, this seems like a problem with development package from a
different version then the library installed.

Kind regards, Martín

El mié, 7 oct 2020 a las 10:52, M Tarkeshwar Rao
(<m(dot)tarkeshwar(dot)rao(at)ericsson(dot)com>) escribió:
>
> Hi all,
>
>
>
> We upgraded the libpq version from 10.3 to 12.3. Now we are getting following linker error in compilation.
>
> linux64/lib/libPostgreSQLClient.so: undefined reference to `pg_snprintf(char*, unsigned long, char const*, ...)'
>
>
>
> When we analyzed it we found following diff in libpq. What could be the solution of this error.
>
>
>
> %/postgres/10.3/lib
>
> >nm libpq.a | grep sprint
>
> U sprintf
>
> U sprintf
>
> U sprintf
>
> U sprintf
>
> U sprintf
>
> U sprintf
>
>
>
> %:/postgres/12.3/lib >nm libpq.a | grep sprint
>
> U pg_sprintf
>
> U pg_sprintf
>
> U pg_sprintf
>
> U pg_sprintf
>
>
>
> Regards
>
> Tarkeshwar

--
Martín Marqués
It’s not that I have something to hide,
it’s that I have nothing I want you to see

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2020-12-16 22:41:05 Re: Very large table: Partition it or not?
Previous Message Jack Orenstein 2020-12-16 19:44:25 Very large table: Partition it or not?