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

From: M Tarkeshwar Rao <m(dot)tarkeshwar(dot)rao(at)ericsson(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Cc: Ashutosh Mishra B <ashutosh(dot)b(dot)mishra(at)ericsson(dot)com>, Saloni Singh <saloni(dot)singh(at)ericsson(dot)com>
Subject: undefined reference to `pg_snprintf when we upgraded libpq version from 10.3 to 12.3
Date: 2020-10-07 13:52:03
Message-ID: AM6PR0702MB37832527E6FADE9229CAF1CAAE0A0@AM6PR0702MB3783.eurprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2020-10-07 13:53:34 Re: What version specification used by PG community developers?
Previous Message Adrian Klaver 2020-10-07 13:47:25 Re: What version specification used by PG community developers?