Fatal error: xmlrpc-c/base.hpp: No such file or directory


(Grzegorz Hauska) #1

I have cloned repository and when running scons I get this error:

Error searching for xmlrpc-c libraries. Please check this things:

  • You have installed development libraries for xmlrpc-c. One way to check
    this is calling xmlrpc-c-config that is provided with the development
    package.
  • Check that the version of xmlrpc-c is at least 1.06. You can do this also
    calling:
    $ xmlrpc-c-config --version
  • If all this requirements are already met please send log files located in
    .xmlrpc_test to the mailing list.

$ xmlrpc-c-config --version
=> 1.33.14

.xmlrpc_test/xmlrpc_test.aeac76.cc.log

g++ .xmlrpc_test/xmlrpc_test.aeac76.cc -o .xmlrpc_test/xmlrpc_test.aeac76.cc.out -pthread -I/opt/local/include -L/opt/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwtelnet -lwwwhtml -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -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/xmlrpc_test.aeac76.cc.log 2>&1
.xmlrpc_test/xmlrpc_test.aeac76.cc:2:10: fatal error: xmlrpc-c/base.hpp: No such file or directory
#include <xmlrpc-c/base.hpp>
^~~~~~~~~~~~~~~~~~~
compilation terminated.

.xmlrpc_test/xmlrpc_test.b74926.cc.log

g++ .xmlrpc_test/xmlrpc_test.b74926.cc -o .xmlrpc_test/xmlrpc_test.b74926.cc.out -pthread -L/usr/lib/x86_64-linux-gnu -lxmlrpc_client++ -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -L/usr/lib/x86_64-linux-gnu -lcurl -lxmlrpc_packetsocket -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.b74926.cc.log 2>&1
/tmp/ccVKUgtD.o: In function main': xmlrpc_test.b74926.cc:(.text+0x3b4): undefined reference toxmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits, std::allocator >() const’
xmlrpc_test.b74926.cc:(.text+0x40a): undefined reference to xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const' xmlrpc_test.b74926.cc:(.text+0x4d3): undefined reference toxmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits, std::allocator >() const’
collect2: error: ld returned 1 exit status
g++ .xmlrpc_test/xmlrpc_test.b74926.cc -o .xmlrpc_test/xmlrpc_test.b74926.cc.out -pthread -I/usr/include -L/usr/lib -lxmlrpc_client -lxmlrpc_client -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_client++ -lxmlrpc++ 1>>.xmlrpc_test/xmlrpc_test.b74926.cc.log 2>&1
/tmp/ccupFWPt.o: In function main': xmlrpc_test.b74926.cc:(.text+0x3b4): undefined reference toxmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits, std::allocator >() const’
xmlrpc_test.b74926.cc:(.text+0x40a): undefined reference to xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const' xmlrpc_test.b74926.cc:(.text+0x4d3): undefined reference toxmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits, std::allocator >() const’
collect2: error: ld returned 1 exit status

.xmlrpc_test/xmlrpc_test.bec56c.cc.log
g++ .xmlrpc_test/xmlrpc_test.bec56c.cc -o .xmlrpc_test/xmlrpc_test.bec56c.cc.out -pthread -I/opt/local/include -L/opt/local/lib -lcurl -lxmlrpc_client++ -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwtelnet -lwwwhtml -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lm -lmd5 1>>.xmlrpc_test/xmlrpc_test.bec56c.cc.log 2>&1
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwxml
/usr/bin/x86_64-linux-gnu-ld: cannot find -lxmltok
/usr/bin/x86_64-linux-gnu-ld: cannot find -lxmlparse
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwzip
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwinit
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwapp
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwtelnet
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwhtml
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwnews
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwhttp
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwmime
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwgopher
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwftp
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwfile
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwdir
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwcache
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwstream
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwmux
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwtrans
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwcore
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwwwutils
/usr/bin/x86_64-linux-gnu-ld: cannot find -lmd5
collect2: error: ld returned 1 exit status

Does anyone have some ideas what to try? I am on Ubuntu 17.10 and have a running open nebula from official release but I need to develop a feature for Pull Request to repo.