Wireshark-users: Re: [Wireshark-users] fatal error: krb5.h: No such file or directory

From: jungle boogie <jungleboogie0@xxxxxxxxx>
Date: Wed, 18 Apr 2018 21:13:22 -0700
Thus said Guy Harris on Wed, 18 Apr 2018 21:04:01 -0700
On Apr 18, 2018, at 8:56 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:

So what does

	pkg-config --list-all | egrep krb5

print?

And, if you remove the directory in which you ran CMake (I'm assuming you didn't run it in the top-level source directory), re-create it, and run CMake, what does *it* print?

-- Generating build using CMake 3.5.1
-- No custom file found in /home/jungle/bin/wireshark
-- Configuration types:
-- CMAKE_C_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- V: 2.9.0, MaV: 2, MiV: 9, PL: 0, EV: .
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Checking for c-compiler flag: -fexcess-precision=fast
-- Checking for c++-compiler flag: -fexcess-precision=fast
-- Checking for c-compiler flag: -Wall
-- Checking for c-compiler flag: -Wextra
-- Checking for c-compiler flag: -Wendif-labels
-- Checking for c-compiler flag: -Wpointer-arith
-- Checking for c-compiler flag: -Wformat-security
-- Checking for c-compiler flag: -fwrapv
-- Checking for c-compiler flag: -fno-strict-overflow
-- Checking for c-compiler flag: -Wvla
-- Checking for c-compiler flag: -Waddress
-- Checking for c-compiler flag: -Wattributes
-- Checking for c-compiler flag: -Wdiv-by-zero
-- Checking for c-compiler flag: -Wignored-qualifiers
-- Checking for c-compiler flag: -Wpragmas
-- Checking for c-compiler flag: -Wno-overlength-strings
-- Checking for c-compiler flag: -Wno-long-long
-- Checking for c-compiler flag: -Wheader-guard
-- Checking for c-compiler flag: -Wframe-larger-than=16384
-- Checking for c-compiler flag: -Wc++-compat
-- Checking for c-compiler flag: -Wunused-const-variable
-- Checking for c-compiler flag: -Wshadow
-- Checking for c-compiler flag: -Wno-pointer-sign
-- Checking for c-compiler flag: -Wold-style-definition
-- Checking for c-compiler flag: -Wstrict-prototypes
-- Checking for c-compiler flag: -Wlogical-op
-- Checking for c-compiler flag: -Wjump-misses-init
-- Checking for c-compiler flag: -Wshorten-64-to-32
-- Checking for c-compiler flag: -Werror=implicit
-- Checking for c-compiler flag: -Wcomma
-- Checking for c++-compiler flag: -Wall
-- Checking for c++-compiler flag: -Wextra
-- Checking for c++-compiler flag: -Wendif-labels
-- Checking for c++-compiler flag: -Wpointer-arith
-- Checking for c++-compiler flag: -Wformat-security
-- Checking for c++-compiler flag: -fwrapv
-- Checking for c++-compiler flag: -fno-strict-overflow
-- Checking for c++-compiler flag: -Wvla
-- Checking for c++-compiler flag: -Waddress
-- Checking for c++-compiler flag: -Wattributes
-- Checking for c++-compiler flag: -Wdiv-by-zero
-- Checking for c++-compiler flag: -Wignored-qualifiers
-- Checking for c++-compiler flag: -Wpragmas
-- Checking for c++-compiler flag: -Wno-overlength-strings
-- Checking for c++-compiler flag: -Wno-long-long
-- Checking for c++-compiler flag: -Wheader-guard
-- Checking for c++-compiler flag: -Wframe-larger-than=16384
-- Checking for c++-compiler flag: -Wcomma
statuscheck linker flag - test linker flags: -Wl,--as-needed
statuscheck linker flag - test linker flags: -pie
-- Package List: BCG729 CAP CARES DOXYGEN GCRYPT GLIB2 GMODULE2 GNUTLS GTHREAD2 Gettext Git JSONGLIB KERBEROS LEX LIBSSH LUA LZ4 LibXml2 M MaxMindDB NGHTTP2 NL PCAP POD Perl PythonInterp Qt5Core Qt5LinguistTools Qt5Multimedia Qt5PrintSupport Qt5Svg Qt5Widgets SBC SETCAP SMI SNAPPY SPANDSP YACC ZLIB
-- Checking for one of the modules 'bcg729'
-- Could NOT find bcg729 (missing:  BCG729_INCLUDE_DIR BCG729_LIBRARY)
-- BCG729 NOT FOUND
-- CAP FOUND
-- CAP includes: /usr/include
-- CAP libs: /usr/lib/x86_64-linux-gnu/libcap.so
-- Could NOT find CARES (missing: CARES_LIBRARY CARES_INCLUDE_DIR) (Required is at least version "1.5.0")
-- CARES NOT FOUND
-- DOXYGEN FOUND
-- DOXYGEN executable: /usr/bin/doxygen
-- GCRYPT FOUND
-- GCRYPT includes: /usr/include
-- GCRYPT libs: /usr/lib/x86_64-linux-gnu/libgcrypt.so;/usr/lib/x86_64-linux-gnu/libgpg-error.so
-- GLIB2 FOUND
-- GLIB2 includes: /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- GLIB2 libs: /usr/lib/x86_64-linux-gnu/libglib-2.0.so
-- GMODULE2 FOUND
-- GMODULE2 includes: /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- GMODULE2 libs: gmodule-2.0;glib-2.0
-- GNUTLS FOUND
-- GNUTLS includes: /usr/include
-- GNUTLS libs: /usr/lib/x86_64-linux-gnu/libgnutls.so
-- GTHREAD2 FOUND
-- GTHREAD2 includes: /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- GTHREAD2 libs: gthread-2.0;glib-2.0
-- GETTEXT FOUND
-- Git FOUND
-- Could NOT find JSONGLIB (missing: JSONGLIB_LIBRARY JSONGLIB_INCLUDE_DIR)
-- JSONGLIB NOT FOUND
-- KERBEROS FOUND
-- KERBEROS libs: krb5;k5crypto;com_err
-- LEX FOUND
-- LEX executable: /usr/bin/flex
-- Could NOT find LIBSSH (missing: LIBSSH_LIBRARIES LIBSSH_INCLUDE_DIRS LIBSSH_VERSION) (Required is at least version "0.6")
-- LIBSSH NOT FOUND
-- Checking for one of the modules 'lua5.2;lua-5.2;lua52;lua5.1;lua-5.1;lua51;lua5.0;lua-5.0;lua50'
-- Checking for one of the modules 'lua<=5.2.99'
-- Could NOT find LUA (missing:  LUA_VERSION_NUM)
-- LUA NOT FOUND
-- Checking for one of the modules 'lz4;liblz4'
-- Could NOT find LZ4 (missing:  LZ4_INCLUDE_DIR LZ4_LIBRARY)
-- LZ4 NOT FOUND
-- LIBXML2 FOUND
-- LibXml2 includes: /usr/include/libxml2
-- LibXml2 libs: /usr/lib/x86_64-linux-gnu/libxml2.so
-- M FOUND
-- M includes: /usr/include
-- M libs: /usr/lib/x86_64-linux-gnu/libm.so
-- Could NOT find MaxMindDB (missing: MAXMINDDB_LIBRARY MAXMINDDB_INCLUDE_DIR)
-- MaxMindDB NOT FOUND
-- Checking for one of the modules 'libnghttp2'
-- Could NOT find Nghttp2 (missing:  NGHTTP2_INCLUDE_DIR NGHTTP2_LIBRARY)
-- NGHTTP2 NOT FOUND
-- Checking for modules 'libnl-3.0;libnl-genl-3.0;libnl-route-3.0'
--   No package 'libnl-3.0' found
--   No package 'libnl-genl-3.0' found
--   No package 'libnl-route-3.0' found
-- Checking for one of the modules 'libnl-2.0'
-- Checking for one of the modules 'libnl-1'
-- Could NOT find NL (missing:  NL_LIBRARY NL_INCLUDE_DIR)
-- NL NOT FOUND
-- PCAP FOUND
-- PCAP includes: /usr/include
-- PCAP libs: /usr/lib/x86_64-linux-gnu/libpcap.so
-- POD FOUND
-- PERL FOUND
-- Perl executable: /usr/bin/perl
-- Found PythonInterp: /usr/bin/python (found suitable version "2.7.12", minimum required is "2")
-- PYTHONINTERP FOUND
-- Qt5Core FOUND
-- Qt5Core includes: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64
-- Qt5Core libs: Qt5::Core
-- Qt5Core definitions: -DQT_CORE_LIB
-- Qt5LinguistTools FOUND
-- Qt5Multimedia FOUND
-- Qt5Multimedia includes: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtMultimedia;/usr/include/x86_64-linux-gnu/qt5/QtNetwork;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include
-- Qt5Multimedia libs: Qt5::Multimedia
-- Qt5Multimedia definitions: -DQT_MULTIMEDIA_LIB;-DQT_NETWORK_LIB;-DQT_CORE_LIB;-DQT_GUI_LIB
-- Qt5PrintSupport FOUND
-- Qt5PrintSupport includes: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64;/usr/include
-- Qt5PrintSupport libs: Qt5::PrintSupport
-- Qt5PrintSupport definitions: -DQT_PRINTSUPPORT_LIB;-DQT_WIDGETS_LIB;-DQT_GUI_LIB;-DQT_CORE_LIB
-- Qt5Svg FOUND
-- Qt5Svg includes: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtSvg;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64;/usr/include
-- Qt5Svg libs: Qt5::Svg
-- Qt5Svg definitions: -DQT_SVG_LIB;-DQT_WIDGETS_LIB;-DQT_GUI_LIB;-DQT_CORE_LIB
-- Qt5Widgets FOUND
-- Qt5Widgets includes: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64;/usr/include
-- Qt5Widgets libs: Qt5::Widgets
-- Qt5Widgets definitions: -DQT_WIDGETS_LIB;-DQT_GUI_LIB;-DQT_CORE_LIB
-- Could NOT find SBC (missing:  SBC_INCLUDE_DIR SBC_LIBRARY)
-- SBC NOT FOUND
-- SETCAP FOUND
-- SETCAP executable: /sbin/setcap
-- Could NOT find SMI (missing:  SMI_LIBRARY SMI_INCLUDE_DIR)
-- SMI NOT FOUND
-- Checking for one of the modules 'libsnappy'
-- Could NOT find SNAPPY (missing:  SNAPPY_INCLUDE_DIR SNAPPY_LIBRARY)
-- SNAPPY NOT FOUND
-- SPANDSP FOUND
-- SPANDSP includes: /usr/include/x86_64-linux-gnu
-- SPANDSP libs: /usr/lib/x86_64-linux-gnu/libspandsp.so
-- YACC FOUND
-- YACC executable: /usr/bin/yacc
-- ZLIB FOUND
-- ZLIB includes: /usr/include
-- ZLIB libs: /usr/lib/x86_64-linux-gnu/libz.so
CMake Warning at CMakeLists.txt:1144 (message):
  Not using c-ares.


