Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile it (relocation R_X86_64_32 against `.rodata' can not be used when making a shared object) #70

Closed
Endle opened this issue Feb 2, 2021 · 3 comments

Comments

@Endle
Copy link
Contributor

Endle commented Feb 2, 2021

$ gcc --version
gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9)

commit 10ad7a72bd1e4c5ea10b51b8e4f49f5aca8777f8 (grafted, HEAD -> develop, origin/develop, origin/HEAD)
Author: Esme Povirk <[email protected]>
Date:   Fri Jan 29 13:56:04 2021 -0600

    Fix clean rule for mono-basic tests.

Terminal output

[ 88%] Building C object CMakeFiles/mono-btls-shared.dir/btls-x509.c.o
[ 89%] Linking C shared library libmono-btls-shared.so
/usr/bin/ld: boringssl/crypto/CMakeFiles/crypto-objects.dir/cpu-intel.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/CMakeFiles/crypto-objects.dir/crypto.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/CMakeFiles/crypto-objects.dir/ex_data.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/CMakeFiles/crypto-objects.dir/refcount_lock.c.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/CMakeFiles/crypto-objects.dir/thread.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/CMakeFiles/crypto-objects.dir/thread_pthread.c.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/lhash/CMakeFiles/lhash.dir/lhash.c.o: relocation R_X86_64_32S against symbol `strcmp@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/err/CMakeFiles/err.dir/err.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/base64/CMakeFiles/base64.dir/base64.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bytestring/CMakeFiles/bytestring.dir/asn1_compat.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bytestring/CMakeFiles/bytestring.dir/ber.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bytestring/CMakeFiles/bytestring.dir/cbs.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bytestring/CMakeFiles/bytestring.dir/cbb.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/sha/CMakeFiles/sha.dir/sha1.c.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/sha/CMakeFiles/sha.dir/sha256.c.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/sha/CMakeFiles/sha.dir/sha512.c.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/md4/CMakeFiles/md4.dir/md4.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/md5/CMakeFiles/md5.dir/md5.c.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/digest/CMakeFiles/digest.dir/digest.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/digest/CMakeFiles/digest.dir/digests.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/cipher.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/derive_key.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/aead.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_null.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_rc2.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_rc4.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_des.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_aes.c.o: relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_chacha20poly1305.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/tls_cbc.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_tls.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cipher/CMakeFiles/cipher.dir/e_ssl3.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/modes/CMakeFiles/modes.dir/cbc.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/modes/CMakeFiles/modes.dir/ctr.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/modes/CMakeFiles/modes.dir/ofb.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/modes/CMakeFiles/modes.dir/cfb.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/modes/CMakeFiles/modes.dir/gcm.c.o: relocation R_X86_64_32S against hidden symbol `aesni_ctr32_encrypt_blocks' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/aes/CMakeFiles/aes.dir/mode_wrappers.c.o: relocation R_X86_64_32S against hidden symbol `AES_encrypt' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/des/CMakeFiles/des.dir/des.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/conf/CMakeFiles/conf.dir/conf.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/chacha/CMakeFiles/chacha.dir/chacha.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/poly1305/CMakeFiles/poly1305.dir/poly1305_vec.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/curve25519/CMakeFiles/curve25519.dir/curve25519.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/curve25519/CMakeFiles/curve25519.dir/spake25519.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/buf/CMakeFiles/buf.dir/buf.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/add.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/bn.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/bn_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/convert.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/ctx.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/div.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/exponentiation.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/gcd.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/kronecker.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/montgomery.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/mul.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/prime.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/random.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/shift.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/sqrt.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bn/CMakeFiles/bn.dir/rsaz_exp.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/bio.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/bio_mem.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/buffer.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/connect.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/fd.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/file.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/hexdump.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/pair.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/printf.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/socket.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/bio/CMakeFiles/bio.dir/socket_helper.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/rand/CMakeFiles/rand.dir/rand.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/rand/CMakeFiles/rand.dir/urandom.c.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/obj/CMakeFiles/obj.dir/obj.c.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/obj/CMakeFiles/obj.dir/obj_xref.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_bitstr.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_bool.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_bytes.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_d2i_fp.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_dup.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_enum.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_gentm.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_i2d_fp.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_int.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_mbstr.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_object.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_strnid.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_time.c.o: relocation R_X86_64_32 against hidden symbol `ASN1_TIME_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_utctm.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/asn1_lib.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/asn1_par.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/asn_pack.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/f_enum.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/f_int.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/f_string.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/t_bitst.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/tasn_dec.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/tasn_enc.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/tasn_fre.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/tasn_new.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/tasn_typ.c.o: relocation R_X86_64_32 against hidden symbol `ASN1_OCTET_STRING_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/tasn_utl.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/x_long.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/engine/CMakeFiles/engine.dir/engine.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/dh/CMakeFiles/dh.dir/dh.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/dh/CMakeFiles/dh.dir/params.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/dh/CMakeFiles/dh.dir/dh_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/dsa/CMakeFiles/dsa.dir/dsa.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/dsa/CMakeFiles/dsa.dir/dsa_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/rsa/CMakeFiles/rsa.dir/rsa.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/rsa/CMakeFiles/rsa.dir/rsa_impl.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/rsa/CMakeFiles/rsa.dir/blinding.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/rsa/CMakeFiles/rsa.dir/padding.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/rsa/CMakeFiles/rsa.dir/rsa_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/ec.c.o: relocation R_X86_64_32S against hidden symbol `OPENSSL_built_in_curves' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/ec_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/ec_key.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/ec_montgomery.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/oct.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/p224-64.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/p256-64.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/p256-x86_64.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/simple.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ec/CMakeFiles/ec.dir/wnaf.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ecdh/CMakeFiles/ecdh.dir/ecdh.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ecdsa/CMakeFiles/ecdsa.dir/ecdsa.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/ecdsa/CMakeFiles/ecdsa.dir/ecdsa_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/hmac/CMakeFiles/hmac.dir/hmac.c.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/cmac/CMakeFiles/cmac.dir/cmac.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/digestsign.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/evp.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/evp_asn1.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/evp_ctx.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/p_dsa_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/p_ec.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/p_ec_asn1.c.o: relocation R_X86_64_32 against hidden symbol `ec_asn1_meth' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/p_rsa.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/p_rsa_asn1.c.o: relocation R_X86_64_32 against hidden symbol `rsa_asn1_meth' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/evp/CMakeFiles/evp.dir/print.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/hkdf/CMakeFiles/hkdf.dir/hkdf.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_all.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_info.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_lib.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_oth.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_pk8.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_pkey.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_x509.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pem/CMakeFiles/pem.dir/pem_xaux.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/a_digest.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/a_sign.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/a_strex.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/a_verify.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/algorithm.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/asn1_gen.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/by_dir.c.o: relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/by_file.c.o: relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/i2d_pr.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/pkcs7.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/rsa_pss.c.o: relocation R_X86_64_32 against hidden symbol `RSA_PSS_PARAMS_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/t_crl.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/t_req.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/t_x509.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/t_x509a.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_att.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_cmp.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_def.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_lu.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_obj.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_r2x.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_req.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_trs.c.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_txt.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_v3.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_vfy.c.o: relocation R_X86_64_32 against hidden symbol `X509_free' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509_vpm.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509name.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x509spki.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_algor.c.o: relocation R_X86_64_32 against hidden symbol `X509_ALGOR_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_all.c.o: relocation R_X86_64_32 against hidden symbol `X509_CINF_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_attrib.c.o: relocation R_X86_64_32 against hidden symbol `X509_ATTRIBUTE_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_crl.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_exten.c.o: relocation R_X86_64_32 against hidden symbol `X509_EXTENSION_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_info.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_name.c.o: relocation R_X86_64_32 against hidden symbol `X509_NAME_ENTRY_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_pkey.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_pubkey.c.o: relocation R_X86_64_32 against hidden symbol `X509_PUBKEY_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_req.c.o: relocation R_X86_64_32 against hidden symbol `X509_REQ_INFO_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_sig.c.o: relocation R_X86_64_32 against hidden symbol `X509_SIG_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_spki.c.o: relocation R_X86_64_32 against hidden symbol `NETSCAPE_SPKAC_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_val.c.o: relocation R_X86_64_32 against hidden symbol `X509_VAL_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_x509.c.o: relocation R_X86_64_32 against hidden symbol `X509_CINF_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509/CMakeFiles/x509.dir/x_x509a.c.o: relocation R_X86_64_32 against hidden symbol `X509_CERT_AUX_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/pcy_cache.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/pcy_data.c.o: relocation R_X86_64_32 against hidden symbol `POLICYQUALINFO_free' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/pcy_map.c.o: relocation R_X86_64_32 against hidden symbol `POLICY_MAPPING_free' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/pcy_node.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/pcy_tree.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_akey.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_akeya.c.o: relocation R_X86_64_32 against hidden symbol `AUTHORITY_KEYID_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_alt.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_bcons.c.o: relocation R_X86_64_32 against hidden symbol `BASIC_CONSTRAINTS_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_bitst.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_conf.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_cpols.c.o: relocation R_X86_64_32 against hidden symbol `CERTIFICATEPOLICIES_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_crld.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_extku.c.o: relocation R_X86_64_32 against hidden symbol `EXTENDED_KEY_USAGE_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_genn.c.o: relocation R_X86_64_32 against hidden symbol `OTHERNAME_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_ia5.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_info.c.o: relocation R_X86_64_32 against hidden symbol `ACCESS_DESCRIPTION_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_lib.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_ncons.c.o: relocation R_X86_64_32 against hidden symbol `GENERAL_SUBTREE_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_pci.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_pcia.c.o: relocation R_X86_64_32 against hidden symbol `PROXY_POLICY_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_pcons.c.o: relocation R_X86_64_32 against hidden symbol `POLICY_CONSTRAINTS_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_pku.c.o: relocation R_X86_64_32 against hidden symbol `PKEY_USAGE_PERIOD_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_pmaps.c.o: relocation R_X86_64_32 against hidden symbol `POLICY_MAPPING_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_prn.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_purp.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_skey.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_sxnet.c.o: relocation R_X86_64_32 against hidden symbol `SXNETID_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/x509v3/CMakeFiles/x509v3.dir/v3_utl.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pkcs8/CMakeFiles/pkcs8_lib.dir/pkcs8.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/pkcs8/CMakeFiles/pkcs8_lib.dir/p8_pkey.c.o: relocation R_X86_64_32 against hidden symbol `PKCS8_PRIV_KEY_INFO_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/pkcs8/CMakeFiles/pkcs8_lib.dir/p5_pbe.c.o: relocation R_X86_64_32 against hidden symbol `PBEPARAM_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/pkcs8/CMakeFiles/pkcs8_lib.dir/p5_pbev2.c.o: relocation R_X86_64_32 against hidden symbol `PBE2PARAM_it' can not be used when making a shared object
/usr/bin/ld: boringssl/crypto/newhope/CMakeFiles/newhope.dir/ntt.c.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/newhope/CMakeFiles/newhope.dir/poly.c.o: relocation R_X86_64_32 against hidden symbol `newhope_psis_bitrev_montgomery' can not be used when making a shared object
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/custom_extensions.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/handshake_server.c.o: relocation R_X86_64_32S against hidden symbol `ssl3_accept' can not be used when making a shared object
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/handshake_client.c.o: relocation R_X86_64_32S against hidden symbol `ssl3_connect' can not be used when making a shared object
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/d1_both.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/d1_lib.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/d1_meth.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/d1_pkt.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/d1_srtp.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/dtls_record.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/s3_both.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/s3_enc.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/s3_lib.c.o: relocation R_X86_64_32 against hidden symbol `X509_NAME_free' can not be used when making a shared object
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/s3_meth.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/s3_pkt.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_aead_ctx.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_asn1.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_buffer.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_cert.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_cipher.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_ecdh.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_file.c.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_lib.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_rsa.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_session.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/ssl_stat.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/t1_enc.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/t1_lib.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/CMakeFiles/ssl-objects.dir/tls_record.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/ssl/pqueue/CMakeFiles/pqueue.dir/pqueue.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: boringssl/crypto/asn1/CMakeFiles/asn1.dir/x_bignum.c.o: warning: relocation in read-only section `.rodata'
collect2: error: ld returned 1 exit status
make[7]: *** [CMakeFiles/mono-btls-shared.dir/build.make:996: libmono-btls-shared.so] Error 1
make[7]: Leaving directory '/home/lizhenbo/src/wine_n_extras/wine-mono/build/mono-unix/mono/btls/build-shared'
make[6]: *** [CMakeFiles/Makefile2:1059: CMakeFiles/mono-btls-shared.dir/all] Error 2
make[6]: Leaving directory '/home/lizhenbo/src/wine_n_extras/wine-mono/build/mono-unix/mono/btls/build-shared'
make[5]: *** [Makefile:103: all] Error 2
make[5]: Leaving directory '/home/lizhenbo/src/wine_n_extras/wine-mono/build/mono-unix/mono/btls/build-shared'
make[4]: *** [Makefile:685: build-shared/libmono-btls-shared.so] Error 2
make[4]: Leaving directory '/home/lizhenbo/src/wine_n_extras/wine-mono/build/mono-unix/mono/btls'
make[3]: *** [Makefile:540: all-recursive] Error 1
make[3]: Leaving directory '/home/lizhenbo/src/wine_n_extras/wine-mono/build/mono-unix/mono'
make[2]: *** [Makefile:601: all-recursive] Error 1
make[2]: Leaving directory '/home/lizhenbo/src/wine_n_extras/wine-mono/build/mono-unix'
make[1]: *** [Makefile:529: all] Error 2
make[1]: Leaving directory '/home/lizhenbo/src/wine_n_extras/wine-mono/build/mono-unix'
make: *** [mono.make:123: build/mono-unix/.built] Error 2```
@madewokherd
Copy link
Owner

Does the build/mono-unix/.built target work if you revert edbc4519bc3beda1fc93519bea8e16240909ec01? It might require cleaning the build tree.

This will, of course, cause the Windows builds of btls to fail. For a real solution, we should probably have CMakeLists.txt check for a Windows target.

@madewokherd
Copy link
Owner

Does this help? d1582bc

@Endle
Copy link
Contributor Author

Endle commented Feb 13, 2021

Thank you. Seems that this is the fix. I found compile this repo with following commands

git checkout d1582bc896f5e2f6ec52b303a542167133810f2e
git submodule update --depth=1
git submodule foreach --recursive git clean -dxf
git clean -dxf
make msi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants