Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXR0d-00005J-PG for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 16:40:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXR0b-0000aE-FI for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 16:40:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXR0b-0000a6-2l for pgsql-hackers@lists.postgresql.org; Mon, 04 Oct 2021 16:40:09 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXR0X-0000pQ-GV for pgsql-hackers@lists.postgresql.org; Mon, 04 Oct 2021 16:40:08 +0000 Received: from [192.168.28.72] (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 9ACC221C8B11; Mon, 4 Oct 2021 19:40:03 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1633365603; bh=Z6Hu3sB4cn9h+GBqnllZE9vIy4hiO6R2dN4HG2y88nM=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=EbEU3msOGgoSvUfcghKotukOGqJyTzaQbNRBg1yl4gIZz++OtkztZ0NkDlegJhXxP 5ZrRPniu7dLEF3CEAoxbjno9NoCu9S5usduIWSKxh+DVSMp5qCfwYLVyzLPDbw1hc4 BopRRhSAlzQZkPYYIRDcYiyQGcXGZuX24xHz/DHY= Subject: Re: [PATCH] Print error when libpq-refs-stamp fails To: Rachel Heaton , Postgres hackers Cc: pchampion@vmware.com References: From: Anton Voloshin Message-ID: Date: Mon, 4 Oct 2021 23:40:02 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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