Bug #460
OpenNebula fails to build with default Ubuntu CFLAGS
Status: | Closed | Start date: | 10/20/2010 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Ruben S. Montero | % Done: | 0% | |
Category: | Core & System | |||
Target version: | - | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
Hi,
OpenNebula 2.0.1 fails to build with default CFLAGS from Ubuntu.
You can find detailled list af Ubuntu CFLAGS on Ubuntu wiki [1].
Here is error :
g++ -o src/scheduler/src/sched/Scheduler.o -c -g -O2 -g -O2 -g -Wall -
Isrc/scheduler/include -Iinclude -I/usr/include -I/usr/include/libxml2
src/scheduler/src/sched/Scheduler.cc
In file included from /usr/include/fcntl.h:252:0,
from src/scheduler/src/sched/Scheduler.cc:24:
In function 'int open(const char*, int, ...)',
inlined from 'void Scheduler::start()' at
src/scheduler/src/sched/Scheduler.cc:137:43:
/usr/include/bits/fcntl2.h:51:26: error: call to '__open_missing_mode'
declared with attribute error: open with O_CREAT in second argument needs 3
arguments
scons: *** [src/scheduler/src/sched/Scheduler.o] Error 1
scons: building terminated because of errors.
[1] https://wiki.ubuntu.com/CompilerFlags
Cheers,
Associated revisions
bug #460: Remove create flag for /dev/null
bug #460: Remove create flag for /dev/null
(cherry picked from commit e3e59c04ab77879ae5c547174c8d622939480f64)
History
#1 Updated by Damien Raude-Morvan over 10 years ago
I've duplicated #371 instead of reopen it as this failure seems another issue.
#2 Updated by Damien Raude-Morvan over 10 years ago
- File fortify-source.diff added
Here is a tentative patch for this issue.
#3 Updated by Ruben S. Montero over 10 years ago
- Status changed from New to Closed
- Resolution set to fixed
This is now in master and one-2.0 branches. It really didn't make sense to use O_CREAT with /dev/null. Thanks for the patch :)