Undefined references while linking with lgrpc

1,386 views
Skip to first unread message

Jaya Smruthi Elapavuluri

unread,
Nov 16, 2015, 9:03:31 PM11/16/15
to grp...@googlegroups.com
Hi All.

While linking with lgrpc and lgrpc++ am getting the following as undefined references:

lib/libgrpc.so.0.11.0.0: undefined reference to `EVP_DigestVerifyInit'

lib/libgrpc.so.0.11.0.0: undefined reference to `SSL_get0_next_proto_negotiated'

/lib/libgrpc.so.0.11.0.0: undefined reference to `SSL_get_servername'

lib/libgrpc.so.0.11.0.0: undefined reference to `SSL_set_SSL_CTX'

lib/libgrpc.so.0.11.0.0: undefined reference to `EVP_DigestVerifyFinal'

lib/libgrpc.so.0.11.0.0: undefined reference to `EVP_DigestSignFinal'

lib/libgrpc.so.0.11.0.0: undefined reference to `EVP_DigestSignInit'

lib/libgrpc.so.0.11.0.0: undefined reference to `TLSv1_2_method'

/lib/libgrpc.so.0.11.0.0: undefined reference to `SSL_CTX_set_next_proto_select_cb'

/lib/libgrpc.so.0.11.0.0: undefined reference to `SSL_CTX_set_next_protos_advertised_cb'

collect2: ld returned 1 exit status

Any help  on how to resolve this? 

Thanks

JS

Craig Tiller

unread,
Nov 17, 2015, 12:18:41 AM11/17/15
to Jaya Smruthi Elapavuluri, grp...@googlegroups.com

-lcrypto -lssl (you need OpenSSL linked also)


--
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAEp8cJTC3-u%3DxBqSRS3WBoP_epPC%3D7tZzF-UOLGb8qkf%3DjRAKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

JS

unread,
Nov 20, 2015, 1:44:13 PM11/20/15
to grpc.io, jel...@ncsu.edu
Linking with openssl.so.0.9.8 is still throwing these undefined references. 

Could you please comment on this? Is it because of the openssl version? 

Nicolas Noble

unread,
Nov 20, 2015, 1:47:04 PM11/20/15
to JS, grpc.io, jel...@ncsu.edu
Yes. You need OpenSSL 1.0.2 at a minimum.

Smruthi Elapavuluri

unread,
Nov 20, 2015, 3:02:59 PM11/20/15
to Nicolas Noble, grpc.io, Jaya Smruthi Elapavuluri
There is no other way to fix, if we cannot use 1.0.2 version ? 

Nicolas Noble

unread,
Nov 20, 2015, 3:30:11 PM11/20/15
to Smruthi Elapavuluri, grpc.io, Jaya Smruthi Elapavuluri
There's a way to make it work with OpenSSL 1.0.1, but that'd be it.

How did you get the library in the first place if you don't have a proper version of OpenSSL ?
Reply all
Reply to author
Forward
0 new messages