Unable to install grpc via PECL
Having problems installing the grpc module. Gettting the following errors...
[QUOTE]/root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:279:49: error: no matching function for call to 'StrFormat(const char [30], const string&, grpc_core::GrpcLbClientStats*)'
[QUOTE]/root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:279:49: note: mismatched types 'absl::lts_2020_09_23::FormatSpec' and 'const char [30]'
[QUOTE]/root/tmp/pear/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template argument deduction/substitution failed: /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:527:72: note: mismatched types 'absl::lts_2020_09_23::FormatSpec' and 'const char [20]'
[QUOTE]make: *** [src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.lo] Error 1
I've had a dig around and can't find anything obvious. I was hoping someone else may have had this same issue and has resolved it. Many thanks.
[QUOTE]/root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:279:49: note: mismatched types 'absl::lts_2020_09_23::FormatSpec' and 'const char [30]'
[QUOTE]/root/tmp/pear/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template argument deduction/substitution failed: /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:527:72: note: mismatched types 'absl::lts_2020_09_23::FormatSpec' and 'const char [20]'
[QUOTE]make: *** [src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.lo] Error 1
I've had a dig around and can't find anything obvious. I was hoping someone else may have had this same issue and has resolved it. Many thanks.
-
Hey there! I have run into this one before, and it's an issue with the version of GRPC having a conflict with the GCC libraries on the system. If we check the version of GRPC that will be installed, we'll see this: # /opt/cpanel/ea-php72/root/usr/bin/pecl search grpc WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update Retrieving data...0% Matched packages, channel pecl.php.net: ======================================= Package Stable/(Latest) Local gRPC 1.35.0 (stable) A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.
If we check the installation requirements here:0 -
Great response, thanks for your help! 0 -
Sure thing!!! 0 -
root/tmp/pear/grpc/third_party/boringssl-with-bazel/src/include -I/root/tmp/pear/grpc/third_party/re 2 -I/root/tmp/pear/grpc/third_party/upb -I/root/tmp/pear/grpc/third_party/xxhash -DHAVE_CONFIG_H -st d=c++11 -fno-exceptions -fno-rtti -g -O2 -c /root/tmp/pear/grpc/src/core/ext/filters/client_channel/ backend_metric.cc -fPIC -DPIC -o src/core/ext/filters/client_channel/.libs/backend_metric.o In file included from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy.h:31:0, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.h:24, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.cc:19: /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h: In member function 'virtua l std::string grpc_core::ServerAddressWeightAttribute::ToString() const': /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:135:41: error: no matching function for call to 'StrFormat(const char [3], const uint32_t&)' return absl::StrFormat("%d", weight_); ^ /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:135:41: note: candidate is: In file included from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:28:0, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy.h:31, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.h:24, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.cc:19: /root/tmp/pear/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template std::string absl::lts_20210324::StrFormat(absl::lts_20210324::FormatSpec&, const A rgs& ...) ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec& format, ^ /root/tmp/pear/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template argume nt deduction/substitution failed: In file included from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy.h:31:0, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.h:24, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.cc:19: /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:135:41: note: mismatched types 'absl::lts_20210324::FormatSpec' and 'const char [3]' return absl::StrFormat("%d", weight_); ^ make: *** [src/core/ext/filters/client_channel/backend_metric.lo] Error 1 ERROR: `make' failed 0 -
I am facing this error how can I fix any idea? 0 -
@fisec77933 - it looks like this may be a different issue than the original post. Are you trying this work in CentOS 8? 0 -
@cPRex I am trying on centos 7 0 -
You have to be running CentOS 8 in order for the installation to work properly. 0 -
Thank You it's working on centos 8 0 -
I'm glad that's working well! 0
Please sign in to leave a comment.
Comments
10 comments