Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJ4VP-009Z5H-1V for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Nov 2025 06:38:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJ4VN-009X2m-0j for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Nov 2025 06:38:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJ4VM-009X2d-36 for pgsql-bugs@lists.postgresql.org; Wed, 12 Nov 2025 06:38:56 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJ4VL-006g3t-0l for pgsql-bugs@lists.postgresql.org; Wed, 12 Nov 2025 06:38:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5AC6clgT2305436; Wed, 12 Nov 2025 01:38:47 -0500 From: Tom Lane To: BharatDB cc: torsten.rupp@gmx.net, pgsql-bugs@lists.postgresql.org, michael@paquier.xyz, VASUKI M Subject: Re: BUG #19095: Test if function exit() is used fail when linked static In-reply-to: References: <19095-6d8256d0c37d4be2@postgresql.org> Comments: In-reply-to BharatDB message dated "Wed, 12 Nov 2025 11:23:10 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2305434.1762929527.1@sss.pgh.pa.us> Date: Wed, 12 Nov 2025 01:38:47 -0500 Message-ID: <2305435.1762929527@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk BharatDB writes: >> [1]Changing the grep pattern to match the exact symbol ('grep -x exit') >> prevents such false positives. We might as well remove the test entirely as do that; it would fail to detect "_exit" for example. Additionally, I don't have a lot of faith in "grep -x" being universally portable. POSIX 2018 does specify that switch, but it mentions that it is "historically available only with fgrep". Personally I'm okay with whitelisting pthread_exit() as Torsten suggested. BTW, it looks like libpq's meson.build is missing this check. regards, tom lane