Conscrypt build failure
See original GitHub issueHi, I just tried to build conscrypt after following the instructions regarding prerequisites including the set-up of boringssl. The build failed with the error whose output is listed below.
Could you please help me resolve this problem?
Thanks,
Alex Donnini
Contents of /home/adonnini1/conscrypt-master/openjdk/build/tmp/linkConscrypt_openjdk_jniSharedLibrary/output.txt.
See file:///home/adonnini1/conscrypt-master/openjdk/build/tmp/linkConscrypt_openjdk_jniSharedLibrary/output.txt for all output for linkConscrypt_openjdk_jniSharedLibrary. linking libconscrypt_openjdk_jni.so failed. /usr/bin/ld: /home/adonnini1/boringssl/build64/crypto/libcrypto.a(bcm.c.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5’ can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status
Finished linkConscrypt_openjdk_jniSharedLibrary, see full log file:///home/adonnini1/conscrypt-master/openjdk/build/tmp/linkConscrypt_openjdk_jniSharedLibrary/output.txt.
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (3 by maintainers)
Top GitHub Comments
Sounds plausible, you may also be hitting https://github.com/square/okhttp/issues/5760
Taking a step back, what are you trying to accomplish overall here? If you just want to write some okhttp code, then you don’t actually need to install Conscrypt at all, it’s an optional dependency.
On Android, the system’s primary security provider is (essentially) Conscrypt anyway, and the main reason for installing Conscrypt with your app is to get an up-to-date version for when your app is targeting older Android releases, but at this point in your app development it may not be worth getting into that level of yak shaving.
sorry closing