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]> 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].
> 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/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/CAEvr0PHVLkjgrbsJnJveWX%2B8RrAfu5M3_s-PGfesYcMc1QCcRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to