[Wireshark-users] Re: how to compile without systemd?

2025-10-18 Thread Guy Harris
On Sep 26, 2025, at 10:46 AM, Jaap Keuter via Wireshark-users 
 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.
___
Wireshark-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]


[Wireshark-users] Re: how to compile without systemd?

2025-10-17 Thread Papa Tango
Thank you so much again.

I had been using the command line switch before I wrote to this list, as
you suggested. But once I started modifying the CMakeOptions.txt and I
noticed I could just accomplish the same in there I wanted to dispense with
the command line switch. My attempt to build failed. I had to upgrade my
version of flex. And I rolled back to a prior release. I had been
attempting to compile from the latest commit. I forgot which release off
hand, but not a very old one, and finally everything compiles. I had no
idea it was that easy. I'm no expert in CMake either.

On Mon, Sep 29, 2025 at 11:53 AM Guy Harris  wrote:

> On Sep 29, 2025, at 8:27 AM, Papa Tango  wrote:
>
> > I also altered it to use qt5 over qt6, but that's unrelated.
>
> You don't need to alter it - you can, instead, run CMake with -DUSE_qt6=NO.
>
> And if you *want* to alter it, rather than adding that flag to CMake, you
> can just change CMakeOptions.txt to say
>
> option(USE_qt6 "Use Qt6 (preferred) instead of Qt5" OFF)
>
> rather than
>
> option(USE_qt6 "Use Qt6 (preferred) instead of Qt5" ON)
>
>
___
Wireshark-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]


[Wireshark-users] Re: how to compile without systemd?

2025-10-17 Thread Papa Tango
Thank you for the suggestions. I altered CMakeOptions.txt as suggested. I
also altered it to use qt5 over qt6, but that's unrelated. I am on Devuan
stable. I was missing some qt dev libraries but other than that cmake now
no longer chokes and compilation is proceeding right now but it is not yet
complete. I also realized since writing to this list that I could just use
the distribution's version. It is an older version of wireshark but that is
typical of many distributions.

On Fri, Sep 26, 2025 at 1:58 PM Guy Harris  wrote:

> On Sep 26, 2025, at 10:46 AM, Jaap Keuter via Wireshark-users <
> [email protected]> 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.
>
___
Wireshark-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]


[Wireshark-users] Re: how to compile without systemd?

2025-09-29 Thread Guy Harris
On Sep 29, 2025, at 8:27 AM, Papa Tango  wrote:

> I also altered it to use qt5 over qt6, but that's unrelated.

You don't need to alter it - you can, instead, run CMake with -DUSE_qt6=NO.

And if you *want* to alter it, rather than adding that flag to CMake, you can 
just change CMakeOptions.txt to say

option(USE_qt6 "Use Qt6 (preferred) instead of Qt5" OFF)

rather than

option(USE_qt6 "Use Qt6 (preferred) instead of Qt5" ON)

___
Wireshark-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]


[Wireshark-users] Re: how to compile without systemd?

2025-09-26 Thread Jaap Keuter via Wireshark-users
Hi,

This list works, as would wireshark-dev, which would probably be more 
appropriate.

Anyway, a few points about this:

1) Your system doesn’t need to run systemd, it just needs to have the 
development libraries for it. 
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.
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. Run cmake to build the build system with that and you should be good to 
go.

Out of curiosity, what system software are you running?

Good luck,
Jaap


> On 25 Sep 2025, at 21:16, Papa Tango  wrote:
> 
> I am not a wireshark developer, just a past user. I hope I am writing to the 
> correct mailing list. I was hoping to use wireshark again but I have hit a 
> roadblock. I didn't know if there is any workaround or if anyone could help. 
> 
> Compilation from source fails because the box I am on lacks systemd. It does 
> not appear to be optional, unless I am overlooking the cmake option. Any 
> advice? Obviously I have no need or plans to parse or write to systemd log 
> files, etc. But it appears that systemd has been a dependency of wireshark 
> for a while now? Looking at commit logs, it appears since about 2018? I guess 
> it's been longer than I had recalled since I last had need of wireshark. Any 
> advice would be welcome. Or am I out of luck?
> 
> Many thanks.
> 
> P.

___
Wireshark-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]