Author Topic: Build error: undefined reference in libbotan  (Read 1444 times)

qrel

  • Newbie
  • *
  • Posts: 1
Build error: undefined reference in libbotan
« on: February 18, 2017, 01:20:19 AM »
Hello, I've tried to compile ovito on ubuntu and got this.. openssl has been already installed on the machine. What is the problem, could you help me please?

Code: [Select]
Writing /home/oem1/ovito2/build/share/ovito/doc/manual/html/display_objects.surface_mesh.html for section(display_objects.surface_mesh)
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_md5@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_camellia_192_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_mod_exp@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_sha224@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_des_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_block_size@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_EncryptInit_ex@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_cmp@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_CTX_free@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_EncryptUpdate@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_mod_mul@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_mod_inverse@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_bin2bn@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_CTX_ctrl@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_nnmod@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_CTX_set_key_length@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_key_length@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_md4@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_aes_128_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_sub@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_MD_CTX_init@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_sha1@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_DigestUpdate@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libsoxr.so.0: undefined reference to `GOMP_parallel@GOMP_4.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_sha384@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_des_ede3_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_add@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_cast5_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_sha256@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `RC4_set_key@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_DigestInit_ex@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_new@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_DigestFinal_ex@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_MD_block_size@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_CTX_cipher@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `RC4@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_CTX_init@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_clear_free@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_DecryptInit_ex@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_MD_CTX_md@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_camellia_256_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_ripemd160@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_aes_256_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_copy@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_seed_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_num_bits@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_MD_CTX_cleanup@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_bf_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_bn2bin@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_CTX_cleanup@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_mul@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_flags@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_dup@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_CIPHER_CTX_set_padding@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_DecryptUpdate@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_camellia_128_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_aes_192_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_rc2_ecb@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_MD_size@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `EVP_sha512@OPENSSL_1.0.0'
//usr/lib/libbotan-1.10.so.1: undefined reference to `BN_CTX_new@OPENSSL_1.0.0'
collect2: error: ld returned 1 exit status
src/plugins/pyscript/CMakeFiles/ovitos.dir/build.make:128:
« Last Edit: February 18, 2017, 01:51:12 AM by qrel »

Alexander Stukowski

  • Administrator
  • Hero Member
  • *****
  • Posts: 588
Re: Build error: undefined reference in libbotan
« Reply #1 on: February 18, 2017, 07:07:32 PM »
I have moved this forum post to a new topic, because it deals with a different kind of compilation error.

Which version of Ubuntu do you work on?

The error message suggests that some dependencies of the Botan library are not met. It could be that OVITO needs to be linked against the openssl library if it's a dependency of Botan, but I am not sure.

The first thing I would try to work around this issue is to deinstall the Botan lib:

sudo apt-get remove libbotan1.10-dev

Then run 'cmake .' again and recompile. OVITO will now be built against the internal copy of the Botan lib that is included in the OVITO repository.