BUG #17100: undefined reference to `pg_qsort and pq_xxx

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: anilbommareddy09(at)gmail(dot)com
Subject: BUG #17100: undefined reference to `pg_qsort and pq_xxx
Date: 2021-07-12 08:00:16
Message-ID: 17100-8838037599130224@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17100
Logged by: [BuildError][GCC-10.2.x] undefined reference to `pg_qsort in PostrgreSQL
13.3
Email address: anilbommareddy09(at)gmail(dot)com
PostgreSQL version: 13.3
Operating system: CentoS 8.3
Description:

export CC=gcc
export CXX=g++
Build command:
../configure --prefix=/path/to/pgsql-gcc CFLAGS='-O3 -flto' CXXFLAGS='-O3
-flto'
Error:
-----
<artificial>:(.text.startup+0xc19): undefined reference to `pg_qsort'
<artificial>:(.text.startup+0xe81): undefined reference to `pg_fprintf'
<artificial>:(.text.startup+0xea6): undefined reference to `pg_fprintf'
<artificial>:(.text.startup+0xecb): undefined reference to `pg_fprintf'
<artificial>:(.text.startup+0xef0): undefined reference to `pg_fprintf

I checked that I have these packages installed on the system
[root(at)xxx ~]# yum install postgresql-devel
Followed the steps as :https://github.com/brianc/node-postgres/issues/124
it not helped to resolve the issue.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sergei Kornilov 2021-07-12 08:06:33 Re: BUG #17099: Problem with EXECUTE and JSON
Previous Message Michael Paquier 2021-07-12 06:53:35 Re: BUG #17093: invalid primary checkpoint record