pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anton Voloshin <a.voloshin@postgrespro.ru>
To: Rachel Heaton <rachelmheaton@gmail.com>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: pchampion@vmware.com
Subject: Re: [PATCH] Print error when libpq-refs-stamp fails
Date: Mon, 4 Oct 2021 23:40:02 +0700
Message-ID: <bd2c8409-d6b3-5de9-ba0f-40c1381f630f@postgrespro.ru> (raw)
In-Reply-To: <CADJcwiVL20955HCNzDqz9BEDr6A77pz6-nac5sbZVvhAEMijLg@mail.gmail.com>
References: <CADJcwiVL20955HCNzDqz9BEDr6A77pz6-nac5sbZVvhAEMijLg@mail.gmail.com>

Hello,

On 28/09/2021 05:55, Rachel Heaton wrote:
> Hello,
> 
> While developing I got this error and it was difficult to figure out 
> what was going on.
> 
> Thanks to Jacob, I was able to learn the context of the failure, so we 
> created this small patch.

-	! nm -A -u $< 2>/dev/null | grep -v __cxa_atexit | grep exit
+	@if nm -a -u $< 2>/dev/null | grep -v __cxa_atexit | grep exit; then \
+		echo 'libpq must not be linked against any library calling exit'; 
exit 1; \
+	fi

Could you please confirm that the change from -A to -a in nm arguments 
in this patch is intentional?

-- 
Anton Voloshin
Postgres Professional, The Russian Postgres Company
https://postgrespro.ru





view thread (9+ messages)  latest in thread

Message-ID: <bd2c8409-d6b3-5de9-ba0f-40c1381f630f@postgrespro.ru>
Permalink:  ../bd2c8409-d6b3-5de9-ba0f-40c1381f630f@postgrespro.ru/
Also on:    postgresql.org/message-id/bd2c8409-d6b3-5de9-ba0f-40c1381f630f@postgrespro.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: a.voloshin@postgrespro.ru, rachelmheaton@gmail.com, pchampion@vmware.com
  Subject: Re: [PATCH] Print error when libpq-refs-stamp fails
  In-Reply-To: <bd2c8409-d6b3-5de9-ba0f-40c1381f630f@postgrespro.ru>
  References: <CADJcwiVL20955HCNzDqz9BEDr6A77pz6-nac5sbZVvhAEMijLg@mail.gmail.com> <bd2c8409-d6b3-5de9-ba0f-40c1381f630f@postgrespro.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox