[MacPorts] #62322: freeimage: undefined symbols for _png_init_filter_functions_neon
MacPorts
noreply at macports.org
Sun Feb 21 20:23:52 UTC 2021
#62322: freeimage: undefined symbols for _png_init_filter_functions_neon
--------------------------+--------------------
Reporter: platipodium | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: arm64
Port: freeimage |
--------------------------+--------------------
Comment (by ryandesign):
Hm no that's not it. That upstream issue was fixed in libpng 1.6.15.
freeimage includes libpng 1.6.35.
The problem is more that libpng decides at configure time what sources to
build, but freeimage does not use a configure script and has a hardcoded
list of sources to build (in Makefile.srcs). The hardcoded list of sources
is evidently correct for Intel but wrong for ARM, at least when ARM
optimizations are enabled, which they are unless we specify otherwise.
We could either tell the png source not to use ARM optimizations (put
`-DPNG_ARM_NEON_OPT=0` in CPPFLAGS) or we could add the required ARM-
specific source files to Makefile.srcs. The first is probably easier,
especially since the version of libpng bundled with freeimage is missing
the entire
[https://sourceforge.net/p/libpng/code/ci/libpng-1.6.15-signed/tree/arm/
arm directory] that contains the source files that define the
`png_init_filter_functions_neon` function.
--
Ticket URL: <https://trac.macports.org/ticket/62322#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list