We're now a non-profit! Support open source packet analysis by making a donation.

Wireshark-dev: Re: [Wireshark-dev] Unable to cmake Wireshark on Red Hat 7 due to GLIB2 version

From: chuck c <bubbasnmp@xxxxxxxxx>
Date: Thu, 30 Apr 2020 10:30:22 -0500
Did you run the script to load the pre-reqs?


"Note below the rpm-setup.sh --install-optional step. This should install all the necessary prereqes."

On Thu, Apr 30, 2020 at 10:19 AM Pascal Quantin <pascal@xxxxxxxxxxxxx> wrote:
Hi Mark,

Le jeu. 30 avr. 2020 à 17:16, Brodie, Mark (Refinitiv) <mark.brodie@xxxxxxxxxxxxx> a écrit :

Hi there,


My wireshark build attempt fails during cmake when it checks the version of GLIB2.


-- Checking for one of the modules 'glib-2.0'

CMake Error at /opt/cmake-3.17.2-Linux-x86_64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):

  Could NOT find GLIB2: Found unsuitable version "", but required is at least

  "2.32.0" (found GLIB2_LIBRARY-NOTFOUND)

Call Stack (most recent call first):

  /opt/cmake-3.17.2-Linux-x86_64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:443 (_FPHSA_FAILURE_MESSAGE)

  cmake/modules/FindGLIB2.cmake:106 (find_package_handle_standard_args)

  CMakeLists.txt:1023 (find_package)




GLIB2 is installed with version 2.56.1:


sudo yum info glib2

Loaded plugins: rhnplugin

This system is receiving updates from RHN Classic or Red Hat Satellite.

Installed Packages

Name        : glib2

Arch        : x86_64

Version     : 2.56.1

Release     : 5.el7

Size        : 12 M

Repo        : installed

From repo   : fxspw-7-2002

Summary     : A library of handy utility functions

URL         : http://www.gtk.org

License     : LGPLv2+

Description : GLib is the low-level core library that forms the basis for projects

            : such as GTK+ and GNOME. It provides data structure handling for C,

            : portability wrappers, and interfaces for such runtime functionality

            : as an event loop, threads, dynamic loading, and an object system.

You need the develpoment headers: install glib2-devel package.

Best regards,
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