ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

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

From: jungle Boogie <jungleboogie0@xxxxxxxxx>
Date: Thu, 19 Apr 2018 11:01:36 -0700
On 19 April 2018 at 09:43, Guy Harris <guy@xxxxxxxxxxxx> wrote:
> On Apr 18, 2018, at 10:21 PM, jungle boogie <jungleboogie0@xxxxxxxxx> wrote:
>
>> Thus said Guy Harris on Wed, 18 Apr 2018 22:14:10 -0700
>>
>>> So what does
>>>      find /usr/include/mit-krb5 -name krb5.h -print
>>> print?
>>
>> We have this...
>>
>> $ find /usr/include/mit-krb5 -name krb5.h -print
>> /usr/include/mit-krb5/krb5/krb5.h
>> /usr/include/mit-krb5/krb5.h
>
> So we have krb5.h, in the location that pkg-config (fixed it this time! :-)) says it's in, but the compiler isn't finding it.
>
> What happens if you run
>
>         make VERBOSE=1
>
> to try to build with CMake?  That should show the command line, to indicate whether "-isystem /usr/include/mit-krb5" is being passed to the compiler or not.


Does this help? I don't know if it will...

[ 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
./asn1/kerberos/packet-kerberos-template.c:259:18: fatal error:
krb5.h: No such file or directory
compilation terminated.
epan/dissectors/CMakeFiles/dissectors.dir/build.make:33116: recipe for
target 'epan/dissectors/CMakeFiles/dissectors.dir/packet-kerberos.c.o'
failed
make[2]: *** [epan/dissectors/CMakeFiles/dissectors.dir/packet-kerberos.c.o]
Error 1
make[2]: Leaving directory '/home/jungle/bin/wireshark'
CMakeFiles/Makefile2:2417: recipe for target
'epan/dissectors/CMakeFiles/dissectors.dir/all' failed
make[1]: *** [epan/dissectors/CMakeFiles/dissectors.dir/all] Error 2
make[1]: Leaving directory '/home/jungle/bin/wireshark'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2




-- 
-------
inum: 883510009027723
sip: jungleboogie@xxxxxxxxxxxx