[ewg] openmpi-1.2.4 compilation error in orte_abort.c on Fedora 8 and patch
Sebastian Schmitzdorff
sebastian.schmitzdorff at hamburgnet.de
Mon Dec 10 05:16:27 PST 2007
Hi,
on Fedora 8 x86_64 openmpi-1.2.4 doesn't compile.
I have tested beginning with OFED 1.3beta2 until current.
----------------------------------------------------
In function 'open',
inlined from 'orte_abort' at runtime/orte_abort.c:91:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [runtime/orte_abort.lo] Error 1
make[1]: Leaving directory `/var/tmp/OFED_topdir/BUILD/openmpi-1.2.4/orte'
make: *** [all-recursive] Error 1
----------------------------------------------------
There is a missing filemode in "open" in orte_abort.c:91.
fcntl2.h doesnt allow this.
please find the simple diff below.
-------------------------------------------------
--- runtime/orte_abort.c 2007-12-10 00:01:50.000000000 +0100
+++ test 2007-12-10 00:01:00.000000000 +0100
@@ -88,7 +88,7 @@
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
goto CLEANUP;
}
- fd = open(abort_file, O_CREAT);
+ fd = open(abort_file, O_CREAT, 0666);
if (0 < fd) close(fd);
}
-------------------------------------------------
Hope this is the right place for the diff.
regards
sebastian
--
Sebastian Schmitzdorff - Managing Director
Hamburgnet
http://www.hamburgnet.de
Kottwitzstrasse 49 D-20253 Hamburg
fon: +49 40 736 72-322 fax: +49 40 736 72-321
More information about the ewg
mailing list