Bug #711

Test code does not build with gcc 4.6.0

Added by Robert Schweikert about 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:07/08/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:Release 3.0
Resolution:fixed Pull request:
Affected Versions:OpenNebula 2.2

Description

The test code to verify the existence of the xmlrpc libraries does not compile on a system with gcc 4.6.0 installed. The compiler complains about taking a reference to a temporary.

.xmlrpc_test/xmlrpc_test.6f2816.cc: In function 'int main(int, char**)':
.xmlrpc_test/xmlrpc_test.6f2816.cc:36:72: error: taking address of temporary [-fpermissive]
.xmlrpc_test/xmlrpc_test.6f2816.cc:37:95: error: taking address of temporary [-fpermissive]
.xmlrpc_test/xmlrpc_test.6f2816.cc:40:73: error: taking address of temporary [-fpermissive]
.xmlrpc_test/xmlrpc_test.6f2816.cc:41:94: error: taking address of temporary [-fpermissive]

Found in version 2.2.1

The attached patch fixes the problem.

openneb_xmlrpcTest.patch Magnifier (1.27 KB) Robert Schweikert, 07/08/2011 06:48 PM

History

#1 Updated by Ruben S. Montero almost 10 years ago

  • Target version set to Release 2.2.2

Solved in master, moving this to 2.2.2

#2 Updated by Ruben S. Montero almost 10 years ago

  • Status changed from New to Closed
  • Target version changed from Release 2.2.2 to Release 3.0
  • Resolution set to fixed
  • Affected Versions OpenNebula 2.2 added

This has been fixed for OpenNebula 3.0

Also available in: Atom PDF