Build Failure due to missing zstd symbols
mcginty opened this issue · 3 comments
mcginty commented
Applicable snippet from the build logs (I just followed the iCepa instructions and ran the carthage build command as instructed).
10066 Undefined symbols for architecture arm64:
10067 "_ZSTD_compressStream", referenced from:
10068 _tor_zstd_compress_process in libor-crypto.a(compress_zstd.o)
10069 "_ZSTD_createCStream", referenced from:
10070 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10071 "_ZSTD_createDStream", referenced from:
10072 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10073 "_ZSTD_decompressStream", referenced from:
10074 _tor_zstd_compress_process in libor-crypto.a(compress_zstd.o)
10075 "_ZSTD_endStream", referenced from:
10076 _tor_zstd_compress_process in libor-crypto.a(compress_zstd.o)
10077 "_ZSTD_flushStream", referenced from:
10078 _tor_zstd_compress_process in libor-crypto.a(compress_zstd.o)
10079 "_ZSTD_freeCStream", referenced from:
10080 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10081 _tor_zstd_compress_free in libor-crypto.a(compress_zstd.o)
10082 "_ZSTD_freeDStream", referenced from:
10083 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10084 _tor_zstd_compress_free in libor-crypto.a(compress_zstd.o)
10085 "_ZSTD_getErrorName", referenced from:
10086 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10087 _tor_zstd_compress_process in libor-crypto.a(compress_zstd.o)
10088 "_ZSTD_initCStream", referenced from:
10089 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10090 "_ZSTD_initDStream", referenced from:
10091 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10092 "_ZSTD_isError", referenced from:
10093 _tor_zstd_compress_new in libor-crypto.a(compress_zstd.o)
10094 _tor_zstd_compress_process in libor-crypto.a(compress_zstd.o)
10095 "_ZSTD_versionNumber", referenced from:
10096 _tor_zstd_get_version_str in libor-crypto.a(compress_zstd.o)
10097 ld: symbol(s) not found for architecture arm64
10098 clang: error: linker command failed with exit code 1 (use -v to see invocation)
chrisballinger commented
I think you should be able to disable zstd support by modifying this line: https://github.com/iCepa/Tor.framework/blob/master/Tor/tor.sh#L64
mcginty commented
Thanks Chris! Adding --disable-zstd
fixed this bug for me. I'll keep the issue open since it's still a default build failure.
tladesignz commented
Latest Tor.framework should build without that issue. I'll close this.