[Pkg-opennebula-devel] xmlrpc-c-config Scons recipe failure - Was: Re: opennebula-4.12.3

Olivier Berger olivier.berger at telecom-sudparis.eu
Wed Aug 5 14:51:59 UTC 2015


Hi.
Olivier Berger <olivier.berger at telecom-sudparis.eu> writes:

> Hi again.
>
> Now I'm able to build inside pbuilder (or git-pbuilder/cowbuilder), I'm
> stuck on the following error (hard to debug, since I haven't found the
> way to keep a trace of the logs to dig what's wrong in there, thanks to
> pbuilder ;).
>
> The Scons recipe for "xmlrpc-c-config" is failing :-/
>
> Any guesses ?
>


I managed to bind-mount my development dir inside the cowbuilder to try
and get more debug, and here's what I've found :

-----
...
scons --no-cache mysql=yes #parsers=yes
scons: Reading SConscript files ...
Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.bd6e00.cc -o .xmlrpc_test/xmlrpc_test.bd6e00.cc.out -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pthread -L/usr/lib/x86_64-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.bd6e00.cc.log 2>&1

Testing recipe: xmlrpc-c-config
g++ .xmlrpc_test/xmlrpc_test.52317f.cc -o .xmlrpc_test/xmlrpc_test.52317f.cc.out -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -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.52317f.cc.log 2>&1
...
-----

This fails with :
# g++ .xmlrpc_test/xmlrpc_test.52317f.cc -o .xmlrpc_test/xmlrpc_test.52317f.cc.out -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -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
/tmp/cceHw0Ut.o: In function `main':
xmlrpc_test.52317f.cc:(.text+0x19c): undefined reference to `xmlrpc_c::clientSimple::call(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, xmlrpc_c::value*, ...)'
xmlrpc_test.52317f.cc:(.text+0x38f): undefined reference to `xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
xmlrpc_test.52317f.cc:(.text+0x3fe): undefined reference to `xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
xmlrpc_test.52317f.cc:(.text+0x4b7): undefined reference to `xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
collect2: error: ld returned 1 exit status

I suspect some GCC/Libstdc++ transition breakage in sid :-/ But I'm not
used to packaging C/C++ so I haven't followed what's currently
cooking. Maybe you'd have better insights.


Also the following fails, since xmlrpc-c doesn't seem to provide what's
necessary (see #614423)
-----
...
Testing recipe: pkg-config
  Error calling pkg-config xmlrpc_client++ xmlrpc++ --libs
...
-----

The "debian lenny" mention in the next attempt doesn't give me good
impression, and fails identically :

Testing recipe: mixed hardcoded libraries and xmlrpc-c-config (debian lenny)
g++ .xmlrpc_test/xmlrpc_test.52317f.cc -o .xmlrpc_test/xmlrpc_test.52317f.cc.out -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -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.52317f.cc.log 2>&1


# g++ .xmlrpc_test/xmlrpc_test.52317f.cc -o .xmlrpc_test/xmlrpc_test.52317f.cc.out -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pthread -I/usr/include -L/usr/lib -lxmlrpc_client -lxmlrpc_client -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_client++ -lxmlrpc++
/tmp/ccIIJ0VV.o: In function `main':
xmlrpc_test.52317f.cc:(.text+0x19c): undefined reference to `xmlrpc_c::clientSimple::call(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, xmlrpc_c::value*, ...)'
xmlrpc_test.52317f.cc:(.text+0x38f): undefined reference to `xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
xmlrpc_test.52317f.cc:(.text+0x3fe): undefined reference to `xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
xmlrpc_test.52317f.cc:(.text+0x4b7): undefined reference to `xmlrpc_c::value_string::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
collect2: error: ld returned 1 exit status


Looks as though xmlrpc-c has issues [0], and I'm clueless from now on :-(

My 2 cents,

[0] https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=xmlrpc-c
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)



More information about the Pkg-opennebula-devel mailing list