ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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

From: chuck c <bubbasnmp@xxxxxxxxx>
Date: Tue, 27 Sep 2022 08:57:32 -0500
Since you have been working on it for a while, have you updated your master and rebased the MR branch?

On Tue, Sep 27, 2022 at 7:06 AM Eugène Adell <eugene.adell@xxxxxxxxx> wrote:
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.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe