[MacPorts] #69676: libdicom @1.1.0_0+universal: error: implicit declaration of function 'close' is invalid in C99

MacPorts noreply at macports.org
Mon Apr 8 13:09:07 UTC 2024


#69676: libdicom @1.1.0_0+universal: error: implicit declaration of function
'close' is invalid in C99
------------------------+----------------------
  Reporter:  conradkun  |      Owner:  bgilbert
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.9.3
Resolution:             |   Keywords:
      Port:  libdicom   |
------------------------+----------------------

Comment (by bgilbert):

 Thanks for the report!  Some Meson checks, including
 `compiler.has_header()`, [https://github.com/mesonbuild/meson/issues/8206
 don't work properly] with universal builds.  As a result, libdicom skips
 including `unistd.h`.  I've filed a
 [https://github.com/ImagingDataCommons/libdicom/pull/86 libdicom PR] to
 fail `meson setup` with a clear error in this case, and will work around
 it in MacPorts using the `muniversal` portgroup.

-- 
Ticket URL: <https://trac.macports.org/ticket/69676#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list