Thanks Nicolas

I looked around and it seems boringssl is only included because it doesn't 
find an alternative. And I guess I would have to find a way of mixing them 
if I needed SSL. But since I'm only using grpc in insecure mode I figured 
out I could use the static libraries that are "unsecure" versions of grpc, 
bypassing my entire problem.

torsdag 27. juli 2017 09.12.30 UTC+2 skrev Nicolas Noble følgende:
>
> You can disable building boringssl by specifying EMBED_OPENSSL=false, but 
> you'll need to provide headers for it. 
>
> On Jul 26, 2017 09:30, <[email protected] <javascript:>> wrote:
>
>> Hello!
>>
>> I'm trying to compile an application linked against webrtc and grpc, both 
>> of which use their own builtin boringssl implementation. Thus I get a 
>> multiple definitions error when linking.
>> Is there a way around this? Am I doing something wrong?
>>
>> aarch64-linux-gnu-g++ webrtc.pb.o webrtc.grpc.pb.o main.o grpc.o webrtc.o 
>> -L./lib/grpc -L./lib/protobuf -L./lib/webrtc -L./lib/webrtc/required 
>> -lprotobuf -pthread -lpthread -lgrpc++ -lgrpc -Wl,--no-as-needed 
>> -lgrpc++_reflection -Wl,--as-needed -ldl -lwebrtc -lpulse -lX11 -lv4l2 -o 
>> webrtc-linux
>> ./lib/webrtc/libwebrtc.a(ssl_x509.o): In function `d2i_SSL_SESSION':
>> ssl_x509.c:(.text.d2i_SSL_SESSION+0x0): multiple definition of 
>> `d2i_SSL_SESSION'
>> ./lib/grpc/libgrpc.a(ssl_asn1.o):/root/grpc_aarch64/third_party/boringssl/ssl/ssl_asn1.c:728:
>>  
>> first defined here
>> ./lib/webrtc/libwebrtc.a(ssl_x509.o): In function 
>> `SSL_get_peer_certificate':
>> ssl_x509.c:(.text.SSL_get_peer_certificate+0x0): multiple definition of 
>> `SSL_get_peer_certificate'
>> ./lib/grpc/libgrpc.a(ssl_lib.o):/root/grpc_aarch64/third_party/boringssl/ssl/ssl_lib.c:1044:
>>  
>> first defined here
>>
>> (...)
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "grpc.io" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/grpc-io.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/107218ba-4dd7-474c-acb5-6d0605273661%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/grpc-io/107218ba-4dd7-474c-acb5-6d0605273661%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/76d1bd44-2318-47fd-915e-8a24dd669e30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to