Wireshark-dev: [Wireshark-dev] master: link fails on Ubuntu 14.04
From: Bertin Nicolas <nicolas.bertin@xxxxxxxxxxxxxxxxx>
Date: Thu, 31 Jan 2019 08:45:19 +0000

Hello,


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


Nicolas