[Pkg-opennebula-devel] OpenNebula fails to build with default Ubuntu CFLAGS

Damien Raude-Morvan drazzib at drazzib.com
Wed Oct 20 15:29:08 UTC 2010

Hi Jaime,

>> I believe you have just created an issue in upstream OpenNebula
>> the compilation problems of OpenNebula with the default Ubuntu Flags:
>> http://dev.opennebula.org/issues/371
>> These two past days we have been working on it, and as far as I can
>> it
>> has been fixed with these two patches:
>> 8777194 Fixes compilation issues and bug in saveas image method
>> 1ad45c3 Fix compilation issues with parsers
>> I have tested it in Ubuntu and it works for me. Can you verify that it
>> works for you aswell? if it doesn't please attach the scons log file.

My failure seems a bit different from your fixes.

It fails on src/nebula/Nebula.cc :
fd = open("/dev/null", O_RDWR|O_CREAT);

because of "D_FORTIFY_SOURCE=2" flag [1] :
"error: call to '__open_missing_mode' declared with attribute error: open
with O_CREAT in second argument needs 3 arguments"

I've changed that in src/nebula/Nebula.cc to :
fd = open("/dev/null", O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);

[1] https://wiki.ubuntu.com/CompilerFlags#-D_FORTIFY_SOURCE=2

Whatever, I'll test new one-2.0 branch tonight and update my bug status


More information about the Pkg-opennebula-devel mailing list