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 1vNqeZ-00Gwxd-1Y for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Nov 2025 10:52:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vNqeY-0081dF-07 for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Nov 2025 10:52:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vNqeX-0081d7-29 for pgsql-bugs@lists.postgresql.org; Tue, 25 Nov 2025 10:52:10 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vNqeW-001P9V-01 for pgsql-bugs@lists.postgresql.org; Tue, 25 Nov 2025 10:52:09 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id B528A487171 for ; Tue, 25 Nov 2025 11:52:06 +0100 (CET) Received: from s899.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 9C0214875C8; Tue, 25 Nov 2025 11:52:06 +0100 (CET) Received: from localhost (unknown [172.22.191.6]) by s899.loopia.se (Postfix) with ESMTP id 982712C8BA58; Tue, 25 Nov 2025 11:52:06 +0100 (CET) X-Virus-Scanned: amavis at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s471.loopia.se (amavis); dkim=pass (2048-bit key) header.d=yesql.se Received: from s899.loopia.se ([172.22.191.5]) by localhost (s471.loopia.se [172.22.190.35]) (amavis, port 10024) with UTF8LMTP id h_ph30e_O8_2; Tue, 25 Nov 2025 11:52:06 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.236 Received: from smtpclient.apple (customer-89-255-232-236.stosn.net [89.255.232.236]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id D859E2C8BA77; Tue, 25 Nov 2025 11:52:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1764067926; bh=YMi/F0/882isLujZD8FnrChfpqE+IqpN3kiTqJ4sO4Q=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=kRToYQHmiNij8OHpfnZmL9wGBfRGXjUtNbuBS6JpEpyoDaYv/trFQb/BWy3n8pC6r 5PYDIgInABIatHe/xXUUahOKuTnV8jVNpd3qL/JmVugRvq2sFWYTo90lNJqIidLomo FI5Q9MO1JWYLwyMoQEtOkJDS3SYGPSsFIgHqFitGA4SCGp8Ys7Us8mlvwEQkitlsUF mJFm3BCf3H58DXOyXczVUVabWedoypB3jx5/oGsK9yePrkpeWQHh3L75Qpfb4pu/Kp Z+YQf2qQjX+5/0sjWYS3Ca+kYhLCyGJCAAJvd5HHC+bJY9oKzl4oUMGKn3MXvx6+un J3CV4cBTY8Mng== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.2\)) Subject: Re: BUG #19095: Test if function exit() is used fail when linked static From: Daniel Gustafsson In-Reply-To: Date: Tue, 25 Nov 2025 11:51:55 +0100 Cc: Michael Paquier , Tom Lane , BharatDB , torsten.rupp@gmx.net, pgsql-bugs@lists.postgresql.org, byavuz81@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <483765ED-0490-4972-9769-4943716BE204@yesql.se> References: <19095-6d8256d0c37d4be2@postgresql.org> <2305435.1762929527@sss.pgh.pa.us> <7C7B32ED-5742-49D5-9380-5E02AA5B03C4@yesql.se> <057A2AED-0116-446B-8986-57FDA70CA5A3@yesql.se> To: VASUKI M X-Mailer: Apple Mail (2.3776.700.51.11.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 25 Nov 2025, at 10:11, VASUKI M wrote: > Thanks for this suggestion michael & Nazir for the code,i have made = the changes you said=20 >=20 > Also added the check where it scans for nm in the environment if it is = not present then it gracefully skips the test. +if find_program('nm', required: false, native: true).found() and not = get_option('b_coverage') Sorry for being late to the party, but I wonder why we aren't adding = this check to the toplevel meson.build and configure.ac (via config/programs.m4) = like how we check for all others tools used by the build? Such checks should of = course not fail the configuration, merely record the presence or absence of the = tool. The path can then be exported to = src/interfaces/libpq/{Makefile|meson.build} to use. +open my $fh, '-|', "$nm_path -A -u $input_file 2>/dev/null" This filehandle is never closed. +# ---- Skip entirely on Solaris ---- +if ($Config{osname} =3D~ /solaris/i) { + exit 0; +} This won't work on Windows either, which wasn't checked for in the = Makefile since make isn't used on Windows. -- Daniel Gustafsson