Arm source compilation and the error [src/im_mad/collectd/collectd] Error 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.

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

Thanks for the link.

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

update your source.

@svega, There is a link which is wrong in the section 2.1 (lxd drivers) that you provided, the real link must be the following.

@kixz, thanks for the information.

@czd, the link in CloX’s docs is just fine. It pretends to point to the releases page of LXDoNe GitHub’s repo. Maybe, I’m missing something else…

But as you stated, pretends. :slight_smile: not actual link. A new person who actually wants to reach the real page about https://github.com/OpenNebula/addon-lxdone not the svncterm page. But at least it points the github page. :slight_smile:
P.S. Someone can easily access the “setup quide” from that link, not from svncterm.
Thanks.

@czd, the link doesn’t point to the snvcterm page. I think you got confused because we provide a pre-compiled svncterm package for amd64 architectures, but that is the LXDoNe releases’ page.
If you want to set up OpenNebula with LXDoNe in Raspberry Pi or Pine64 you want to follow the link that @svega provided. The setup guide on LXDoNe GitHub’s page provides a way to install LXDoNe and OpenNebula on regular PC architectures. They are slightly different.

1 Like

@jmdelafe, thanks for the clarification.

@czd, you’re welcome. I hope you encouraged to try CloX :wink:

@jmdelafe, Yes I tried the CloX. if I get the idea correctly I tried the lxd hypervisor in aarch64 pine machine but unfortunately I have an error message like that.
I hope someone can lead me to the right direction to solve that particular error cos I got the same error message with kvm hypervisor.
Thanks

Wed Jan 31 22:37:33 2018 [Z0][InM][D]: Monitoring datastore default (1)
Wed Jan 31 22:37:33 2018 [Z0][InM][D]: Monitoring datastore files (2)
Wed Jan 31 22:37:34 2018 [Z0][ImM][D]: Datastore default (1) successfully monitored.
Wed Jan 31 22:37:34 2018 [Z0][ImM][D]: Datastore files (2) successfully monitored.
Wed Jan 31 22:37:36 2018 [Z0][ReM][D]: Req:5040 UID:0 one.zone.raftstatus invoked
Wed Jan 31 22:37:36 2018 [Z0][ReM][D]: Req:5040 UID:0 one.zone.raftstatus result SUCCESS, "<SERVER_ID>-1<…"
Wed Jan 31 22:37:36 2018 [Z0][ReM][D]: Req:7360 UID:0 one.vmpool.info invoked , -2, -1, -1, -1
Wed Jan 31 22:37:36 2018 [Z0][ReM][D]: Req:7360 UID:0 one.vmpool.info result SUCCESS, "<VM_POOL></VM_POOL>"
Wed Jan 31 22:37:36 2018 [Z0][ReM][D]: Req:7360 UID:0 one.vmpool.info invoked , -2, -1, -1, -1
Wed Jan 31 22:37:36 2018 [Z0][ReM][D]: Req:7360 UID:0 one.vmpool.info result SUCCESS, "<VM_POOL></VM_POOL>"
Wed Jan 31 22:37:53 2018 [Z0][ONE][E]: Error parsing host information: syntax error, unexpected VARIABLE, expecting EQUAL or EQUAL_EMPTY at line 35, columns 510:511. Monitoring information:
ARCH=aarch64
MODELNAME="HYPERVISOR=lxd
TOTALCPU=400
CPUSPEED=0
TOTALMEMORY=2035768
USEDMEMORY=521404
FREEMEMORY=1514364
FREECPU=400
USEDCPU=0
NETRX=46565402
NETTX=23992136
DS_LOCATION_USED_MB=7829
DS_LOCATION_TOTAL_MB=14832
DS_LOCATION_FREE_MB=6821
DS = [
ID = 0,
USED_MB = 7829,
TOTAL_MB = 14832,
FREE_MB = 6821
]
DS = [
ID = 1,
USED_MB = 7829,
TOTAL_MB = 14832,
FREE_MB = 6821
]
DS = [
ID = 2,
USED_MB = 7829,
TOTAL_MB = 14832,
FREE_MB = 6821
]
HOSTNAME=pine1
VM_POLL=YES
VERSION=“5.5.80”

I believe we got the same error you are having. The problem is that one of the probes, specifically the one that gets CPU information, had issues with ayufan’s modified ubuntu xenial for pine64. If you are using that image that might be the issue. We fixed that but that modification isn’t yet on the master branch from lxdone’s github. You can change the driver’s branch from master to 5.4-5 and it should work. We are finishing the last details to merge that branch with master and that will be the last step to officially release support for pine64 on CloX. This should be ready for next week but if you don’t want to wait just download lxdone’s branch 5.4-5.

1 Like

Thanks for the information, so you will unveil that wonderful news in here?
Best Regards.

no better place

1 Like

Done! Now, we have full support for pine64. http://clox.cloud/docs/pine64/index.html.

1 Like

Wonderful, thank you. I am going to test this week and report if I receive any problem.

Hi,
I have followed the link as you mentioned before, the step which is ‘scons’ give the following error.
By the way, apt install libxmlrpc-core-c3 libxmlrpc-core-c3-dev
packages are missing at least one of them.
Thanks.

root@pine1:~/opennebula-5.4.6/.xmlrpc_test# more xmlrpc_test.9b30a8.cc.log
g++ .xmlrpc_test/xmlrpc_test.9b30a8.cc -o .xmlrpc_test/xmlrpc_test.9b30a8.cc.out -pthread -I/opt/local/include -L/op
t/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwtelnet -lwwwhtml -lwwwnews -lwwwhttp -lwwwm
ime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ld
l -lz -lpthread -lxmlrpc_client++ -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok
-lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss 1>>.xmlrpc_test/xmlrp
c_test.9b30a8.cc.log 2>&1
.xmlrpc_test/xmlrpc_test.9b30a8.cc:2:29: fatal error: xmlrpc-c/base.hpp: No such file or directory
compilation terminated.

Sorry, my bad. I have installed the missing packages and everything seems okey.

@czd, :+1: