How to build lttng on RHEL 9?

David Aldrich via lttng-dev <[email protected]> Mon, 19 Jan 2026 16:00:44 +0000
Newsgroups org.lttng.lists.lttng-dev
Message-ID <CAJK_ieh7GpnMBe-J3ktiU4EmE2puqafgx4pmEBoJsbqKz9LEEA@mail.gmail.com>
Hi

I have a build error for lttng-modules-2.14.3 on RHEL 9.6:

lttng-modules-2.14.3/src/lttng-statedump-impl.c:408:20: error:
=E2=80=98dev_base_lock=E2=80=99 undeclared (first use in this function); di=
d you mean
=E2=80=98device_lock=E2=80=99?
  408 |         read_lock(&dev_base_lock);
      |                    ^~~~~~~~~~~~~

Please can you advise me how to fix this?

(I am only building from source because I assume lttng packages aren't
available for RHEL 9).

Thanks in advance
David