[MacPorts] #69928: hdf5 @1.14.4.2_1+cxx+fortran+gcc13+hl: error: 'PATH_MAX' undeclared (first use in this function)

MacPorts noreply at macports.org
Thu May 9 10:20:12 UTC 2024


#69928: hdf5 @1.14.4.2_1+cxx+fortran+gcc13+hl: error: 'PATH_MAX' undeclared (first
use in this function)
--------------------------+----------------------
  Reporter:  jvianalopes  |      Owner:  eborisch
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.9.3
Resolution:               |   Keywords:
      Port:  hdf5         |
--------------------------+----------------------

Comment (by ryandesign):

 That's not entirely surprising. It also compiles fine with clang or we
 would have noticed the problem sooner. This just means that some other
 system header that hdf5 is including eventually includes <limits.h> in
 clang and gcc12, but not anymore in gcc13. The hdf5 source code should not
 rely on coincidences of eventually included headers; it should directly
 [https://include-what-you-use.org include what it uses].

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


More information about the macports-tickets mailing list