Issues trying to build source code

61 views
Skip to first unread message

Todd Defilippi

unread,
Feb 16, 2018, 2:39:55 PM2/16/18
to grpc.io
I have some issues trying to build the gRPC source code from the tgz-ball.  Is this the right place to ask about that?

Thanks,
Todd

Todd Defilippi

unread,
Feb 16, 2018, 2:58:33 PM2/16/18
to grpc.io
Actually I think I may have figured it out.  I was getting some pkg_config complaints about libcares (which I had already installed on my system).  Running as

make HAS_PKG_CONFIG=false HAS_SYSTEM_CARES=true

seems to have solved that problem and it's building for now.  Fingers cross it continues to!

Thanks,
Todd

Todd Defilippi

unread,
Feb 16, 2018, 3:14:38 PM2/16/18
to grpc.io
I now I am getting a build error:

[CXX]     Compiling src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc:51:30: error: field ‘dns_server_addr’ has incomplete type
   struct ares_addr_port_node dns_server_addr;
                              ^
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc: In function ‘void on_txt_done_cb(void*, int, int, unsigned char*, int)’:
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc:270:53: error: ‘ares_parse_txt_reply_ext’ was not declared in this scope
   status = ares_parse_txt_reply_ext(buf, len, &reply);
                                                     ^
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc:273:58: error: invalid use of incomplete type ‘struct on_txt_done_cb(void*, int, int, unsigned char*, int)::ares_txt_ext’
   for (result = reply; result != nullptr; result = result->next) {
                                                          ^
src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc:265:10: error: forward declaration of ‘struct on_txt_done_cb(void*, int, int, unsigned char*, int)::ares_txt_ext’
   struct ares_txt_ext* result = nullptr;
...

I have a 1.10 cares RPM installed, it sounds from other comments that 1.10 will not work; is that correct?  Do I need a 1.11 libcares?

Thanks,
Todd

Ken Payson

unread,
Feb 21, 2018, 1:45:37 PM2/21/18
to grpc.io
Yes, the minimum libcares version supported is 1.11.0 .

Todd Defilippi

unread,
Feb 21, 2018, 5:01:00 PM2/21/18
to grpc.io
Thanks!  I was able to get everything built and RPMed with libcares 1.11.

Todd
Reply all
Reply to author
Forward
0 new messages