Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] openmpi-1.2.4 compilation error in orte_abort.c on Fedora 8 - patch included
From: Sebastian Schmitzdorff (sebastian.schmitzdorff_at_[hidden])
Date: 2007-12-10 11:02:26


Hi,

on Fedora 8 x86_64 openmpi-1.2.4 doesn't compile.
A quick glance at the nightly openmpi snapshot leads me to the
conclusion that
this is still the case.

----------------------------------------------------
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 anymore.

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