[MacPorts] #72146: gpscorrelate @2.0: error: call to undeclared library function 'malloc'

MacPorts noreply at macports.org
Thu Mar 6 08:20:51 UTC 2025


#72146: gpscorrelate @2.0: error: call to undeclared library function 'malloc'
------------------------+--------------------------
 Reporter:  ryandesign  |      Owner:  sikmir
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.10.5
 Keywords:              |       Port:  gpscorrelate
------------------------+--------------------------
 https://build.macports.org/builders/ports-
 15_arm64-builder/builds/7870/steps/install-port/logs/stdio

 {{{
 gpx-read.c:122:42: error: call to undeclared library function 'malloc'
 with type 'void *(unsigned long)'; ISO C99 and later do not support
 implicit function declarations [-Wimplicit-function-declaration]
   122 |                                 LastPoint->Next = (struct
 GPSPoint*) malloc(sizeof(struct GPSPoint));
       |
 ^
 gpx-read.c:122:42: note: include the header <stdlib.h> or explicitly
 provide a declaration for 'malloc'
 gpx-read.c:143:21: error: call to undeclared function 'atof'; ISO C99 and
 later do not support implicit function declarations [-Wimplicit-function-
 declaration]
   143 |                         LastPoint->Lat = atof(Lat);
       |                                          ^
 gpx-read.c:316:3: error: call to undeclared library function 'free' with
 type 'void (void *)'; ISO C99 and later do not support implicit function
 declarations [-Wimplicit-function-declaration]
   316 |                 free(CurrentFree);
       |                 ^
 gpx-read.c:316:3: note: include the header <stdlib.h> or explicitly
 provide a declaration for 'free'
 3 errors generated.
 }}}

 See WimplicitFunctionDeclaration.

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


More information about the macports-tickets mailing list