Wireshark-dev: Re: [Wireshark-dev] master: link fails on Ubuntu 14.04
From: Peter Wu <[email protected]>
Date: Thu, 31 Jan 2019 12:21:22 +0100
Hi Nicolas,

On Thu, Jan 31, 2019 at 08:45:19AM +0000, Bertin Nicolas wrote:
> After synchronizing with master yesterday, I got this link error (see below) when building on Ubuntu 14.04
> 
> 
> ui/qt/CMakeFiles/qtui.dir/rsa_keys_frame.cpp.o: In function `RsaKeysFrame::verifyKey(char const*, char const*, int*, QString&)':
> /home/bertin/devs/hwc/wireshark/wireshark.devs/ui/qt/rsa_keys_frame.cpp:64: undefined reference to `secrets_verify_key'
> ui/qt/CMakeFiles/qtui.dir/rsa_keys_frame.cpp.o: In function `RsaKeysFrame::on_addFileButton_clicked()':
> /home/bertin/devs/hwc/wireshark/wireshark.devs/ui/qt/rsa_keys_frame.cpp:167: undefined reference to `secrets_verify_key'
> ui/qt/CMakeFiles/qtui.dir/rsa_keys_frame.cpp.o: In function `RsaKeysFrame::on_addItemButton_clicked()':
> /home/bertin/devs/hwc/wireshark/wireshark.devs/ui/qt/rsa_keys_frame.cpp:88: undefined reference to `secrets_get_available_keys'
> collect2: error: ld returned 1 exit status
> 
> I guess it's because GNUTLS version is < 3.2.0 (as reported by cmake) and as such, HAVE_GNUTLS is not defined, leading
> to secrets_verify_key() not compiled in secrets.c

Ubuntu 14.04 has two GnuTLS versions available, 2.8.x and 3.x. Support
for the former was dropped in master. If RSA decryption support is
important to you, install libgnutls28-dev for the 3.x version.

Of course the build should not fail if the GnUTLS 3.x version is
missing, this should fix the build issue without GnuTLS:
https://code.wireshark.org/review/31837
-- 
Kind regards,
Peter Wu
https://lekensteyn.nl