Pcap develop package is needed in compiling tcpdump

On a fresh VoidLinux, I compiled tcpdump source code and met following errors during configuration:

# ../configure CFLAGS='-g -O0'
......
checking for local pcap library... not found
checking for pkg-config... no
checking for pcap-config... no
checking for main in -lpcap... no
configure: error: see the INSTALL doc for more info

I was sure libpcap was already installed. After some investigating, I found the root cause was libpcap-devel was needed:

# xbps-install -Suv libpcap-devel
......

Then the issue was fixed.

Build legacy test files in HElib

In HElib src directory, there are some files which begin with Test_ prefix. Since HElib uses CMake to build it, these Test_* files won’t be compiled by default. To build and use them, ENABLE_LEGACY_TEST option should be turned ON:

$ cmake -DENABLE_LEGACY_TEST=ON ..
$ make

The executable files will be generated in bin folder:

$ cd bin/
$ ls
Test_approxNums     Test_bootstrapping  Test_General    Test_PAlgebra      Test_PtrVector          Test_ThinEvalMap
Test_binaryArith    Test_EaCx           Test_intraSlot  Test_Permutations  Test_Replicate          Test_Timing
Test_binaryCompare  Test_EvalMap        Test_IO         Test_PolyEval      Test_tableLookup
Test_Bin_IO         Test_extractDigits  Test_matmul     Test_Powerful      Test_ThinBootstrapping