执行以下操作时出现错误:
./Configure no-shared
make
我正在尝试获取Openssl的静态库。它在没有no-shared
的情况下有效。这是链接错误:
duplicate symbol '_OPENSSL_wipe_cpu' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_instrument_bus' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_ia32_rdrand_bytes' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_ia32_rdseed_bytes' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_CRYPTO_memcmp' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_cleanse' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_ia32_cpuid' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_atomic_add' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_rdtsc' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
duplicate symbol '_OPENSSL_instrument_bus2' in:
providers/liblegacy.a(liblegacy-lib-x86_64cpuid.o)
./libcrypto.a(libcrypto-lib-x86_64cpuid.o)
ld: 10 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [providers/legacy.dylib] Error 1
make: *** [build_sw] Error 2
我该如何解决?