Bug #371

OpenNebula fails to build with default Ubuntu CFLAGS

Added by Damien Raude-Morvan about 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:10/20/2010
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Core & System
Target version:Release 2.0
Resolution:fixed Pull request:
Affected Versions:

Description

Hi,

OpenNebula 2.0 RC1 fails to build with default CFLAGS from Ubuntu [1].
You can find detailled list af Ubuntu CFLAGS on Ubuntu wiki [2].

I've attached a tentative patch.

[1] https://launchpad.net/~drazzib/+archive/opennebula/+build/1991430
[2] https://wiki.ubuntu.com/CompilerFlags

Cheers,

fortify.diff Magnifier - Tentative patch (488 Bytes) Damien Raude-Morvan, 10/20/2010 03:02 PM

Associated revisions

Revision 8cd7d0df
Added by Sergio Semedi over 3 years ago

F #5136 Changes the way of create amazon ec2 hosts, ONECLI (#371)

  • F #5136 (ONECLI)Type option added, displaying help to create hybrid hosts
  • F #5136 added cli argument to parse file path in -t option, change comments
  • F #5136 catch blocks, cod restructure

History

#1 Updated by Damien Raude-Morvan about 10 years ago

Jaime Melis said [1] this failure is fixed in one-2.0 branch (in GIT repository).
I'll test this tonight and update this bug status.

[1] http://lists.alioth.debian.org/pipermail/pkg-opennebula-devel/2010-October/000001.html

#2 Updated by Damien Raude-Morvan about 10 years ago

This issue seems to be fixed by e03ef196.

You can close this ticket.

#3 Updated by Jaime Melis about 10 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

OK.

#4 Updated by Damien Raude-Morvan almost 10 years ago

Hi,

This issue #371 should be reopened as I've found another instance of the same kind of failure :

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.

Also available in: Atom PDF