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 1pKVar-0006OD-Vu for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jan 2023 02:32:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pKVap-0005fX-PE for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jan 2023 02:32:55 +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 1pKVao-0005f0-L8 for pgsql-hackers@lists.postgresql.org; Wed, 25 Jan 2023 02:32:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKVal-0005dV-R0 for pgsql-hackers@postgresql.org; Wed, 25 Jan 2023 02:32:54 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 0D458320091E; Tue, 24 Jan 2023 21:32:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 24 Jan 2023 21:32:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1674613968; x=1674700368; bh=vpPaL0PDtf eU89e0+hbMF1iwCxO1tOsnFCDYo0SgzTs=; b=5AWjsvJvdHiIxZ+B0ELgTwYyPJ zpY+p2/dpmA+nGS7AdOfI4hRAOxnWJ16Xp0D3tCPKx1C3t3bKNVrKjrMY1s9qYVD zebrUV1RBvi2kxBgXHTbDFsWSovF9GpIAYRoFl/NsVtNmYBwe8BusaRc9PUTyTqO gEosZiM8zXmS91gHZuqCn/mzKWtY00erSwZj2LRFp2cgOQVzej0x/mWPzeOFWeLc mTJmSx5gO+/4q02IEj04utAPkeoFWDbj+9YiBQUCUyQGG+CE8TDoC/hVALpHQs6v hqCVdmqBUQIiXi4F3FfPZinAUXANCa7u67Ssg9eqrHb7+Ycodk/5gPVx53JA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1674613968; x=1674700368; bh=vpPaL0PDtfeU89e0+hbMF1iwCxO1 tOsnFCDYo0SgzTs=; b=Gji2ICZSjNYXGh4FfYrp381QjaHQpjQAlAI+Aoum/AD8 DzMtiTu+vFXV5XtFSHXi7Zoeozuf6L8x/scfprierrJOSg/81UCaR11RsR4R/dI0 KyrPOlM2QMaslaQoqA89J9zjIZ7iS94BShnPvjj2S62cGMLBOxMsCpkEgMAUdkYe +AK3XsoOU/Mf6MPj/nonSq8xkt1fUPmXC/8eO+q9y1FvT5Xn3zi8xgDJkIUOX3Wp JsxxmsGKJnijvY4xJajnj57CW6BezWFFDd0ACDsWLj0zV7BR/QOA8LUWFNMovDAx apjLV7AQWLElTaN99ebtVjUqG2VqCD6PWjgh9oYr9Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvuddgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhephefhteetjeeggeevffekteegieeuueetfeeufeeuieevgfevudetleeg gfekvdfgnecuffhomhgrihhnpeduuddrshhonecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 Jan 2023 21:32:47 -0500 (EST) Date: Tue, 24 Jan 2023 18:32:46 -0800 From: Andres Freund To: Tom Lane , Noah Misch Cc: pgsql-hackers@postgresql.org, Peter Eisentraut , Andrew Dunstan Subject: Re: plpython vs _POSIX_C_SOURCE Message-ID: <20230125023246.trnwn42dnj3e4ikc@awork3.anarazel.de> References: <20230124165814.2njc7gnvubn2amh6@awork3.anarazel.de> <2265665.1674582915@sss.pgh.pa.us> <20230124190721.mi7l5c3n2tsrqjno@awork3.anarazel.de> <2320614.1674594966@sss.pgh.pa.us> <20230125014856.j3ndx2cftjxdvqul@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230125014856.j3ndx2cftjxdvqul@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-01-24 17:48:56 -0800, Andres Freund wrote: > Also for autoconf, I needed to link > $prefix/lib/python3.11/config-3.11/libpython3.11.a > to > $prefix/lib/libpython3.11.a > That might be a python version difference or be related to building python > with --enable-shared - but I see saw other problems without --enable-shared. That actually doesn't quite work right. One needs to either link to the file by name (i.e. just $prefix/lib/libpython3.11.so instead of -lpython3.11), or create a wrapper .a "manually". I.e. ar crs $prefix/lib/libpython3.11.a $prefix/lib/libpython3.11.so I tried quite a few things and got confused between the attempts. > I ran out of energy to test on aix with xlc, I spent way more time on this > than I have already. I'll pick it up later. Building in the background now. Greetings, Andres Freund