public inbox for [email protected]
help / color / mirror / Atom feedFrom: Barry Walker <[email protected]>
To: [email protected]
Subject: Help Resolving Compiler Errors With enable-dtrace Flag
Date: Sun, 20 Oct 2024 12:30:55 -0400
Message-ID: <CAAiHg9UhjM6XN5XV_NMB184v0UO4H8rHGaBrtwJr0HHok8pJVA@mail.gmail.com> (raw)
Hey folks,
I'm working on a custom version of Postgres that is roughly in line with
16.4 but has customizations in it. I'm trying to compile this custom
version (on Linux) with `--enable-dtrace` but I'm running into an issue
during the linker stage. I've done a clean and full rebuild but that
doesn't help fix the problem. I get these errors for all probes:
access/transam/xact.o(.note.stapsdt+0x24): error: undefined reference
to 'postgresql_transaction__start_semaphore'
access/transam/xact.o(.note.stapsdt+0x78): error: undefined reference
to 'postgresql_transaction__commit_semaphore'
access/transam/xact.o(.note.stapsdt+0xcc): error: undefined reference
to 'postgresql_transaction__abort_semaphore'
I can see the probes.h file gets generated what looks to be correctly,
specifically these:
__extension__ extern unsigned short
postgresql_transaction__commit_semaphore __attribute__ ((unused))
__attribute__ ((section (".probes")));
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 some
difference in the custom version that is causing the errors but I'm having
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 find
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 any
differences in the custom version that is messing with the linker.
Thanks!
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Help Resolving Compiler Errors With enable-dtrace Flag
In-Reply-To: <CAAiHg9UhjM6XN5XV_NMB184v0UO4H8rHGaBrtwJr0HHok8pJVA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox