[MacPorts] #70070: zix @0.4.2: error: call to undeclared function 'fdatasync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

MacPorts noreply at macports.org
Fri May 24 12:27:38 UTC 2024


#70070: zix @0.4.2: error: call to undeclared function 'fdatasync'; ISO C99 and
later do not support implicit function declarations [-Wimplicit-function-
declaration]
------------------------+-------------------------
 Reporter:  ryandesign  |      Owner:  herbygillot
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.9.3
 Keywords:  highsierra  |       Port:  zix
------------------------+-------------------------
 https://build.macports.org/builders/ports-10.13_x86_64-builder/builds/235441/steps
 /install-port/logs/stdio
 {{{
 ../zix-0.4.2/src/posix/filesystem_posix.c:61:56: error: call to undeclared
 function 'fdatasync'; ISO C99 and later do not support implicit function
 declarations [-Wimplicit-function-declaration]
   const ZixStatus st0 = zix_posix_status(dst_fd >= 0 ? fdatasync(dst_fd) :
 0);
                                                        ^
 1 error generated.
 }}}

 `fdatasync` exists on older macOS versions but is not advertised in the
 headers. Here is [https://bugs.php.net/bug.php?id=81130 the PHP bug] about
 this and [https://github.com/php/php-
 src/commit/e69729f2ba02ddc26c70b4bd88ef86c0a2277bdc how they fixed it] (by
 declaring it).

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


More information about the macports-tickets mailing list