Determining size of off64_t failed with the following output: Change Dir: /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_149d4/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_149d4.dir/build.make CMakeFiles/cmTC_149d4.dir/build Building C object CMakeFiles/cmTC_149d4.dir/OFF64_T.c.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_149d4.dir/OFF64_T.c.o -c /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:25:12: error: use of undeclared identifier 'off64_t' ('0' + ((SIZE / 10000)%10)), ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' #define SIZE (sizeof(off64_t)) ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:26:12: error: use of undeclared identifier 'off64_t' ('0' + ((SIZE / 1000)%10)), ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' #define SIZE (sizeof(off64_t)) ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:27:12: error: use of undeclared identifier 'off64_t' ('0' + ((SIZE / 100)%10)), ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' #define SIZE (sizeof(off64_t)) ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:28:12: error: use of undeclared identifier 'off64_t' ('0' + ((SIZE / 10)%10)), ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' #define SIZE (sizeof(off64_t)) ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:29:12: error: use of undeclared identifier 'off64_t' ('0' + (SIZE % 10)), ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c:23:22: note: expanded from macro 'SIZE' #define SIZE (sizeof(off64_t)) ^ 5 errors generated. make[1]: *** [CMakeFiles/cmTC_149d4.dir/OFF64_T.c.o] Error 1 make: *** [cmTC_149d4/fast] Error 2 /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CheckTypeSize/OFF64_T.c: #include #include #include #undef KEY #if defined(__i386) # define KEY '_','_','i','3','8','6' #elif defined(__x86_64) # define KEY '_','_','x','8','6','_','6','4' #elif defined(__ppc__) # define KEY '_','_','p','p','c','_','_' #elif defined(__ppc64__) # define KEY '_','_','p','p','c','6','4','_','_' #elif defined(__aarch64__) # define KEY '_','_','a','a','r','c','h','6','4','_','_' #elif defined(__ARM_ARCH_7A__) # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_' #elif defined(__ARM_ARCH_7S__) # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_' #endif #define SIZE (sizeof(off64_t)) static char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[', ('0' + ((SIZE / 10000)%10)), ('0' + ((SIZE / 1000)%10)), ('0' + ((SIZE / 100)%10)), ('0' + ((SIZE / 10)%10)), ('0' + (SIZE % 10)), ']', #ifdef KEY ' ','k','e','y','[', KEY, ']', #endif '\0'}; #ifdef __CLASSIC_C__ int main(argc, argv) int argc; char *argv[]; #else int main(int argc, char *argv[]) #endif { int require = 0; require += info_size[argc]; (void)argv; return require; } Determining if the getrandom exist failed with the following output: Change Dir: /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_6d982/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_6d982.dir/build.make CMakeFiles/cmTC_6d982.dir/build Building C object CMakeFiles/cmTC_6d982.dir/CheckSymbolExists.c.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_6d982.dir/CheckSymbolExists.c.o -c /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c In file included from /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/random.h:36:21: error: expected parameter declarator __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/random.h:36:21: error: expected ')' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/random.h:36:20: note: to match this '(' __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/random.h:36:28: error: expected function body after function declarator __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0) ^ /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'getrandom' return ((int*)(&getrandom))[argc]; ^ 4 errors generated. make[1]: *** [CMakeFiles/cmTC_6d982.dir/CheckSymbolExists.c.o] Error 1 make: *** [cmTC_6d982/fast] Error 2 File /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef getrandom return ((int*)(&getrandom))[argc]; #else (void)argc; return 0; #endif } Performing C SOURCE FILE Test Iconv_IS_BUILT_IN failed with the following output: Change Dir: /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_b319d/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_b319d.dir/build.make CMakeFiles/cmTC_b319d.dir/build Building C object CMakeFiles/cmTC_b319d.dir/src.c.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DIconv_IS_BUILT_IN -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_b319d.dir/src.c.o -c /Users/jiyongdong/Documents/ata/joytest/joydemo/minizip-sys/minizip/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_b319d /usr/local/Cellar/cmake/3.15.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b319d.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DIconv_IS_BUILT_IN -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_b319d.dir/src.c.o -o cmTC_b319d Undefined symbols for architecture x86_64: "_iconv", referenced from: _main in src.c.o "_iconv_close", referenced from: _main in src.c.o "_iconv_open", referenced from: _main in src.c.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [cmTC_b319d] Error 1 make: *** [cmTC_b319d/fast] Error 2 Source file was: #include #include int main() { char *a, *b; size_t i, j; iconv_t ic; ic = iconv_open("to", "from"); iconv(ic, &a, &i, &b, &j); iconv_close(ic); }