Conversation
|
@y-zeng Where can I find a freebsd machine to regenerate the ares_config.h? |
|
@jtattermusch Thanks for doing this upgrade! |
|
|
| * Note: setting HAVE_CLOCK_GETTIME_MONOTONIC causes use of the clock_gettime | ||
| * function from glibc, don't set it to support glibc < 2.17 */ | ||
| #ifndef GPR_BACKWARDS_COMPATIBILITY_MODE | ||
| #define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
There was a problem hiding this comment.
I think we need to preserve this manual edit. HAVE_CLOCK_GETTIME_MONOTONIC being defined forces a dependency on glibc 1.17+ - it should break a couple of ruby distrib tests.
| #endif | ||
|
|
||
| #ifdef GPR_BACKWARDS_COMPATIBILITY_MODE | ||
| /* Redefine the fd_set macros for GLIBC < 2.15 support. |
There was a problem hiding this comment.
Same here, I think we also need to preserve this manual edit. Building against latest FD_SET macros forces the binary dependency on glibc1.5+ (a couple of ruby distrib tests should also fail on this, #11346 for context)
|
@apolcyn, how was the ares_config.h for macos generated? I generated one one my gMac, but I'm getting a build error: Also, any idea how to regenerate on freebsd? |
|
I hadn't generated these header files before and am unsure off the top of my head. But I believe the current macos config_ares does also undefine HAVE_CLOCK_GETTIME_MONOTONIC https://github.com/grpc/grpc/blob/master/third_party/cares/config_darwin/ares_config.h#L73 |
01d6bb6 to
825ad4d
Compare
|
@jtattermusch If I remember correctly, I tried running ./configure for c-ares on a FreeBSD machine and extracted the generated |
|
@jtattermusch If you like, I can try generating a new one and push to your branch from a FreeBSD image? |
|
That would be great, thanks. Either push there or just send me the config
file.
…On Aug 29, 2017 19:00, "Mehrdad Afshari" ***@***.***> wrote:
@jtattermusch <https://github.com/jtattermusch> If you like, I can try
generating a new one and push to your branch from a FreeBSD image?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12305 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJeq5Mpd7bzmkgjsVGPUxX3qOB8TjhoOks5sdEPHgaJpZM4PE2Gn>
.
|
|
|
Done. Please merge this PR: jtattermusch#10 |
|
|
@y-zeng sorry I missed your comment above. I already regenerated it and @jtattermusch has merged. I have a FreeBSD machine at home, but just in case for future reference, you can create a GCE machine with a FreeBSD image with: |
|
|
|
Thanks @mehrdada! |
|
Python 32 bit windows artifact compiled with mingw still broken: |
|
@y-zeng what exactly do you mean by "GRPC_DNS_RESOLVER=ares to make sure the upgrade will not break the resolver."? We are currently not running those tests by default? That seems like a problem. I can run tests with GRPC_DNS_RESOLVER=ares locally, but it sounds like a bad idea to only do it as a one-off instead of running them continuously. |
|
@y-zeng ok, I see, the GRPC_DNS_RESOLVER=ares tests are being run as part of linux portability suite (and only runs as build_only on PR) grpc/tools/run_tests/run_tests_matrix.py Line 245 in f769bf1 |
|
@y-zeng I ran the GRPC_DNS_RESOLVER=ares tests for C and C++ locally (with --use_docker) I still need to fix the Python 32-bit artifact build on Windows, but after that, this PR should be good to go. |
|
I ran this locally with not-checked-in-tests from PR #12210 and can confirm this doesn't break those |
6df9005 to
571c546
Compare
|
|
c34a344 to
3a00f79
Compare
|
|
-- starting from this version, c-ares has its own support for cmake, switch to using c-ares cmake
-- update ares_build.h and ares_config.h that's used for bazel build & Makefile build
Using c-ares' cmake is useful because it supports installing c-ares, which is in turn needed for properly supporting installing gRPC as a cmake package (I have some in-progress work to improve gRPC's cmake build).