I am building libecbufr 0.9.2 on MacOS (both BigSur and Monterey) via homebrew. This uses clang versions 13 and above. The ./configure script seems to engage -std=gnu99. caddr_t seems to have been deprecated and should be replaced with 'void *'.
API/Sources/bufr_desc.c:static caddr_t BufrDescriptor_gcmemory=NULL;
API/Sources/bufr_linklist.c:static caddr_t ListNode_gcmemory=NULL;
API/Sources/bufr_linklist.c: gcmem_dealloc( ListNode_gcmemory, (caddr_t)tmp );
API/Sources/bufr_value.c:static caddr_t ValueINT8_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT16_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT32_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT64_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueFLT32_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueFLT64_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueSTRING_gcmemory=NULL;
....also <malloc.h> no longer exists, the stdlib.h is sufficient:
gcmemory.c:29:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
Chris
I am building libecbufr 0.9.2 on MacOS (both BigSur and Monterey) via homebrew. This uses clang versions 13 and above. The ./configure script seems to engage -std=gnu99. caddr_t seems to have been deprecated and should be replaced with 'void *'.
API/Sources/bufr_desc.c:static caddr_t BufrDescriptor_gcmemory=NULL;
API/Sources/bufr_linklist.c:static caddr_t ListNode_gcmemory=NULL;
API/Sources/bufr_linklist.c: gcmem_dealloc( ListNode_gcmemory, (caddr_t)tmp );
API/Sources/bufr_value.c:static caddr_t ValueINT8_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT16_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT32_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueINT64_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueFLT32_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueFLT64_gcmemory=NULL;
API/Sources/bufr_value.c:static caddr_t ValueSTRING_gcmemory=NULL;
....also <malloc.h> no longer exists, the stdlib.h is sufficient:
gcmemory.c:29:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
Chris