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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 19 Apr 2018 11:51:54 -0700
On Apr 19, 2018, at 11:01 AM, jungle Boogie <jungleboogie0@xxxxxxxxx> wrote:

> Does this help?

Yes.

> [ 66%] Building C object
> epan/dissectors/CMakeFiles/dissectors.dir/packet-kerberos.c.o
> cd /home/jungle/bin/wireshark/epan/dissectors && /usr/bin/cc
> -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL
> -I/home/jungle/bin/wireshark -isystem /usr/include/glib-2.0 -isystem
> /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
> /usr/include/libxml2 -isystem /usr/include/x86_64-linux-gnu/qt5
> -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem
> /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem
> /usr/include/x86_64-linux-gnu
> -I/home/jungle/bin/wireshark/epan/dissectors
> -I/home/jungle/bin/wireshark/epan  -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  -O2 -g -DNDEBUG -fPIC   -Werror -o
> CMakeFiles/dissectors.dir/packet-kerberos.c.o   -c
> /home/jungle/bin/wireshark/epan/dissectors/packet-kerberos.c

No sign of "-isystem /usr/include/mit-krb5" in those compiler flags, so Wireshark's CMake files are broken - they're not adding Kerberos's compiler flags.  Works fine if the header is in /usr/include or /usr/local/include, not so fine if it's not, as on your Ubuntu machine.

I'll see if I can figure out what it should be doing.