[MacPorts] #43370: 10.6 build failure (missing O_CLOEXEC)
MacPorts
noreply at macports.org
Tue Apr 15 07:58:27 PDT 2014
#43370: 10.6 build failure (missing O_CLOEXEC)
------------------------+--------------------------------
Reporter: rharwood@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Keywords: | Port: dbus
------------------------+--------------------------------
As requested from #42994, here is a ticket for dbus build failure on 10.6.
This build failure is due to missing O_CLOEXEC flag to open(2) on 10.6,
like so:
{{{
robbie at osxserver:~$ cat test.c
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
int main() {
open("", O_CREAT);
return 0;
}
robbie at osxserver:~$ gcc test.c
robbie at osxserver:~$
}}}
while
{{{
robbie at osxserver:~$ cat test.c
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
int main() {
open("", O_CREAT | O_CLOEXEC);
return 0;
}
robbie at osxserver:~$ gcc test.c
test.c: In function 'main':
test.c:7:22: error: 'O_CLOEXEC' undeclared (first use in this function)
open("", O_CREAT | O_CLOEXEC);
^
test.c:7:22: note: each undeclared identifier is reported only once for
each function it appears in
robbie at osxserver:~$
}}}
--
Ticket URL: <https://trac.macports.org/ticket/43370>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list