grpc: Can't build on RHEL 6

Hi, I can’t build on RHEL 6 (6.7, gcc 4.4.7)

I did:

git clone https://github.com/grpc/grpc.git
cd grpc
git submodule update --init
make

and get this error:

...
cc1: warnings being treated as errors
third_party/boringssl/crypto/bio/connect.c: In function ‘split_host_and_port’:
third_party/boringssl/crypto/bio/connect.c:127: error: declaration of ‘close’ shadows a global declaration
/usr/include/unistd.h:350: error: shadowed declaration is here
make: *** [/home/stocking/projects/grpc/objs/opt/third_party/boringssl/crypto/bio/connect.o] Error 1

then I tried to remove -Werror and got this error:

...
In file included from third_party/boringssl/crypto/cipher/tls_cbc.c:58:
third_party/boringssl/include/openssl/sha.h:114: warning: declaration does not declare anything
third_party/boringssl/include/openssl/sha.h:115: warning: declaration does not declare anything
third_party/boringssl/crypto/cipher/tls_cbc.c: In function ‘tls1_sha1_final_raw’:
third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’
third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’
make: *** [/home/stocking/projects/grpc/objs/opt/third_party/boringssl/crypto/cipher/tls_cbc.o] Error 1

Any Ideas what’s the problem? Since when gRPC uses boringssl?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Can you try:

make EMBED_OPENSSL=false

On Wed, Dec 23, 2015, 4:11 AM majestix508 notifications@github.com wrote:

Hi, I can’t build on RHEL 6 (6.7, gcc 4.4.7)

I did:

git clone https://github.com/grpc/grpc.git cd grpc git submodule update --init make

and get this error:

… cc1: warnings being treated as errors third_party/boringssl/crypto/bio/connect.c: In function ‘split_host_and_port’: third_party/boringssl/crypto/bio/connect.c:127: error: declaration of ‘close’ shadows a global declaration /usr/include/unistd.h:350: error: shadowed declaration is here make: *** [/home/stocking/projects/grpc/objs/opt/third_party/boringssl/crypto/bio/connect.o] Error 1

then I tried to remove -Werror and got this error:

… In file included from third_party/boringssl/crypto/cipher/tls_cbc.c:58: third_party/boringssl/include/openssl/sha.h:114: warning: declaration does not declare anything third_party/boringssl/include/openssl/sha.h:115: warning: declaration does not declare anything third_party/boringssl/crypto/cipher/tls_cbc.c: In function ‘tls1_sha1_final_raw’: third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:232: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:233: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:234: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:235: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’ third_party/boringssl/crypto/cipher/tls_cbc.c:236: error: ‘SHA_CTX’ has no member named ‘h’ make: *** [/home/stocking/projects/grpc/objs/opt/third_party/boringssl/crypto/cipher/tls_cbc.o] Error 1

Any Ideas what’s the problem? Since when gRPC uses boringssl?

— Reply to this email directly or view it on GitHub https://github.com/grpc/grpc/issues/4571.