Wireshark-dev: [Wireshark-dev] DBUILD_logray=ON breaks linking

From: Eugène Adell <eugene.adell@xxxxxxxxx>
Date: Tue, 27 Sep 2022 13:49:09 +0200
Hi all,

I've been working on MR !2445 for a while and almost finished this
work, things were going rather well until DBUILD_logray=ON was added
on the "Job Code Checks + Clang Warnings" job. It's still compiling
and linking on my dev environment, but adding DBUILD_logray=ON is
reproducing the same error there, which indeed is mentionning logray :

/home/eugene/wireshark/ui/qt/protocol_preferences_menu.cpp:296:
undefined reference to
`WiresharkMainWindow::WiresharkMainWindow(QWidget*)'
/usr/bin/ld: /home/eugene/wireshark/ui/qt/protocol_preferences_menu.cpp:303:
undefined reference to `typeinfo for WiresharkMainWindow'
/usr/bin/ld: /home/eugene/wireshark/ui/qt/protocol_preferences_menu.cpp:307:
undefined reference to `WiresharkMainWindow::frameDataForRow(int)
const'
/usr/bin/ld: ui/logray/CMakeFiles/ui_logray.dir/__/qt/protocol_preferences_menu.cpp.o:
in function `ProtocolPreferencesMenu::enumCustomTCPOverridePreferenceTriggered()':
/home/eugene/wireshark/ui/qt/protocol_preferences_menu.cpp:417:
undefined reference to `typeinfo for WiresharkMainWindow'
/usr/bin/ld: /home/eugene/wireshark/ui/qt/protocol_preferences_menu.cpp:418:
undefined reference to `WiresharkMainWindow::frameDataForRow(int)
const'

The failed pipeline is online :
https://gitlab.com/eugene.adell/wireshark/-/pipelines/650129481

I haven't found anything in the mailing list archive, and searching in
the pipelines logs with a keyword isn't enabled, as a consequence I am
not able to find any support from similar previous experiences if so
happened for anyone.

Any idea why this compiling flag is breaking and what to do then ?

best regards
E.A.