[one-users] Opennebula 2.2.1 on Ubuntu 12.04 - scons Error

Javier Fontan jfontan at opennebula.org
Mon May 21 02:14:01 PDT 2012


Try setting CXXFLAGS with the flag proposed in the error message:

export CXXFLAGS="-fpermissive"

This problem is the same one as you had before but the patches to
those files to make it compile in a recent gcc are not compatible with
version 2.2.

On Mon, May 21, 2012 at 10:48 AM, Filippo Gaudenzi
<filippo.gaudenzi at inria.fr> wrote:
> It looks better during the compilation, but i still have:
>
> scons: done reading SConscript files.
> scons: Building targets ...
> g++ -o src/scheduler/src/pool/HostPoolXML.o -c -g -Wall -DSQLITE_DB
> -Iinclude -I/usr/include -I/usr/include/libxml2 -Isrc/scheduler/include
> src/scheduler/src/pool/HostPoolXML.cc
> In file included from src/scheduler/include/HostPoolXML.h:21:0,
>                  from src/scheduler/src/pool/HostPoolXML.cc:17:
> src/scheduler/include/PoolXML.h: In member function 'virtual int
> PoolXML::set_up()':
> src/scheduler/include/PoolXML.h:90:28: warning: variable 'num_objs' set but
> not used [-Wunused-but-set-variable]
> In file included from src/scheduler/src/pool/HostPoolXML.cc:17:0:
> src/scheduler/include/HostPoolXML.h: In member function 'virtual HostXML*
> HostPoolXML::get(int) const':
> src/scheduler/include/HostPoolXML.h:42:62: error: invalid conversion from
> 'const HostXML*' to 'HostXML*' [-fpermissive]
> scons: *** [src/scheduler/src/pool/HostPoolXML.o] Error 1
> scons: building terminated because of errors
>
> I looked in the directory .xmlrpc_test and it is ok,however i attached the
> directory to the email
>
>
> On 05/17/2012 11:58 PM, Javier Fontan wrote:
>
> This error can be caused because of a more strict gcc compiler in
> Ubuntu 12. You can try substituting the file located in source code
> share/scons/get_xmlrpc_config by the latest one [1].
>
> If this does not solve the problem send us the directory .xmlrpc_test
> as it contains the log on the attempts to compile some examples and
> will give us more info.
>
> [1]
> https://github.com/OpenNebula/one/blob/master/share/scons/get_xmlrpc_config
>
> On Wed, May 16, 2012 at 3:50 PM, Filippo Gaudenzi
> <filippo.gaudenzi at inria.fr> wrote:
>
> Hi everybody,
> I'm Filippo, i'm trying to configure the my machine with Ubuntu 12.04 to
> work with Opennebula 2.2.1
>
> I've already known that there is a ready-made package on ubuntu's repository
> by it installs the 3.2 version. I need to test a software that work with
> opennebula 2.2 apis.
>
> I have an error executing command $scons
>
> the error:
> _____________________________________________________________________
> $ scons -j2
> scons: Reading SConscript files ...
> Testing recipe: pkg-config
>  Error calling pkg-config xmlrpc_server_abyss++ --static --libs
> Testing recipe: xmlrpc-c-config
> g++ .xmlrpc_test/xmlrpc_test.9fda46.cc -o
> .xmlrpc_test/xmlrpc_test.9fda46.cc.out  -L/usr/lib   -lxmlrpc_server_abyss++
> -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss
>  -lpthread -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse
> -lxmlrpc_xmltok  -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.9fda46.cc.log
> 2>&1
>
> Testing recipe: pkg-config
>  Error calling pkg-config xmlrpc_client++ xmlrpc++ --libs
> Testing recipe: xmlrpc-c-config
> g++ .xmlrpc_test/xmlrpc_test.dbf775.cc -o
> .xmlrpc_test/xmlrpc_test.dbf775.cc.out  -L/usr/lib   -lxmlrpc_client++
> -lxmlrpc_client -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse
> -lxmlrpc_xmltok -L/usr/lib/x86_64-linux-gnu -lcurl -Wl,-Bsymbolic-functions
> -Wl,-z,relro -lxmlrpc_packetsocket -I/usr/include
> 1>>.xmlrpc_test/xmlrpc_test.dbf775.cc.log 2>&1
>
> Testing recipe: mixed hardcoded libraries and xmlrpc-c-config (debian lenny)
> g++ .xmlrpc_test/xmlrpc_test.dbf775.cc -o
> .xmlrpc_test/xmlrpc_test.dbf775.cc.out  -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.dbf775.cc.log 2>&1
>
> Testing recipe: hardcoded libraries for Mac OS X (installed using port)
> g++ .xmlrpc_test/xmlrpc_test.dbf775.cc -o
> .xmlrpc_test/xmlrpc_test.dbf775.cc.out  -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.dbf775.cc.log 2>&1
>
>
> 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.
> _______________________________________________________________________________
>
> i've installed all the required software, please let me know if someone has
> a solution
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list