libsodiumでenclave.soのビルドができない②
どうにもリンクまわりのオプション指定とかが原因っぽいものの、依存が多くなってきたので、新しいコンテナでやる。
code:sh
tar -zxvf libsodium-1.0.18-stable.tar.gz
cd libsodium-stable
./configure
make && make check
sudo make install
code:sh
export SODIUM_LIB_DIR=/usr/local/lib
export SODIUM_SHARED=1
-lsodium -L/usr/local/libは順番逆?
→変わらず
環境変数をなしで
code:sh
export SODIUM_LIB_DIR=
export SODIUM_SHARED=
code:sh
root@d693341101b2:~/anonify/scripts# make DEBUG=1 ENCLAVE_DIR=example/erc20/enclave
Rust_Enclave_Name <= /root/anonify/scripts
Compiling digest v0.8.1
Compiling block-buffer v0.7.3
Compiling digest v0.6.2
Compiling crypto-mac v0.4.0
Compiling block-buffer v0.2.0
Compiling libsodium-sys v0.2.6
error: empty search path given via -L
The following warnings were emitted during compilation:
warning: Using unknown libsodium version. This crate is tested against 1.0.18 and may not be fully compatible with other versions.
error: could not compile libsodium-sys
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Makefile:134: recipe for target 'libenclave.a' failed
unsetだった...
code:sh
unset SODIUM_LIB_DIR
unset SODIUM_SHARED
この状態で出てくるのがcloseなどのundifinedエラー
code:sh
RustEnclave_Link_Flags => -m64 -O0 -g -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/opt/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tservice -lsgx_tcrypto -L/usr/local/lib -lsodium -L../build/lib -lenclave -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections -Wl,--version-script=../config/Enclave.lds
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-core.o): in function `sodium_crit_enter':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/sodium/core.c:118: undefined reference to `pthread_mutex_lock'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-core.o): in function `sodium_crit_leave':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/sodium/core.c:136: undefined reference to `pthread_mutex_unlock'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `sodium_memzero':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/sodium/utils.c:127: undefined reference to `explicit_bzero'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `safe_read':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:135: undefined reference to `read'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `randombytes_block_on_dev_random':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:158: undefined reference to `open'
/usr/local/bin/ld: /root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:166: undefined reference to `poll'
/usr/local/bin/ld: /root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:169: undefined reference to `close'
/usr/local/bin/ld: /root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:173: undefined reference to `close'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `randombytes_sysrandom_random_dev_open':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:197: undefined reference to `open'
/usr/local/bin/ld: /root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:199: undefined reference to `fstat'
/usr/local/bin/ld: /root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:209: undefined reference to `fcntl'
/usr/local/bin/ld: /root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:209: undefined reference to `fcntl'
/usr/local/bin/ld: /root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:213: undefined reference to `close'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `_randombytes_linux_getrandom':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:233: undefined reference to `getrandom'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `randombytes_sysrandom_close':
/root/anonify/target/debug/build/libsodium-sys-fb96fa707666c09b/out/source/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:318: undefined reference to `close'
collect2: error: ld returned 1 exit status
Makefile:140: recipe for target '../build/enclave.so' failed
root@d693341101b2:~/anonify/scripts# ls
SODIUM_LIB_DIRだけ設定
code:sh
export SODIUM_LIB_DIR=/usr/local/lib
code:sh
RustEnclave_Link_Flags => -m64 -O0 -g -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/opt/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tservice -lsgx_tcrypto -L/usr/local/lib -lsodium -L../build/lib -lenclave -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections -Wl,--version-script=../config/Enclave.lds
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-core.o): in function `sodium_crit_enter':
/root/libsodium-stable/src/libsodium/sodium/core.c:118: undefined reference to `pthread_mutex_lock'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-core.o): in function `sodium_crit_leave':
/root/libsodium-stable/src/libsodium/sodium/core.c:136: undefined reference to `pthread_mutex_unlock'
/usr/local/bin/ld: /root/libsodium-stable/src/libsodium/sodium/core.c:136: undefined reference to `pthread_mutex_unlock'
/usr/local/bin/ld: /root/libsodium-stable/src/libsodium/sodium/core.c:136: undefined reference to `pthread_mutex_unlock'
/usr/local/bin/ld: /root/libsodium-stable/src/libsodium/sodium/core.c:136: undefined reference to `pthread_mutex_unlock'
/usr/local/bin/ld: /root/libsodium-stable/src/libsodium/sodium/core.c:136: undefined reference to `pthread_mutex_unlock'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `explicit_bzero':
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:83: undefined reference to `__explicit_bzero_chk'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_sodium_alloc_init':
/root/libsodium-stable/src/libsodium/sodium/utils.c:403: undefined reference to `sysconf'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `sodium_mlock':
/root/libsodium-stable/src/libsodium/sodium/utils.c:427: undefined reference to `madvise'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `explicit_bzero':
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:83: undefined reference to `__explicit_bzero_chk'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `sodium_munlock':
/root/libsodium-stable/src/libsodium/sodium/utils.c:444: undefined reference to `madvise'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_alloc_aligned':
/root/libsodium-stable/src/libsodium/sodium/utils.c:527: undefined reference to `mmap'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_mprotect_noaccess':
/root/libsodium-stable/src/libsodium/sodium/utils.c:460: undefined reference to `mprotect'
/usr/local/bin/ld: /root/libsodium-stable/src/libsodium/sodium/utils.c:460: undefined reference to `mprotect'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_mprotect_readonly':
/root/libsodium-stable/src/libsodium/sodium/utils.c:474: undefined reference to `mprotect'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_mprotect_readwrite':
/root/libsodium-stable/src/libsodium/sodium/utils.c:488: undefined reference to `mprotect'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_out_of_bounds':
/root/libsodium-stable/src/libsodium/sodium/utils.c:505: undefined reference to `raise'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_mprotect_noaccess':
/root/libsodium-stable/src/libsodium/sodium/utils.c:460: undefined reference to `mprotect'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_mprotect_readonly':
/root/libsodium-stable/src/libsodium/sodium/utils.c:474: undefined reference to `mprotect'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_mprotect_readwrite':
/root/libsodium-stable/src/libsodium/sodium/utils.c:488: undefined reference to `mprotect'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `explicit_bzero':
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:83: undefined reference to `__explicit_bzero_chk'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `sodium_mlock':
/root/libsodium-stable/src/libsodium/sodium/utils.c:430: undefined reference to `mlock'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `sodium_munlock':
/root/libsodium-stable/src/libsodium/sodium/utils.c:447: undefined reference to `munlock'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-utils.o): in function `_free_aligned':
/root/libsodium-stable/src/libsodium/sodium/utils.c:548: undefined reference to `munmap'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `randombytes_sysrandom_close':
/root/libsodium-stable/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:319: undefined reference to `close'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `_randombytes_linux_getrandom':
/root/libsodium-stable/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:234: undefined reference to `getrandom'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `open':
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:53: undefined reference to `open'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `poll':
/usr/include/x86_64-linux-gnu/bits/poll2.h:46: undefined reference to `poll'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `randombytes_block_on_dev_random':
/root/libsodium-stable/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:170: undefined reference to `close'
/usr/local/bin/ld: /root/libsodium-stable/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:174: undefined reference to `close'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `fstat':
/usr/include/x86_64-linux-gnu/sys/stat.h:465: undefined reference to `__fxstat'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `randombytes_sysrandom_random_dev_open':
/root/libsodium-stable/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:214: undefined reference to `close'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `open':
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:53: undefined reference to `open'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `randombytes_sysrandom_random_dev_open':
/root/libsodium-stable/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:210: undefined reference to `fcntl'
/usr/local/bin/ld: /root/libsodium-stable/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c:210: undefined reference to `fcntl'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-randombytes_sysrandom.o): in function `read':
/usr/include/x86_64-linux-gnu/bits/unistd.h:44: undefined reference to `read'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-argon2-core.o): in function `free_memory':
/root/libsodium-stable/src/libsodium/crypto_pwhash/argon2/argon2-core.c:168: undefined reference to `munmap'
/usr/local/bin/ld: ../build/lib/libenclave.a(libsodium_la-argon2-core.o): in function `allocate_memory':
/root/libsodium-stable/src/libsodium/crypto_pwhash/argon2/argon2-core.c:97: undefined reference to `mmap'
collect2: error: ld returned 1 exit status
Makefile:140: recipe for target '../build/enclave.so' failed
code:sh
export SODIUM_SHARED=1
これでcrypto_scalarmult_baseに戻った
code:sh
root@d693341101b2:~/anonify/scripts# nm /usr/local/lib/libsodium.a | grep crypto_box_open_easy
0000000000000200 T crypto_box_open_easy
00000000000001d0 T crypto_box_open_easy_afternm
U crypto_box_open_easy
root@d693341101b2:~/anonify/scripts# nm /usr/local/lib/libsodium.a | grep crypto_scalarmult_base
U crypto_scalarmult_base
0000000000000010 T crypto_scalarmult_base
root@d693341101b2:~/anonify/scripts# nm /usr/local/lib/libsodium.a | grep sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
0000000000000080 T sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
U sodium_memzero
root@d693341101b2:~/anonify/scripts# nm /usr/local/lib/libsodium.a | grep crypto_box_curve25519xsalsa20poly1305_keypair
U crypto_box_curve25519xsalsa20poly1305_keypair
0000000000000080 T crypto_box_curve25519xsalsa20poly1305_keypair
code:sh
root@d693341101b2:~/libsodium-stable/src/libsodium/include# ls
Makefile Makefile.am Makefile.in sodium sodium.h
-l/root/libsodium-stable/src/libsodium/includeオプションつけてビルド
code:sh
/usr/local/bin/ld: cannot find -l/root/libsodium-stable/src/libsodium/include/
collect2: error: ld returned 1 exit status
Makefile:140: recipe for target '../build/enclave.so' failed
-L/root/libsodium-stable/src/libsodium/include
→これはあんまり意味がないので、crypto_scalarmult_baseに戻ってきた
EDLにinclude "sodium.h"を書いてみる
code:sh
cp /root/libsodium-stable/src/libsodium/include/sodium.h ~/anonify/build/
cp -r /root/libsodium-stable/src/libsodium/include/sodium ~/anonify/build/
うーん。同じエラー
target消すか
変わらず。
Enclave_Include_Pathsの設定かな?
code:sh
RustEnclave_Include_Paths := -I$(CUSTOM_COMMON_PATH)/inc -I$(CUSTOM_EDL_PATH) -I$(SGX_SDK)/include -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/stlport -I$(SGX_SDK)/include/epid -I $(ANONIFY_ENCLAVE_DIR) -I./include -I/root/libsodium-stable/src/libsodium/include -I /root/libsodium-stable/src/libsodium/include/sodium
code:sh
@cp $(CUSTOM_LIBRARY_PATH)/libenclave.a ./
@$(CXX) $^ $(ANONIFY_BUILD_DIR)/$(T_O_FILE) -o $@ $(RustEnclave_Link_Flags)
code:sh
T_O_FILE => Anonify_common_t.o
../build/enclave.so => ../build/enclave.so
RustEnclave_Link_Flags => -m64 -O0 -g -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/opt/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tservice -lsgx_tcrypto -L/usr/local/lib -lsodium -L../build/lib -lenclave -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections -Wl,--version-script=../config/Enclave.lds
^Cmake: *** Deleting file '../build/enclave.so'
Makefile:140: recipe for target '../build/enclave.so' failed
root@d693341101b2:~/anonify/scripts# make DEBUG=1 ENCLAVE_DIR=example/erc20/enclave
Rust_Enclave_Name <= /root/anonify/scripts
warning: associated function is never used: insert
--> modules/anonify-enclave/src/kvs/mod.rs:51:12
|
51 | pub fn insert(&self, account_id: AccountId, mem_id: MemId, state: StateType) {
| ^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: associated function is never used: delete
--> modules/anonify-enclave/src/kvs/mod.rs:57:12
|
57 | pub fn delete(&self, account_id: AccountId, mem_id: MemId) {
| ^^^^^^
warning: 2 warnings emitted
mkdir -p ../build/lib
mkdir -p ../build
/opt/sgxsdk/bin/x64/sgx_edger8r --trusted ../edl/Anonify_common.edl --search-path /opt/sgxsdk/include --search-path /root/sgx/edl --trusted-dir ../build
/opt/sgxsdk/bin/x64/sgx_edger8r --untrusted ../edl/Anonify_common.edl --search-path /opt/sgxsdk/include --search-path /root/sgx/edl --untrusted-dir ../build
GEN => TEMP_EDL_CONST
CC <= TEMP_EDL_CONST
CXX => g++
ANONIFY_BUILD_DIR => ../build
T_O_FILE => Anonify_common_t.o
../build/enclave.so => ../build/enclave.so
RustEnclave_Link_Flags => -m64 -O0 -g -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/opt/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tservice -lsgx_tcrypto -L/usr/local/lib -lsodium -L../build/lib -lenclave -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections -Wl,--version-script=../config/Enclave.lds
/usr/local/bin/ld: ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:956: multiple definition of `g_ecall_table'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:956: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:968: multiple definition of `g_dyn_entry_table'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:968: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `ocall_import_path_secret':
/root/anonify/scripts/../build/Anonify_common_t.c:1079: multiple definition of `ocall_import_path_secret'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1079: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `ocall_sgx_init_quote':
/root/anonify/scripts/../build/Anonify_common_t.c:1155: multiple definition of `ocall_sgx_init_quote'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1155: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `ocall_get_quote':
/root/anonify/scripts/../build/Anonify_common_t.c:1226: multiple definition of `ocall_get_quote'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1226: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `ocall_get_ias_socket':
/root/anonify/scripts/../build/Anonify_common_t.c:1393: multiple definition of `ocall_get_ias_socket'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1393: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `ocall_get_update_info':
/root/anonify/scripts/../build/Anonify_common_t.c:1447: multiple definition of `ocall_get_update_info'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1447: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_read_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1514: multiple definition of `u_read_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1514: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_pread64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1571: multiple definition of `u_pread64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1571: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_readv_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1629: multiple definition of `u_readv_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1629: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_preadv64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1701: multiple definition of `u_preadv64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1701: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_write_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1774: multiple definition of `u_write_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1774: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_pwrite64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1831: multiple definition of `u_pwrite64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1831: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_writev_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1889: multiple definition of `u_writev_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1889: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_pwritev64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:1961: multiple definition of `u_pwritev64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:1961: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fcntl_arg0_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2034: multiple definition of `u_fcntl_arg0_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2034: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fcntl_arg1_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2090: multiple definition of `u_fcntl_arg1_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2090: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_ioctl_arg0_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2147: multiple definition of `u_ioctl_arg0_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2147: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_ioctl_arg1_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2203: multiple definition of `u_ioctl_arg1_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2203: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_close_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2287: multiple definition of `u_close_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2287: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_malloc_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2342: multiple definition of `u_malloc_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2342: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_free_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2397: multiple definition of `u_free_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2397: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_mmap_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2424: multiple definition of `u_mmap_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2424: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_munmap_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2484: multiple definition of `u_munmap_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2484: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_msync_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2540: multiple definition of `u_msync_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2540: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_mprotect_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2597: multiple definition of `u_mprotect_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2597: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_open_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2654: multiple definition of `u_open_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2654: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_open64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2729: multiple definition of `u_open64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2729: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fstat_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2805: multiple definition of `u_fstat_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2805: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fstat64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2881: multiple definition of `u_fstat64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2881: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_stat_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:2957: multiple definition of `u_stat_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:2957: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_stat64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3052: multiple definition of `u_stat64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3052: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_lstat_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3147: multiple definition of `u_lstat_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3147: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_lstat64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3242: multiple definition of `u_lstat64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3242: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_lseek_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3337: multiple definition of `u_lseek_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3337: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_lseek64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3394: multiple definition of `u_lseek64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3394: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_ftruncate_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3451: multiple definition of `u_ftruncate_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3451: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_ftruncate64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3507: multiple definition of `u_ftruncate64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3507: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_truncate_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3563: multiple definition of `u_truncate_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3563: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_truncate64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3638: multiple definition of `u_truncate64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3638: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fsync_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3713: multiple definition of `u_fsync_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3713: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fdatasync_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3768: multiple definition of `u_fdatasync_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3768: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fchmod_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3823: multiple definition of `u_fchmod_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3823: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_unlink_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3879: multiple definition of `u_unlink_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3879: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_link_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:3953: multiple definition of `u_link_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:3953: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_rename_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4047: multiple definition of `u_rename_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4047: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_chmod_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4141: multiple definition of `u_chmod_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4141: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_readlink_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4216: multiple definition of `u_readlink_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4216: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_symlink_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4316: multiple definition of `u_symlink_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4316: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_realpath_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4410: multiple definition of `u_realpath_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4410: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_mkdir_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4484: multiple definition of `u_mkdir_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4484: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_rmdir_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4559: multiple definition of `u_rmdir_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4559: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_opendir_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4633: multiple definition of `u_opendir_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4633: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_readdir64_r_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4707: multiple definition of `u_readdir64_r_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4707: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_closedir_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4786: multiple definition of `u_closedir_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4786: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_dirfd_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4841: multiple definition of `u_dirfd_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4841: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_fstatat64_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4896: multiple definition of `u_fstatat64_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4896: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_thread_set_event_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:4993: multiple definition of `u_thread_set_event_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:4993: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_thread_wait_event_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5048: multiple definition of `u_thread_wait_event_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5048: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_thread_set_multiple_events_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5119: multiple definition of `u_thread_set_multiple_events_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5119: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_thread_setwait_events_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5194: multiple definition of `u_thread_setwait_events_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5194: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_clock_gettime_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5266: multiple definition of `u_clock_gettime_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5266: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getaddrinfo_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5342: multiple definition of `u_getaddrinfo_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5342: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_freeaddrinfo_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5477: multiple definition of `u_freeaddrinfo_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5477: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_gai_strerror_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5504: multiple definition of `u_gai_strerror_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5504: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_socket_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5532: multiple definition of `u_socket_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5532: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_socketpair_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5589: multiple definition of `u_socketpair_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5589: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_bind_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5671: multiple definition of `u_bind_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5671: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_listen_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5743: multiple definition of `u_listen_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5743: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_accept_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5799: multiple definition of `u_accept_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5799: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_accept4_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:5900: multiple definition of `u_accept4_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:5900: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_connect_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6002: multiple definition of `u_connect_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6002: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_recv_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6074: multiple definition of `u_recv_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6074: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_recvfrom_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6132: multiple definition of `u_recvfrom_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6132: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_recvmsg_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6233: multiple definition of `u_recvmsg_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6233: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_send_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6313: multiple definition of `u_send_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6313: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_sendto_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6371: multiple definition of `u_sendto_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6371: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_sendmsg_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6446: multiple definition of `u_sendmsg_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6446: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getsockopt_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6518: multiple definition of `u_getsockopt_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6518: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_setsockopt_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6618: multiple definition of `u_setsockopt_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6618: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getsockname_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6692: multiple definition of `u_getsockname_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6692: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getpeername_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6790: multiple definition of `u_getpeername_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6790: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_shutdown_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6888: multiple definition of `u_shutdown_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6888: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_poll_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:6944: multiple definition of `u_poll_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:6944: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_epoll_create1_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7024: multiple definition of `u_epoll_create1_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7024: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_epoll_ctl_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7079: multiple definition of `u_epoll_ctl_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7079: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_epoll_wait_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7152: multiple definition of `u_epoll_wait_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7152: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `sgx_oc_cpuidex':
/root/anonify/scripts/../build/Anonify_common_t.c:7230: multiple definition of `sgx_oc_cpuidex'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7230: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `sgx_thread_wait_untrusted_event_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7285: multiple definition of `sgx_thread_wait_untrusted_event_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7285: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `sgx_thread_set_untrusted_event_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7313: multiple definition of `sgx_thread_set_untrusted_event_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7313: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `sgx_thread_setwait_untrusted_events_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7341: multiple definition of `sgx_thread_setwait_untrusted_events_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7341: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `sgx_thread_set_multiple_untrusted_events_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7370: multiple definition of `sgx_thread_set_multiple_untrusted_events_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7370: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_pipe_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7420: multiple definition of `u_pipe_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7420: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_pipe2_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7499: multiple definition of `u_pipe2_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7499: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_environ_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7579: multiple definition of `u_environ_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7579: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getenv_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7606: multiple definition of `u_getenv_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7606: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_setenv_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7655: multiple definition of `u_setenv_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7655: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_unsetenv_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7750: multiple definition of `u_unsetenv_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7750: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_chdir_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7824: multiple definition of `u_chdir_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7824: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getcwd_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7898: multiple definition of `u_getcwd_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7898: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getpwuid_r_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:7978: multiple definition of `u_getpwuid_r_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:7978: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `u_getuid_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:8080: multiple definition of `u_getuid_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:8080: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `pthread_wait_timeout_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:8107: multiple definition of `pthread_wait_timeout_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:8107: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `pthread_create_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:8136: multiple definition of `pthread_create_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:8136: first defined here
/usr/local/bin/ld: ../build/Anonify_common_t.o: in function `pthread_wakeup_ocall':
/root/anonify/scripts/../build/Anonify_common_t.c:8164: multiple definition of `pthread_wakeup_ocall'; ../build/Anonify_common_t.o:/root/anonify/scripts/../build/Anonify_common_t.c:8164: first defined here
collect2: error: ld returned 1 exit status
Makefile:140: recipe for target '../build/enclave.so' failed
code:sh
$(RustEnclave_Name): $(Rust_Enclave_Name) $(ANONIFY_BUILD_DIR)/$(T_O_FILE)
@echo "CXX => $(CXX)" # g++
@echo "ANONIFY_BUILD_DIR => $(ANONIFY_BUILD_DIR)"
@echo "T_O_FILE => $(T_O_FILE)" # Anonify_common_t.o
@echo "$@ => $(@)" # ../build/enclave.s
@echo "RustEnclave_Link_Flags => $(RustEnclave_Link_Flags)" # -m64 -O0 -g -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/opt/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tservice -lsgx_tcrypto -lsodium -L../build/lib -lenclave -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections -Wl,--version-script=../config/Enclave.lds
@cp $(CUSTOM_LIBRARY_PATH)/libenclave.a ./
@$(CXX) $^ -o $@ $(RustEnclave_Link_Flags)
@echo "LINK => $@"
code:sh
<!-- Please refer to User's Guide for the explanation of each field -->
<EnclaveConfiguration>
<ProdID>0</ProdID>
<ISVSVN>0</ISVSVN>
<StackMaxSize>0x40000</StackMaxSize>
<HeapMaxSize>0x100000</HeapMaxSize>
<TCSNum>6</TCSNum>
<TCSPolicy>1</TCSPolicy>
<DisableDebug>0</DisableDebug>
<MiscSelect>0</MiscSelect>
<MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>
Symbol table incorrect
The input enclave file is not correct.
Error happened while signing the enclave.
Makefile:150: recipe for target '../.anonify/enclave.signed.so' failed