Wireshark-dev: Re: [Wireshark-dev] can't compile wireshark version 4.0
From: "Maynard, Christopher" <Christopher.Maynard@xxxxxxx>
Date: Thu, 20 Oct 2022 16:57:00 +0000
I suppose it's complaining about this test as always evaluating to false: ba[i] < '\0' What if you simply remove that part, does it compile then? - Chris From: Wireshark-dev <wireshark-dev-bounces@xxxxxxxxxxxxx> On Behalf Of wi0k@xxxxxxxxxxx Sent: Wednesday, October 19, 2022 10:17 AM To: wireshark-dev@xxxxxxxxxxxxx; wi0k@xxxxxxxxxxx Subject: [Wireshark-dev] can't compile wireshark version 4.0 I can't compile wireshark version 4.0 on Raspberry Pi ubuntu 22.04 Here is the error from make. I've attached cmake success and make error logs.txt, CMakeError.log and CMakeOutput.log [ 84%] Building CXX object ui/qt/CMakeFiles/qtui.dir/sequence_dialog.cpp.o [ 84%] Building CXX object ui/qt/CMakeFiles/qtui.dir/service_response_time_dialog.cpp.o [ 84%] Building CXX object ui/qt/CMakeFiles/qtui.dir/show_packet_bytes_dialog.cpp.o /home/wptracy/wireshark/ui/qt/show_packet_bytes_dialog.cpp: In member function ‘void ShowPacketBytesDialog::symbolizeBuffer(QByteArray&)’: /home/wptracy/wireshark/ui/qt/show_packet_bytes_dialog.cpp:474:20: error: comparison is always false due to limited range of data type [-Werror=type-limits] 474 | if ((ba[i] < '\0' || ba[i] >= ' ') && ba[i] != (char)0x7f && !g_ascii_isprint(ba[i])) { cc1plus: all warnings being treated as errors make[2]: *** [ui/qt/CMakeFiles/qtui.dir/build.make:1806: ui/qt/CMakeFiles/qtui.dir/show_packet_bytes_dialog.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:10816: ui/qt/CMakeFiles/qtui.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 wptracy@wptracy-desktop:~/wireshark/build$ I have these libraries installed: wptracy@wptracy-desktop:~/wireshark/build$ sudo apt install gcc \ g++\ libglib2.0-dev \ libc-ares-dev \ libpcap-dev \ libpcre2-dev \ flex \ make \ python3 \ libgcrypt-dev\ qttools5-dev \ qttools5-dev-tools \ libqt5svg5-dev \ qtmultimedia5-dev \ qtbase5-dev \ qtchooser \ qt5-qmake \ qtbase5-dev-tools\ qt6-base-dev \ qt6-multimedia-dev \ qt6-tools-dev \ qt6-tools-dev-tools \ qt6-l10n-tools \ libqt6core5compat6-dev \ libxkbcommon-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libgcrypt20-dev' instead of 'libgcrypt-dev' flex is already the newest version (2.6.4-8build2). g++ is already the newest version (4:11.2.0-1ubuntu1). gcc is already the newest version (4:11.2.0-1ubuntu1). libc-ares-dev is already the newest version (1.18.1-1build1). libgcrypt20-dev is already the newest version (1.9.4-3ubuntu3). libglib2.0-dev is already the newest version (2.72.1-1). libpcap-dev is already the newest version (1.10.1-4build1). libvulkan-dev is already the newest version (1.3.204.1-2). libxkbcommon-dev is already the newest version (1.4.0-1). make is already the newest version (4.3-4.1build1). freeglut3-dev is already the newest version (2.8.1-6). libqt5svg5-dev is already the newest version (5.15.3-1). libqt6core5compat6-dev is already the newest version (6.2.4-1). qt6-base-dev is already the newest version (6.2.4+dfsg-2ubuntu1). qt6-l10n-tools is already the newest version (6.2.4-1). qt6-multimedia-dev is already the newest version (6.2.4-1). qt6-tools-dev is already the newest version (6.2.4-1). qt6-tools-dev-tools is already the newest version (6.2.4-1). qtchooser is already the newest version (66-2build1). qtmultimedia5-dev is already the newest version (5.15.3-1). qttools5-dev is already the newest version (5.15.3-1). qttools5-dev-tools is already the newest version (5.15.3-1). libpcre2-dev is already the newest version (10.39-3ubuntu0.1). python3 is already the newest version (3.10.6-1~22.04). qt5-qmake is already the newest version (5.15.3+dfsg-2ubuntu0.2). qtbase5-dev is already the newest version (5.15.3+dfsg-2ubuntu0.2). qtbase5-dev-tools is already the newest version (5.15.3+dfsg-2ubuntu0.2). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. wptracy@wptracy-desktop:~/wireshark/build$ -- Pat Tracy | +1 303-933-9035 CONFIDENTIALITY NOTICE: This message is the property of International Game Technology PLC and/or its subsidiaries and may contain proprietary, confidential or trade secret information. This message is intended solely for the use of the addressee. If you are not the intended recipient and have received this message in error, please delete this message from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited.
- References:
- [Wireshark-dev] can't compile wireshark version 4.0
- From: wi0k@xxxxxxxxxxx
- [Wireshark-dev] can't compile wireshark version 4.0
- Prev by Date: Re: [Wireshark-dev] can't compile wireshark version 4.0
- Next by Date: Re: [Wireshark-dev] can't compile wireshark version 4.0
- Previous by thread: Re: [Wireshark-dev] can't compile wireshark version 4.0
- Next by thread: [Wireshark-dev] Wiki editor permission request
- Index(es):