Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant compile using make. #610

Open
EndermanchFan2100 opened this issue Nov 20, 2023 · 0 comments
Open

Cant compile using make. #610

EndermanchFan2100 opened this issue Nov 20, 2023 · 0 comments

Comments

@EndermanchFan2100
Copy link

Hello, ive recently tried compiling idevicerestore on a rooted android phone running termux and ive run into some issues

~/idevicerestore $ sudo make make all-recursive
make[1]: Entering directory '/data/data/com.termux/files/home/idevicerestore' Making all in src
make[2]: Entering directory '/data/data/com.termux/files/home/idevicerestore/src'
CC idevicerestore-idevicerestore.o
CC idevicerestore-common.o CC idevicerestore-tss.o
CC idevicerestore-fls.o
CC idevicerestore-mbn.o
CC idevicerestore-img3.o
CC idevicerestore-img4.o
CC idevicerestore-ftab.o CC idevicerestore-ipsw.o
CC idevicerestore-normal.o
CC idevicerestore-dfu.o CC idevicerestore-recovery.o
CC idevicerestore-restore.o
restore.c:1423:8: warning: 'zip_replace' is deprecated: use 'zip_file_replace' instead [-Wdeprecated-declarations] 1423 | if (zip_replace(za, zindex, zs) == -1) { | ^
/data/data/com.termux/files/usr/include/zip.h:385:1: note: 'zip_replace' has been explicitly marked deprecated here
385 | ZIP_DEPRECATED("use 'zip_file_replace' instead") ZIP_EXTERN int zip_replace(zip_t *_Nonnull, zip_uint64_t, zip_source_t *_Nonnull);
| ^
/data/data/com.termux/files/usr/include/zip.h:63:42: note: expanded from macro 'ZIP_DEPRECATED'
63 | #define ZIP_DEPRECATED(x) attribute((deprecated(x)))
| ^
restore.c:1441:25: warning: 'zip_get_num_files' is deprecated: use 'zip_get_num_entries' instead [-Wdeprecated-declarations]
1441 | int i, j, keep, numf = zip_get_num_files(za);
| ^
/data/data/com.termux/files/usr/include/zip.h:383:1: note: 'zip_get_num_files' has been explicitly marked deprecated here
383 | ZIP_DEPRECATED("use 'zip_get_num_entries' instead") ZIP_EXTERN int zip_get_num_files(zip_t *_Nonnull);
| ^
/data/data/com.termux/files/usr/include/zip.h:63:42: note: expanded from macro 'ZIP_DEPRECATED'
63 | #define ZIP_DEPRECATED(x) attribute((deprecated(x)))
| ^
restore.c:1542:8: warning: 'zip_replace' is deprecated: use 'zip_file_replace' instead [-Wdeprecated-declarations]
1542 | if (zip_replace(za, zindex, zs) == -1) {
| ^
/data/data/com.termux/files/usr/include/zip.h:385:1: note: 'zip_replace' has been explicitly marked deprecated here
385 | ZIP_DEPRECATED("use 'zip_file_replace' instead") ZIP_EXTERN int zip_replace(zip_t *_Nonnull, zip_uint64_t, zip_source_t *_Nonnull);
| ^
/data/data/com.termux/files/usr/include/zip.h:63:42: note: expanded from macro 'ZIP_DEPRECATED'
63 | #define ZIP_DEPRECATED(x) attribute((deprecated(x)))
| ^
restore.c:1563:8: warning: 'zip_add' is deprecated: use 'zip_file_add' instead [-Wdeprecated-declarations]
1563 | if (zip_add(za, "bbticket.der", zs) == -1) {
| ^
/data/data/com.termux/files/usr/include/zip.h:380:1: note: 'zip_add' has been explicitly marked deprecated here
380 | ZIP_DEPRECATED("use 'zip_file_add' instead") ZIP_EXTERN zip_int64_t zip_add(zip_t *_Nonnull, const char *_Nonnull, zip_source_t *_Nonnull);
| ^
/data/data/com.termux/files/usr/include/zip.h:63:42: note: expanded from macro 'ZIP_DEPRECATED'
63 | #define ZIP_DEPRECATED(x) attribute((deprecated(x)))
| ^
4 warnings generated.
CC idevicerestore-asr.o
CC idevicerestore-fdr.o
CC idevicerestore-limera1n.o
CC idevicerestore-download.o
CC idevicerestore-locking.o
CC idevicerestore-socket.o
CC idevicerestore-thread.o
CC idevicerestore-jsmn.o
CC idevicerestore-json_plist.o
CCLD idevicerestore
ld.lld: error: undefined symbol: SHA1Init

referenced by ipsw.c:696
idevicerestore-ipsw.o:(sha1_verify_fp)
referenced by asr.c:378
idevicerestore-asr.o:(asr_send_payload)
referenced by asr.c:429
idevicerestore-asr.o:(asr_send_payload)
did you mean: SHA1_Init
defined in: /data/data/com.termux/files/usr/lib/libcrypto.so

ld.lld: error: undefined symbol: SHA1Update

referenced by ipsw.c:700
idevicerestore-ipsw.o:(sha1_verify_fp)
referenced by asr.c:413
idevicerestore-asr.o:(asr_send_payload)
did you mean: SHA1_Update
defined in: /data/data/com.termux/files/usr/lib/libcrypto.so

ld.lld: error: undefined symbol: SHA1Final

referenced by ipsw.c:702
idevicerestore-ipsw.o:(sha1_verify_fp)
referenced by asr.c:418
idevicerestore-asr.o:(asr_send_payload)
referenced by asr.c:447
idevicerestore-asr.o:(asr_send_payload)
gcc: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:499: idevicerestore] Error 1
make[2]: Leaving directory '/data/data/com.termux/files/home/idevicerestore/src'
make[1]: *** [Makefile:438: all-recursive] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/idevicerestore'
make: *** [Makefile:370: all] Error 2
~/idevicerestore $

Does anyone have a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant