[MacPorts] #65945: jemalloc fails on 10.5.8: Undefined symbols: _malloc_default_purgeable_zone, __Unwind_Resume using a modified MacPorts setup on 10.5 that is defaulting to use gcc11

MacPorts noreply at macports.org
Tue Oct 11 03:28:35 UTC 2022


#65945: jemalloc fails on 10.5.8: Undefined symbols:
_malloc_default_purgeable_zone, __Unwind_Resume using a modified MacPorts
setup on 10.5 that is defaulting to use gcc11
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  kencu
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, snowleopard
      Port:  jemalloc      |
---------------------------+-------------------------------------------

Comment (by kencu):

 as malloc_default_purgeable_zone is only available on 10.6 and up, you
 need to build against the MacOSX10.6.sdk, at least.

 The code already does a NULL check on that weak function, and has
 fallbacks for older systems, still, which is kind of a miracle.

 https://github.com/jemalloc/jemalloc/blob/12cd13cd418512d9e7596921ccdb62e25a103f87/src/zone.c#L80


 To make it build against an older SDK like the MacOSX10.5.sdk you will
 need to add #ifdefs to the src/zone.c file to avoid
 malloc_default_purgeable_zone instead.

 That is certainly doable, but will require a bit of work for you to
 accomplish.

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


More information about the macports-tickets mailing list