[MacPorts] #43370: 10.6 build failure (missing O_CLOEXEC)
#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@osxserver:~$ cat test.c #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> int main() { open("", O_CREAT); return 0; } robbie@osxserver:~$ gcc test.c robbie@osxserver:~$ }}} while {{{ robbie@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@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@osxserver:~$ }}} -- Ticket URL: <https://trac.macports.org/ticket/43370> MacPorts <http://www.macports.org/> Ports system for OS X
#43370: dbus: 10.6 build failure (missing O_CLOEXEC) -------------------------+-------------------------------- Reporter: rharwood@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: duplicate | Keywords: Port: dbus | -------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => duplicate Comment: Duplicate of #43203 which was already fixed. Run "sudo port selfupdate" to receive the fix. -- Ticket URL: <https://trac.macports.org/ticket/43370#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts