[one-users] Opennebula 2.2.1 on Ubuntu 12.04 - scons Error
Filippo Gaudenzi
filippo.gaudenzi at inria.fr
Wed May 23 01:37:46 PDT 2012
The Patch works greats,
thank you!
On 05/16/2012 06:55 PM, Justin Cinkelj wrote:
> I used someting like:
> # runtime dep
> apt-get -y install libssl0.9.8 libxmlrpc-core-c3
> libsqlite3-ruby genisoimage libmysqlclient18 ruby
> # build dep
> apt-get -y install libsqlite3-dev libxmlrpc-c3-dev scons g++
> ruby libruby libssl-dev ruby-dev make rake rubygems
> libxml-parser-ruby1.8 libxslt1-dev
> apt-get -y install pkg-config
>
> And a patch (ONE was 2.2 from
> http://dev.opennebula.org/attachments/download/339/opennebula-2.2.tar.gz):
> --- opennebula-2.2-orig/src/scheduler/include/HostPoolXML.h
> 2011-03-28 15:50:06.000000000 +0200
> +++ opennebula-2.2-mod/src/scheduler/include/HostPoolXML.h
> 2012-05-03 16:10:25.731322123 +0200
> @@ -39,7 +39,7 @@
> */
> HostXML * get(int oid) const
> {
> - return static_cast<const HostXML *>(PoolXML::get(oid));
> + return static_cast<HostXML *>(PoolXML::get(oid));
> };
>
> protected:
> --- opennebula-2.2-orig/share/scons/get_xmlrpc_config
> +++ opennebula-2.2-mod/share/scons/get_xmlrpc_config
> @@ -69,13 +69,15 @@ main(int argc, char **) {
> vector<xmlrpc_c::value> const
> paramArrayValue(resultArray.vectorValueValue());
>
> //check posible Errors:
> - xmlrpc_c::value * firstvalue;
> - firstvalue =
> &(static_cast<xmlrpc_c::value>(paramArrayValue[0]));
> - xmlrpc_c::value_boolean * status =
> &(static_cast<xmlrpc_c::value_boolean>(*firstvalue));
> + xmlrpc_c::value fval =
> static_cast<xmlrpc_c::value>(paramArrayValue[0]);
> + xmlrpc_c::value * firstvalue = &(fval);
> + xmlrpc_c::value_boolean stat =
> static_cast<xmlrpc_c::value_boolean>(*firstvalue);
> + xmlrpc_c::value_boolean * status = &(stat);
>
> - xmlrpc_c::value * secondvalue;
> - secondvalue =
> &(static_cast<xmlrpc_c::value>(paramArrayValue[1]));
> - xmlrpc_c::value_string * valueS =
> &(static_cast<xmlrpc_c::value_string>(*secondvalue));
> + xmlrpc_c::value sval =
> static_cast<xmlrpc_c::value>(paramArrayValue[1]);
> + xmlrpc_c::value * secondvalue = &(sval);
> + xmlrpc_c::value_string valStr =
> static_cast<xmlrpc_c::value_string>(*secondvalue);
> + xmlrpc_c::value_string * valueS = &(valStr);
>
> if(static_cast<bool>(*status)) {
> //Success, returns the id assigned to the VM:
>
>
> On 05/16/2012 04:47 PM, Filippo Gaudenzi wrote:
>> i installed the libxmlrpc-c3-dev and libxmlrpc-core-c3.
>> From the repository there are available these:
>> libxmlrpc3-client-java libxmlrpc-core-c3
>> libxmlrpc3-common-java libxmlrpc-core-c3-dev
>> libxmlrpc3-java-doc libxmlrpc-epi0
>> libxmlrpc3-server-java libxmlrpc-epi0-dbg
>> libxmlrpc-c3-dev libxmlrpc-epi-dev
>> libxmlrpc-c++4 libxmlrpc-light-ocaml-dev
>> libxmlrpc-c++4-dev
>>
>> so all c3.
>> My xmlrpc version is:
>> $xmlrpc-c-config --version
>> 1.16.33
>>
>> which is the version necessary??
>>
>>
>>
>> On 05/16/2012 04:24 PM, Darshan Upadhyay wrote:
>>> error coming because you have install the upgrade version of
>>> xmlrpc-c so remove the upgraded version and install the version
>>> which by default come with the ubuntu distribution......
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
More information about the Users
mailing list