[MacPorts] #70889: oath-toolkit @2.6.7: error: call to undeclared library function 'realloc' with type 'void *(void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

MacPorts noreply at macports.org
Fri Sep 27 07:16:31 UTC 2024


#70889: oath-toolkit @2.6.7: error: call to undeclared library function 'realloc'
with type 'void *(void *, unsigned long)'; ISO C99 and later do not support
implicit function declarations [-Wimplicit-function-declaration]
----------------------------+---------------------------
  Reporter:  laughingtiger  |      Owner:  fracai
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.10.1
Resolution:                 |   Keywords:  arm64 sequoia
      Port:  oath-toolkit   |
----------------------------+---------------------------

Comment (by amolinas):

 Confirmed that it work with version 2.6.11 and applying the attached patch
 (patch-2.6.11-include-stdlib.diff). The difference with the previous
 submitted patch, apart from patching only global.c, is that stdlib.h is
 included after config.h (required). I also include my Portfile as a
 reference. It can contain obvious errors, as I just hacked it quickly.

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


More information about the macports-tickets mailing list