[MacPorts] #67452: libfaketime @0.9.7: build fails on macOS <=10.6 due to undeclared O_CLOEXEC

MacPorts noreply at macports.org
Thu May 18 17:36:20 UTC 2023


#67452: libfaketime @0.9.7: build fails on macOS <=10.6 due to undeclared O_CLOEXEC
------------------------+-------------------------
 Reporter:  Cebtenzzre  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  libfaketime
------------------------+-------------------------
 {{{
 :info:build /opt/local/bin/clang-mp-7.0 -o libfaketime.1.dylib -arch i386
 -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'/opt/local'"' -arch i386
 -dynamiclib -current_version 0.9.7 -compatibility_version 0.7
 -install_name /opt/local/lib/faketime/libfaketime.1.dylib libfaketime.c
 :info:build /opt/local/bin/clang-mp-7.0 -o faketime -arch i386
 -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'/opt/local'"' -arch i386
 faketime.c
 :info:build libfaketime.c:1844:60: error: use of undeclared identifier
 'O_CLOEXEC'
 :info:build     if (-1 == (outfile = open(tmp_env, O_RDWR | O_APPEND |
 O_CLOEXEC | O_CREAT,
 :info:build                                                            ^
 :info:build libfaketime.c:1857:48: error: use of undeclared identifier
 'O_CLOEXEC'
 :info:build     if (-1 == (infile = open(tmp_env, O_RDONLY|O_CLOEXEC)))
 :info:build                                                ^
 :info:build 2 errors generated.
 :info:build make[1]: *** [libfaketime.1.dylib] Error 1
 }}}

 O_CLOEXEC is only available as of the Mac OS X 10.7 SDK.

-- 
Ticket URL: <https://trac.macports.org/ticket/67452>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list