[MacPorts] #67454: ncarg @6.6.2: Undefined symbols: _jpc_decode

MacPorts noreply at macports.org
Thu May 18 21:43:32 UTC 2023


#67454: ncarg @6.6.2: Undefined symbols: _jpc_decode
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  tenomoto
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.8.1
 Keywords:              |       Port:  ncarg
------------------------+----------------------
 ncarg fails to build on all buildbot workers. The first error is:
 {{{
 Undefined symbols for architecture arm64:
   "_jpc_decode", referenced from:
       _dec_jpeg2000 in libgrib2c.a(dec_jpeg2000.o)
 ld: symbol(s) not found for architecture arm64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make[4]: *** [ncl] Error 1
 }}}
 {{{
 Error: Failed to build ncarg: ncl did not get built
 }}}
 There are also a zillion warnings before that which may or may not be
 important.

 I searched the ncarg repository and could not find where this function was
 being used. It looks like it's actually in g2c which the ncarg port
 downloads and builds separately. The port already downloads a patch for it
 as well as applies a separate local patch related to jasper. According to
 [https://github.com/NOAA-EMC/NCEPLIBS-
 g2c/issues/245#issuecomment-1099534344 this g2c bug comment],
 `jas_image_decode` should be used instead of `jpc_decode`.
 [https://github.com/NOAA-EMC/NCEPLIBS-
 g2c/commit/6f4d4fbc6cd9979f46849243890bd8fb2eff0da3 This] is how they
 fixed it. The fix is included in g2c 1.7.0. Can ncarg use that instead of
 the 1.6.0 it is currently using?

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


More information about the macports-tickets mailing list