Bug #1156

Fail to build from source in GCC 4.7

Added by Jaime Melis over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:03/04/2012
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Scheduler
Target version:Release 3.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.2

Description

Fedora 17 ships with GCC 4.7 and compilation crashes with the following errors:

src/scheduler/src/client/Client.cc: In member function 'void Client::read_oneauth(std::string&)':
src/scheduler/src/client/Client.cc:70:34: error: 'getuid' was not declared in this scope

A possible fix is: http://pastebin.com/zXuqqD4t

Associated revisions

Revision 5c7f86c5
Added by Ruben S. Montero over 9 years ago

bug #1156: Fix compilation with gcc4.7

Revision 00c2e701
Added by Ruben S. Montero over 9 years ago

bug #1156: Fix compilation with gcc4.7
(cherry picked from commit 5c7f86c5e9da3997be0706938ae27c838ba1cae0)

History

#1 Updated by Ruben S. Montero over 9 years ago

  • Category set to Scheduler
  • Status changed from New to Closed
  • Assignee set to Ruben S. Montero
  • Resolution set to fixed

Applied patch attached in master and one-3.4 branches

Also available in: Atom PDF