[MacPorts] #74395: jbig2dec @0.20: fatal error: 'png.h' file not found (was: can not build jbig2dec missing depency)
MacPorts
noreply at macports.org
Thu Sep 3 12:29:25 UTC 2026
#74395: jbig2dec @0.20: fatal error: 'png.h' file not found
-----------------------+--------------------
Reporter: ErwanMAS | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: jbig2dec |
-----------------------+--------------------
Comment (by ryandesign):
The log says the problem was:
{{{
:info:build jbig2_image_png.c:27:10: fatal error: 'png.h' file not found
:info:build 27 | #include <png.h>
:info:build | ^~~~~~~
:info:build 1 error generated.
}}}
It's curious that it couldn't find the libpng header because earlier in
the build, it did find the libpng library, and usually a system that has
one will also have the other.
{{{
:info:configure checking for png_create_write_struct in -lpng... yes
}}}
However you're right, the libpng dependency is missing from this port.
On the buildbot, the builds probably succeeded because the libpng library
wasn't there, so it didn't try to build the libpng-requiring parts.
--
Ticket URL: <https://trac.macports.org/ticket/74395#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list