[Ndn-interest] Issue with installing ndn-cxx

Davide Pesavento davidepesa at gmail.com
Sat Aug 17 12:36:39 PDT 2019


On Fri, Aug 16, 2019 at 6:32 AM Athreya Nagaraj via Ndn-interest
<ndn-interest at lists.cs.ucla.edu> wrote:
>
> Hi all
>
> I was trying to install ndn-cxx from the official sources and I'm getting this error.
>
> [205/206] Linking build/bin/ndnsec
> ./libndn-cxx.so: error: undefined reference to 'EVP_sha3_512'
> ./libndn-cxx.so: error: undefined reference to 'EVP_blake2b512'
> ./libndn-cxx.so: error: undefined reference to 'EVP_blake2s256'
> ./libndn-cxx.so: error: undefined reference to 'EVP_sha3_224'
> ./libndn-cxx.so: error: undefined reference to 'EVP_sha3_256'
> ./libndn-cxx.so: error: undefined reference to 'EVP_sha3_384'
> ./libndn-cxx.so: error: undefined reference to 'EVP_MD_CTX_free'
> ./libndn-cxx.so: error: undefined reference to 'EVP_MD_CTX_new'
> ./libndn-cxx.so: error: undefined reference to 'EVP_PKEY_get_raw_private_key'
> ./libndn-cxx.so: error: undefined reference to 'RSA_pkey_ctx_ctrl'
> ./libndn-cxx.so: error: undefined reference to 'EVP_PKEY_new_raw_private_key'
> collect2: error: ld returned 1 exit status
>
> Waf: Leaving directory `/home/pg/git_projects/ndn-cxx/build'
> Build failed
>  -> task in 'tool-ndnsec' failed with exit status 1 (run with -v to display more information)
>
> Please let me know what could be the cause of this.

I'm guessing you have multiple versions of openssl installed. The
headers of the newer version are used during compilation, thus
enabling the codepaths that call the new functions, but then later an
older version of the library (libcrypto.so) gets picked up by the
linker, and the older version doesn't have the new functions, hence
the "undefined reference" errors.

HTH!

Davide


More information about the Ndn-interest mailing list