CMake Warning at CMakeLists.txt:1145 (message):
  DNS name resolution for captures will be disabled.


-- Checking for C++ 11 support (Required by Qt 5.7 and later)
-- Could NOT find ASCIIDOCTOR (missing:  ASCIIDOCTOR_EXECUTABLE)
-- Could NOT find XSLTPROC (missing:  XSLTPROC_EXECUTABLE)
-- No custom file found in /home/jungle/bin/wireshark/epan/crypt
-- No custom file found in /home/jungle/bin/wireshark/epan/dissectors
-- No custom file found in /home/jungle/bin/wireshark/epan/dissectors/asn1
-- Checking for c-compiler flag: -msse4.2
-- No custom file found in /home/jungle/bin/wireshark/ui/qt
-- C-Flags: -fvisibility=hidden -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wframe-larger-than=16384 -Wc++-compat -Wshadow -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -fexcess-precision=fast -std=gnu99 -- CXX-Flags: -std=c++11 -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wframe-larger-than=16384 -fexcess-precision=fast
-- Warnings as errors: -Werror
--
-- The following OPTIONAL packages have been found:

 * CAP
 * DOXYGEN
 * GMODULE2
 * GNUTLS (required version >= 2.12.0)
 * Gettext
 * Git
 * KERBEROS
 * LibXml2
 * PCAP
 * POD
 * Perl
 * SETCAP
 * PkgConfig
