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.94.2) (envelope-from ) id 1rSG4a-00CT5t-7E for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jan 2024 12:40:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rSG4Y-00Cj3q-SU for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jan 2024 12:40:10 +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.94.2) (envelope-from ) id 1rSG4Y-00Cj3i-Gb for pgsql-hackers@lists.postgresql.org; Tue, 23 Jan 2024 12:40:10 +0000 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSG4R-002xbe-MT for pgsql-hackers@lists.postgresql.org; Tue, 23 Jan 2024 12:40:09 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 60FCA114009B; Tue, 23 Jan 2024 07:40:02 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 23 Jan 2024 07:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706013602; x= 1706100002; bh=9NvW4vQjUTbZtRfz9/NV3IIhbipHacK1w6OGB62w7TM=; b=l CEihAQtvmn5wg8MHxOtP1ugUHRpqv3K3BXxR2d8sQQVypk9b+51PH5B/tFmuchjq daEGmG2nR0lUUBY0Sg7LCo0mqP4x6zF3GmmQdCM9t5BFi9eOF+/ZxR1FIAd4ucZh bvUbyhV/e5V09k02dHeN8MAZRnWlfeFyFDjSCq6CvwUtrka7PMiMiH//zxvNArqV 0r/f+dkBDcPJ43nFKoAz0f3z93prJuQuDFIoViacg6gKAUOrhRuiGsrhYJL3LcRk xc6swjCcPvAtwH1NqGKaAmyVtCUPJ3y7jz9wYO5+nb2kW2uHfts9rqfPMX6MWe5w jqwpUHKaBIYUspUhCUhTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekkedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Jan 2024 07:40:00 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1706013598; bh=NatBh1WRtXCY2yLlDlnr5OMsANdtwfA3dgEvABp6lyY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=kpWya/5NlPSuK3BdsiYx2ykoZV83B8vDh9YHJrpwQQA0snXXKblthkHlJxE9RZK9b HMyb/xIqTjaDYfycqhcbcc8ds0ZB/5ibc9zxQk512OPATUdOlFEpT3tgi+pQYaqmsy eQWdDpgYI+dVEdjpMq1Kf7Or01O/wPEcF9KR4LkUbFsJg1hf0/gfRrZ7nnwBPz9/5a /znxACOH+Xq4taijd8RCTJTHWIIqwt59mwW/5KcmOb2fEb20LNQArKI5AHN+mITvfO 3pmsNbIAkT/KT0SrijFzpfpF1a7ClLpaFNnfxGSMtoEdGQPYtkow2ORU1Rh5Di3IxJ ZJQUVyygzNfBQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id D07B498; Tue, 23 Jan 2024 13:39:58 +0100 (CET) Date: Tue, 23 Jan 2024 13:39:58 +0100 From: Alvaro Herrera To: Heikki Linnakangas Cc: Pg Hackers Subject: Re: make BuiltinTrancheNames less ugly Message-ID: <202401231239.tmz5lq4dxice@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202401231147.clytrnaysp43@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Jan-23, Alvaro Herrera wrote: > ... oh, actually FreeBSD failed with this strange problem while linking: > [11:39:43.550] ld: error: undefined symbol: __dtraceenabled_postgresql___lwlock__wait__start > [11:39:43.551] >>> referenced by lwlock.c:1277 (../src/backend/storage/lmgr/lwlock.c:1277) > [11:39:43.551] >>> lwlock.a.p/lwlock.c.o:(LWLockAcquire) in archive src/backend/storage/lmgr/lwlock.a > [11:39:43.551] >>> referenced by lwlock.c:1442 (../src/backend/storage/lmgr/lwlock.c:1442) > [11:39:43.551] >>> lwlock.a.p/lwlock.c.o:(LWLockAcquireOrWait) in archive src/backend/storage/lmgr/lwlock.a > [11:39:43.551] >>> referenced by lwlock.c:1660 (../src/backend/storage/lmgr/lwlock.c:1660) > [11:39:43.551] >>> lwlock.a.p/lwlock.c.o:(LWLockWaitForVar) in archive src/backend/storage/lmgr/lwlock.a > [11:39:43.551] So what's going on here is that lwlock.c is being compiled to a separate archive (lwlock.a), and when linking it wants to see the dtrace symbols (__dtraceenabled_postgresql___lwlock__wait__start et al) but it looks like they're not defined. I installed systemtap on my machine and reconfigured meson with it so that it uses dtrace, and it compiles successfully. One interesting point: on my ninja log, I see dtrace being invoked, which I do not in the FreeBSD log. I continue to not understand what is going on. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "El sabio habla porque tiene algo que decir; el tonto, porque tiene que decir algo" (Platon).