Do you have c-ares ( https://c-ares.haxx.se/ ) somewhere on your system?

On Thursday, January 17, 2019 at 11:10:17 AM UTC-8, 
[email protected] wrote:
>
> I have built gRPC with protobuf-lite support and added 
> the  -DGRPC_USE_PROTO_LITE compiler switch along with option optimize_for 
> = LITE_RUNTIME; to my protobuf definition file. My program compiles ok 
> when generates the following undefines during link:
>
> grpc_ares_wrapper.cc:(.text+0x7c8): undefined reference to `ares_inet_ntop'
>
> grpc_ares_wrapper.cc:(.text+0x9a7): undefined reference to `ares_strerror'
>
> grpc_ares_wrapper.cc:(.text+0xb44): undefined reference to 
> `ares_parse_srv_reply'
>
> grpc_ares_wrapper.cc:(.text+0xbd7): undefined reference to 
> `ares_gethostbyname'
>
> grpc_ares_wrapper.cc:(.text+0xc33): undefined reference to 
> `ares_gethostbyname'
>
> grpc_ares_wrapper.cc:(.text+0xc6e): undefined reference to `ares_free_data'
>
> grpc_ares_wrapper.cc:(.text+0xe02): undefined reference to 
> `ares_parse_txt_reply_ext'
>
> grpc_ares_wrapper.cc:(.text+0xfbd): undefined reference to `ares_free_data'
>
> grpc_ares_wrapper.cc:(.text+0x155f): undefined reference to 
> `ares_set_servers_ports'
>
> grpc_ares_wrapper.cc:(.text+0x16cf): undefined reference to 
> `ares_gethostbyname'
>
> grpc_ares_wrapper.cc:(.text+0x173a): undefined reference to `ares_query'
>
> grpc_ares_wrapper.cc:(.text+0x17bb): undefined reference to `ares_search'
>
> grpc_ares_wrapper.cc:(.text+0x1e90): undefined reference to 
> `ares_library_init'
>
>
> Note that I am linking against the following grpc libs:
>
> libgrpc++.a
>
> libgrpc.a
>
> libaddress_sorting.a
>
> libgpr.a
>
> libgrpc_cronet.a
>
> libgrpc++_cronet.a
>
> libgrpc++_error_details.a
>
> libgrpc_plugin_support.a
>
> libgrpcpp_channelz.a
>
> libgrpc++_reflection.a
>
> libgrpc_unsecure.a
>
> libgrpc++_unsecure.a
>
>

-- 
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/50b257cd-2036-4636-8483-debe4f0c7922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to