BestSolution-at / fixtar

extract data from corrupted tar files
GNU General Public License v2.0
45 stars 9 forks source link

compile errors #2

Closed ericgorr closed 8 years ago

ericgorr commented 8 years ago

~/d/f/src (master) $ make gcc -g3 -I. -Wall -O2 -c ft.c ft.c:41:5: error: expected parameter declarator int snprintf(char _str, size_t size, const char *format, ...); ^ /usr/include/secure/_stdio.h:57:39: note: expanded from macro 'snprintf' builtin___snprintf_chk (str, len, 0, darwin_obsz(str), VA_ARGS__) ^ ft.c:41:5: error: expected ')' /usr/include/secure/_stdio.h:57:39: note: expanded from macro 'snprintf' builtin_snprintf_chk (str, len, 0, darwin_obsz(str), VA_ARGS__) ^ ft.c:41:5: note: to match this '(' /usr/include/secure/_stdio.h:57:28: note: expanded from macro 'snprintf' builtin_snprintf_chk (str, len, 0, darwin_obsz(str), VA_ARGS_) ^ ft.c:41:5: error: conflicting types for '**builtinsnprintf_chk' int snprintf(char str, size_t size, const char format, ...); ^ /usr/include/secure/_stdio.h:57:3: note: expanded from macro 'snprintf' builtin___snprintf_chk (str, len, 0, darwin_obsz(str), VAARGS) ^ ft.c:41:5: note: 'builtinsnprintf_chk' is a builtin with type 'int (char , unsigned long, int, unsigned long, const char , ...)' /usr/include/secure/_stdio.h:57:3: note: expanded from macro 'snprintf' builtin___snprintf_chk (str, len, 0, darwin_obsz(str), __VAARGS*) ^ 3 errors generated. make: * [ft.o] Error 1

daudo commented 8 years ago

this is a OS/X only issue, correction will follow shortly