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 1t2bfN-005Sn1-2M for pgsql-general@arkaria.postgresql.org; Sun, 20 Oct 2024 19:32:41 +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 1t2bfI-000vEC-V3 for pgsql-general@arkaria.postgresql.org; Sun, 20 Oct 2024 19:32:37 +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 1t2bfI-000vAp-Jz for pgsql-general@lists.postgresql.org; Sun, 20 Oct 2024 19:32:36 +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.94.2) (envelope-from ) id 1t2bfG-001swo-38 for pgsql-general@postgresql.org; Sun, 20 Oct 2024 19:32:35 +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 49KJWWag1371062; Sun, 20 Oct 2024 15:32:32 -0400 From: Tom Lane To: Barry Walker cc: pgsql-general@postgresql.org Subject: Re: Help Resolving Compiler Errors With enable-dtrace Flag In-reply-to: References: Comments: In-reply-to Barry Walker message dated "Sun, 20 Oct 2024 12:30:55 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1371060.1729452752.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 20 Oct 2024 15:32:32 -0400 Message-ID: <1371061.1729452752@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Barry Walker writes: > I have compiled vanilla pg16.4 with the same flags and the probes got > created and linked as expected with no issues so I'm assuming there is s= ome > difference in the custom version that is causing the errors but I'm havi= ng > a hard time tracking it down. I'm wondering if anyone here has any > experience with this error or has any hints as to why the linker can't f= ind > these definitions or even just where the actual definitions for these > probes should live so I can try to work backwards and see if there is an= y > differences in the custom version that is messing with the linker. I'd read https://www.postgresql.org/docs/current/dynamic-trace.html#DEFINING-TRACE-= POINTS and then go see if those tracepoints are fully conforming to the coding rules in the modified version. A plausible bet is that their entries in probes.d don't entirely match up with the calls in the source code. You could compare the relevant bits of code between vanilla and modified 16.4 if the problem isn't immediately obvious. regards, tom lane