Arm source compilation and the error [src/im_mad/collectd/collectd] Error 1


(Cem Zafer) #1

I try another shoot for the aarch64 base pine64 machine and this time compile from the source with the following command. Everything seems alright until the “[src/im_mad/collectd/collectd] Error 1” error message. That could be a bug or any missing package or file. Thanks.

root@pine1:~/one# scons mysql=yes sunstone=yes new_xmlrpc=yes
scons: Reading SConscript files …
Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.bb2fdd.cc -o .xmlrpc_test/xmlrpc_test.bb2fdd.cc.out -pthread -L/usr/lib/aarch64-linux-gnu -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss -lpthread -lxmlrpc++ -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.bb2fdd.cc.log 2>&1

Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.fb62d0.cc -o .xmlrpc_test/xmlrpc_test.fb62d0.cc.out -pthread -L/usr/lib/aarch64-linux-gnu -lxmlrpc_client++ -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -L/usr/lib/aarch64-linux-gnu -lcurl -lxmlrpc_packetsocket -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.fb62d0.cc.log 2>&1

Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.2f0a3a.cc -o .xmlrpc_test/xmlrpc_test.2f0a3a.cc.out -pthread -L/usr/lib/aarch64-linux-gnu -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss -lpthread -lxmlrpc++ -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.2f0a3a.cc.log 2>&1

Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.f74a69.cc -o .xmlrpc_test/xmlrpc_test.f74a69.cc.out -pthread -L/usr/lib/aarch64-linux-gnu -lxmlrpc_client++ -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -L/usr/lib/aarch64-linux-gnu -lcurl -lxmlrpc_packetsocket -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.f74a69.cc.log 2>&1

Generating Sunstone minified files

Running “sass:dist” (sass) task

Done.
Running “requirejs:compileCSS” (requirejs) task

Running “requirejs:compileJS” (requirejs) task

