question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conscrypt build failure

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
prbprbprbcommented, Mar 4, 2020

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.

0reactions
adonninicommented, Mar 4, 2020

sorry closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android JNI Builds - Google Groups
I am new to conscrypt, so excuse this question, but I'd like to use conscrypt as a specific JCP on Android. I see...
Read more >
Conscrypt - Android Open Source Project
The Conscrypt module accelerates security improvements and improves device security without relying on OTA updates. It uses Java code and a native library ......
Read more >
Cannot build signed APK on Android studio 4.2 beta 1 ...
When building Signed APK receive error with message. Missing class: org.conscrypt.ConscryptHostnameVerifier. Missing class: java.lang.instrument.
Read more >
Failed to build sample SDK add-on on Android 13 AOSP
I'm trying to build my own SDK ...
Read more >
build.gradle - platform/external/conscrypt - Git at Google
build.gradle ... def androidProject = ((project.name == 'conscrypt-android') ... throw new GradleException('Jar signing failed for ' + jarPath + ': ' + ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found