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 -- This email and its contents are confidential. If you are not the intended recipient, please do not disclose or use the information within this email or its attachments. If you have received this email in error, please report the error to the sender by return email and delete this communication from your records. -- 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/9753fb07-49ae-4316-bbe9-9f63f1596097%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
