How to build a previous version (v1.8.0) of gRPC

25 views
Skip to first unread message

Difei Cao

unread,
Aug 25, 2020, 12:44:51 AM8/25/20
to grpc.io
I checkout the version 1.8.0. I followed the instruction in INSTALL.md.
git submodule update --init 
make

However, I have issues as follow:
src/core/tsi/ssl_transport_security.cc:1364:44: error: ‘const SSL_METHOD* TLSv1_2_method()’ is deprecated [-Werror=deprecated-declarations]

I tried to solve it by setting flags to "-Wno-error" but still failed.

Does anyone has experience building a older version of gRPC?

Thank you!
Difei

ericgr...@google.com

unread,
Aug 26, 2020, 1:56:06 PM8/26/20
to grpc.io
I don't think we support building that old of a version of gRPC. I checked out v1.8.x and, by deleting -Wall etc from the Makefile's CPPFLAGS declaration, was able to get just a bit further than the error you posted - but then it runs into `src/core/lib/support/log_linux.cc:42:13: error: ambiguating new declaration of ‘long int gettid()’`, which is code incompatible with glibc 2.3.0. This was patched in gRPC in https://github.com/grpc/grpc/pull/18950, but that went into the release branch around v1.22.0. You would probably need to downgrade glibc to work around this issue, and there are likely to be more. I would strongly recommend using an up-to-date version of gRPC, but if you really need v1.8.0, unfortunately it's probably just going to be an iterative process of try-fix-and-try-again to identify issues like these.

Thanks,

Eric

Reply all
Reply to author
Forward
0 new messages