Re: [MacPorts] #69098: dispenso fails to build on 10.10–10.11: error: no member named 'malloc' in the global namespace

MacPorts noreply at macports.org
Sat Jan 13 19:51:05 UTC 2024


#69098: dispenso fails to build on 10.10–10.11: error: no member named 'malloc' in
the global namespace
---------------------------+---------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  elcapitan, yosemite
      Port:  dispenso      |
---------------------------+---------------------------------

Comment (by ryandesign):

 I [https://github.com/facebookincubator/dispenso/pull/26 submitted a fix
 for this issue upstream] which is simply to include `<cstdlib>` which is
 where `malloc` and `free` are defined for C++ code. Presumably on other
 systems that don't see this problem, `<cstdlib>` gets included by some
 other system header.

 The errors that occur after that are ones I've
 [https://github.com/lballabio/QuantLib/issues/1091 encountered before in
 QuantLib] which reminds me that I haven't finished verifying the fix for
 that issue, so I'm working on that now, and if successful I can hopefully
 apply the same fix to dispenso. In the meantime, the workaround that
 worked for QuantLib was to
 [changeset:33be553b4428446712574408961c5de9a1f262f2/macports-ports prevent
 the use of clang < 900].

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


More information about the macports-tickets mailing list