Bug #460

OpenNebula fails to build with default Ubuntu CFLAGS

Added by Damien Raude-Morvan over 10 years ago. Updated over 10 years ago.

Status:ClosedStart date:10/20/2010
Priority:NormalDue 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,

fortify-source.diff Magnifier - Proposed patch for FORTIFY_SOURCE (450 Bytes) Damien Raude-Morvan, 12/30/2010 12:19 AM

Associated revisions

Revision e3e59c04
Added by Ruben S. Montero over 10 years ago

bug #460: Remove create flag for /dev/null

Revision 363d6b15
Added by Ruben S. Montero over 10 years ago

bug #460: Remove create flag for /dev/null
(cherry picked from commit e3e59c04ab77879ae5c547174c8d622939480f64)

Revision 1fb12b55
Added by Juan Jose Montiel Cano almost 4 years ago

B #5318 Changed call to user-input function (#460)

Revision d7d104a8
Added by Juan Jose Montiel Cano almost 4 years ago

B #5318 Changed call to user-input function (#460)

(cherry picked from commit 1fb12b555209af9245e784bc8268e00001d04aee)

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

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 :)

Also available in: Atom PDF