idevicerestore icon indicating copy to clipboard operation
idevicerestore copied to clipboard

Cannot compile on macOS Monterey

Open galaxy4627 opened this issue 2 years ago • 1 comments

ipsw.c:153:10: error: use of undeclared identifier 'COLOR_WHITE' cprintf(COLOR_WHITE "Product Version: " COLOR_BRIGHT_YELLOW "%s" COLOR_RESET COLOR_WHITE " Build: " COLOR_BRIGHT_YELLOW "%s" COLOR_RESET "\n", prod_ver, build_ver); ^ ipsw.c:156:10: error: use of undeclared identifier 'COLOR_WHITE' cprintf(COLOR_WHITE "Supported Product Types:" COLOR_RESET); ^ ipsw.c:168:18: error: expected ')' cprintf(" " COLOR_BRIGHT_CYAN "%s" COLOR_RESET, item_str); ^ ipsw.c:168:13: note: to match this '(' cprintf(" " COLOR_BRIGHT_CYAN "%s" COLOR_RESET, item_str); ^ ipsw.c:177:10: error: use of undeclared identifier 'COLOR_WHITE' cprintf(COLOR_WHITE "Build Identities:" COLOR_RESET "\n"); ^ ipsw.c:233:17: error: expected ')' cprintf(" " COLOR_WHITE "[%d] Variant: " COLOR_BRIGHT_CYAN "%s" COLOR_WHITE " Behavior: " COLOR_BRIGHT_CYAN "%s" COLOR_RESET "\n", group_no, key, rbehavior); ^ ipsw.c:233:11: note: to match this '(' cprintf(" " COLOR_WHITE "[%d] Variant: " COLOR_BRIGHT_CYAN "%s" COLOR_WHITE " Behavior: " COLOR_BRIGHT_CYAN "%s" COLOR_RESET "\n", group_no, key, rbehavior); ^ ipsw.c:286:29: error: expected ')' cprintf(" ChipID: " COLOR_GREEN "%04x" COLOR_RESET " BoardID: " COLOR_GREEN "%02x" COLOR_RESET " Model: " COLOR_YELLOW "%-8s" COLOR_RESET " " COLOR_MAGENTA "%s" COLOR_RESET "\n", (int)chip_id, (int)board_id, hwmodel, irecvdev->display_name); ^ ipsw.c:286:13: note: to match this '(' cprintf(" ChipID: " COLOR_GREEN "%04x" COLOR_RESET " BoardID: " COLOR_GREEN "%02x" COLOR_RESET " Model: " COLOR_YELLOW "%-8s" COLOR_RESET " " COLOR_MAGENTA "%s" COLOR_RESET "\n", (int)chip_id, (int)board_id, hwmodel, irecvdev->display_name); ^ ipsw.c:288:29: error: expected ')' cprintf(" ChipID: " COLOR_GREEN "%04x" COLOR_RESET " BoardID: " COLOR_GREEN "%02x" COLOR_RESET " Model: " COLOR_YELLOW "%s" COLOR_RESET "\n", (int)chip_id, (int)board_id, hwmodel); ^ ipsw.c:288:13: note: to match this '(' cprintf(" ChipID: " COLOR_GREEN "%04x" COLOR_RESET " BoardID: " COLOR_GREEN "%02x" COLOR_RESET " Model: " COLOR_YELLOW "%s" COLOR_RESET "\n", (int)chip_id, (int)board_id, hwmodel); ^ ipsw.c:920:2: warning: 'SHA1_Init' is deprecated [-Wdeprecated-declarations] SHA1_Init(&sha1ctx); ^ /usr/local/include/openssl/sha.h:49:1: note: 'SHA1_Init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'

define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)

                                            ^

/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'

define OSSL_DEPRECATED(since) attribute((deprecated))

                                               ^

ipsw.c:924:3: warning: 'SHA1_Update' is deprecated [-Wdeprecated-declarations] SHA1_Update(&sha1ctx, (const void*)buf, sz); ^ /usr/local/include/openssl/sha.h:50:1: note: 'SHA1_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'

define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)

                                            ^

/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'

define OSSL_DEPRECATED(since) attribute((deprecated))

                                               ^

ipsw.c:926:2: warning: 'SHA1_Final' is deprecated [-Wdeprecated-declarations] SHA1_Final(tsha1, &sha1ctx); ^ /usr/local/include/openssl/sha.h:51:1: note: 'SHA1_Final' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'

define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)

                                            ^

/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'

define OSSL_DEPRECATED(since) attribute((deprecated))

                                               ^

222 warnings and 7 errors generated. make[2]: *** [idevicerestore-ipsw.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

galaxy4627 avatar May 28 '22 01:05 galaxy4627

Latest commit should fix it: https://github.com/libimobiledevice/idevicerestore/commit/f80a876b3598de4eb551bafcb279947c527fae33

nikias avatar May 28 '22 08:05 nikias