On Sep 26, 2025, at 10:46 AM, Jaap Keuter via Wireshark-users <wireshark-users@xxxxxxxxxxxxx> wrote:
> 2) The build configuration (as found in CmakeOptions.txt) uses CMAKE_SYSTEM_NAME equal to “Linux” to assume these libraries are available. This may be too loose.
I'd replace "may be" with "is". There are a lot of Linux distributions, and systemd is not, it appears, a universally-acclaimed and universally-adopted feature.
> 3) The systemd libraries are only used to build the sdjournal extcap plugin, so you don’t need it to build and run Wireshark itself.
>
> In short, I would tweak the CmakeOptions.txt file to always set BUILD_sdjournal to OFF.
So the appropriate CMakeLists.txt file should check whether the systemd libraries are present and only build sdjournal if they are.