* SPANDSP , a library of many DSP functions for telephony , <http://www.soft-switch.org/>
   Support for G.722 and G.726 codecs in RTP player
 * ZLIB
 * PythonInterp

-- The following REQUIRED packages have been found:

 * GCRYPT (required version >= 1.4.2)
 * GLIB2
 * GTHREAD2
 * LEX
 * M
 * Qt5Core
 * Qt5LinguistTools
 * Qt5Network (required version >= 5.6.1)
 * Qt5Gui (required version >= 5.6.1)
 * Qt5Multimedia
 * Qt5PrintSupport
 * Qt5Svg
 * Qt5Widgets
 * YACC

-- The following OPTIONAL packages have not been found:

* BCG729 , G.729 decoder , <https://www.linphone.org/technical-corner/bcg729/overview>
   Support for G.729 codec in RTP player
 * CARES (required version >= 1.5.0)
 * JSONGLIB
* LIBSSH (required version >= 0.6) , Library for implementing SSH clients , <https://www.libssh.org/>
   extcap remote SSH interfaces (sshdump, ciscodump)
 * LUA
* LZ4 , LZ4 is lossless compression algorithm used in some protocol (CQL...) , <http://www.lz4.org>
   LZ4 decompression in CQL and Kafka dissectors
 * MaxMindDB
 * NGHTTP2 , HTTP/2 C library and tools , <https://nghttp2.org>
   Header decompression in HTTP2
 * NL
* SBC , Bluetooth low-complexity, subband codec (SBC) decoder , <https://git.kernel.org/pub/scm/bluetooth/sbc.git>
   Support for playing SBC codec in RTP player
 * SMI
* SNAPPY , A fast compressor/decompressor from Google , <http://google.github.io/snappy/>
   Snappy decompression in CQL and Kafka dissectors
 * Asciidoctor (required version >= 1.5)
 * XSLTPROC

-- Configuring done
-- Generating done
-- Build files have been written to: /home/jungle/bin/wireshark