Bug #1156
Fail to build from source in GCC 4.7
Status: | Closed | Start date: | 03/04/2012 | |
---|---|---|---|---|
Priority: | Normal | Due 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
bug #1156: Fix compilation with gcc4.7
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