Done.
scons: done reading SConscript files.
scons: Building targets …
g++ -o src/im_mad/collectd/collectd -g -pthread src/im_mad/collectd/collectd.o -Lsrc/common -Lsrc/log -Lsrc/raft -Lsrc/sql -Lsrc/host -Lsrc/cluster -Lsrc/datastore -Lsrc/group -Lsrc/mad -Lsrc/nebula -Lsrc/pool -Lsrc/template -Lsrc/vm -Lsrc/vm_group -Lsrc/vm_template -Lsrc/vmm -Lsrc/lcm -Lsrc/tm -Lsrc/dm -Lsrc/im -Lsrc/image -Lsrc/rm -Lsrc/vnm -Lsrc/hm -Lsrc/um -Lsrc/authm -Lsrc/acl -Lsrc/xml -Lsrc/document -Lsrc/zone -Lsrc/client -Lsrc/secgroup -Lsrc/vdc -Lsrc/vrouter -Lsrc/market -Lsrc/ipamm -L/usr/lib/aarch64-linux-gnu -Lsrc/im_mad/collectd -lim_collectd -lnebula_common -lutil -lsqlite3 -lmysqlclient -lz -lm -lrt -ldl -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss -lpthread -lxmlrpc_client++ -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -lcurl -lxmlrpc_packetsocket -lxml2
src/common/libnebula_common.a(NebulaUtil.o): In function one_util::base64_encode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /root/one/src/common/NebulaUtil.cc:108: undefined reference toBIO_f_base64’
/root/one/src/common/NebulaUtil.cc:108: undefined reference to BIO_new' /root/one/src/common/NebulaUtil.cc:109: undefined reference toBIO_s_mem’
/root/one/src/common/NebulaUtil.cc:109: undefined reference to BIO_new' /root/one/src/common/NebulaUtil.cc:111: undefined reference toBIO_push’
/root/one/src/common/NebulaUtil.cc:113: undefined reference to BIO_set_flags' /root/one/src/common/NebulaUtil.cc:115: undefined reference toBIO_write’
/root/one/src/common/NebulaUtil.cc:117: undefined reference to BIO_ctrl' /root/one/src/common/NebulaUtil.cc:122: undefined reference toBIO_ctrl’
/root/one/src/common/NebulaUtil.cc:126: undefined reference to BIO_free_all' src/common/libnebula_common.a(NebulaUtil.o): In functionone_util::base64_decode(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’:
/root/one/src/common/NebulaUtil.cc:146: undefined reference to BIO_f_base64' /root/one/src/common/NebulaUtil.cc:146: undefined reference toBIO_new’
/root/one/src/common/NebulaUtil.cc:148: undefined reference to BIO_s_mem' /root/one/src/common/NebulaUtil.cc:148: undefined reference toBIO_new’
/root/one/src/common/NebulaUtil.cc:149: undefined reference to BIO_s_mem' /root/one/src/common/NebulaUtil.cc:149: undefined reference toBIO_new’
/root/one/src/common/NebulaUtil.cc:151: undefined reference to BIO_push' /root/one/src/common/NebulaUtil.cc:153: undefined reference toBIO_set_flags’
/root/one/src/common/NebulaUtil.cc:155: undefined reference to BIO_write' /root/one/src/common/NebulaUtil.cc:157: undefined reference toBIO_read’
/root/one/src/common/NebulaUtil.cc:159: undefined reference to BIO_write' /root/one/src/common/NebulaUtil.cc:162: undefined reference toBIO_ctrl’
/root/one/src/common/NebulaUtil.cc:166: undefined reference to BIO_free_all' /root/one/src/common/NebulaUtil.cc:167: undefined reference toBIO_free_all’
src/common/libnebula_common.a(NebulaUtil.o): In function one_util::sha1_digest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /root/one/src/common/NebulaUtil.cc:184: undefined reference toEVP_MD_CTX_init’
/root/one/src/common/NebulaUtil.cc:189: undefined reference to EVP_sha1' /root/one/src/common/NebulaUtil.cc:189: undefined reference toEVP_DigestInit_ex’
/root/one/src/common/NebulaUtil.cc:191: undefined reference to EVP_DigestUpdate' /root/one/src/common/NebulaUtil.cc:193: undefined reference toEVP_DigestFinal_ex’
/root/one/src/common/NebulaUtil.cc:196: undefined reference to EVP_MD_CTX_cleanup' src/common/libnebula_common.a(NebulaUtil.o): In functionone_util::aes256cbc_encrypt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)’:
/root/one/src/common/NebulaUtil.cc:227: undefined reference to EVP_CIPHER_CTX_init' /root/one/src/common/NebulaUtil.cc:232: undefined reference toEVP_aes_256_cbc’
/root/one/src/common/NebulaUtil.cc:232: undefined reference to EVP_EncryptInit' /root/one/src/common/NebulaUtil.cc:233: undefined reference toEVP_EncryptUpdate’
/root/one/src/common/NebulaUtil.cc:234: undefined reference to EVP_EncryptFinal' /root/one/src/common/NebulaUtil.cc:237: undefined reference toEVP_CIPHER_CTX_cleanup’
src/common/libnebula_common.a(NebulaUtil.o): In function one_util::SSLMutex::SSLMutex()': /root/one/src/common/NebulaUtil.cc:599: undefined reference toCRYPTO_num_locks’
/root/one/src/common/NebulaUtil.cc:607: undefined reference to CRYPTO_set_id_callback' /root/one/src/common/NebulaUtil.cc:610: undefined reference toCRYPTO_set_locking_callback’
src/common/libnebula_common.a(NebulaUtil.o): In function one_util::SSLMutex::~SSLMutex()': /root/one/src/common/NebulaUtil.cc:615: undefined reference toCRYPTO_num_locks’
/root/one/src/common/NebulaUtil.cc:621: undefined reference to `CRYPTO_set_locking_callback’
collect2: error: ld returned 1 exit status
scons: *** [src/im_mad/collectd/collectd] Error 1
scons: building terminated because of errors.


(Sergio) #2

Check this:
http://clox.cloud/docs/long_road/frontend_installation.html#install-opennebula


(Cem Zafer) #3

Thanks for the link.


(KM) #4

It’s a bug : https://github.com/OpenNebula/one/issues/1615

update your source.