BUG #17100: undefined reference to `pg_qsort and pq_xxx - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17100: undefined reference to `pg_qsort and pq_xxx
Date
Msg-id 17100-8838037599130224@postgresql.org
Whole thread Raw
Responses Re: BUG #17100: undefined reference to `pg_qsort and pq_xxx  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@gmail.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@xxx ~]# yum install postgresql-devel
Followed the steps as :https://github.com/brianc/node-postgres/issues/124 
it not helped to resolve the issue.


pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #17093: invalid primary checkpoint record
Next
From: Sergei Kornilov
Date:
Subject: Re: BUG #17099: Problem with EXECUTE and JSON