[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build fails with Xcode 12
From: |
Adam Stewart |
Subject: |
Re: Build fails with Xcode 12 |
Date: |
Mon, 21 Sep 2020 10:13:13 -0500 |
Thanks Chet,
When I apply your patch it solves the string.h issue but now I see an issue
with _stdio.h:
snprintf.c:1706:1: error: expected parameter declarator
vsnprintf(char *string, size_t length, const char *format, va_list args)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:75:40:
note: expanded from macro 'vsnprintf'
__builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
^
snprintf.c:1706:1: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:75:40:
note: expanded from macro 'vsnprintf'
__builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
^
snprintf.c:1706:1: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:75:29:
note: expanded from macro 'vsnprintf'
__builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
^
snprintf.c:1706:1: error: conflicting types for '__builtin___vsnprintf_chk'
vsnprintf(char *string, size_t length, const char *format, va_list args)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:75:3:
note: expanded from macro 'vsnprintf'
__builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
^
snprintf.c:1706:1: note: '__builtin___vsnprintf_chk' is a builtin with type
'int (char *, unsigned long, int, unsigned long, const char *, struct
__va_list_tag *)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:75:3:
note: expanded from macro 'vsnprintf'
__builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
^
snprintf.c:1706:1: error: definition of builtin function
'__builtin___vsnprintf_chk'
vsnprintf(char *string, size_t length, const char *format, va_list args)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:75:3:
note: expanded from macro 'vsnprintf'
__builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap)
^
snprintf.c:1719:37: error: use of undeclared identifier 'format'
init_data (&data, string, length, format, PFM_SN);
^
snprintf.c:1720:53: error: use of undeclared identifier 'format'
return (vsnprintf_internal(&data, string, length, format, args));
^
snprintf.c:1720:61: error: use of undeclared identifier 'args'
return (vsnprintf_internal(&data, string, length, format, args));
^
snprintf.c:1725:1: error: expected parameter declarator
snprintf(char *string, size_t length, const char * format, ...)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:39:
note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
snprintf.c:1725:1: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:39:
note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
snprintf.c:1725:1: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:28:
note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
snprintf.c:1725:1: error: conflicting types for '__builtin___snprintf_chk'
snprintf(char *string, size_t length, const char * format, ...)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:3:
note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
snprintf.c:1725:1: note: '__builtin___snprintf_chk' is a builtin with type 'int
(char *, unsigned long, int, unsigned long, const char *, ...)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:3:
note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
snprintf.c:1725:1: error: definition of builtin function
'__builtin___snprintf_chk'
snprintf(char *string, size_t length, const char * format, ...)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:3:
note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
snprintf.c:1738:21: error: use of undeclared identifier 'format'
SH_VA_START(args, format);
^
snprintf.c:1742:37: error: use of undeclared identifier 'format'
init_data (&data, string, length, format, PFM_SN);
^
snprintf.c:1743:53: error: use of undeclared identifier 'format'
rval = vsnprintf_internal (&data, string, length, format, args);
^
14 errors generated.
make[1]: *** [snprintf.o] Error 1
make: *** [lib/sh/libsh.a] Error 1
make: *** Waiting for unfinished jobs....
Do you have a patch for this as well?
Adam