Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed when building envoy-openssl with clang #88

Open
oyaya opened this issue Apr 7, 2023 · 0 comments
Open

build failed when building envoy-openssl with clang #88

oyaya opened this issue Apr 7, 2023 · 0 comments

Comments

@oyaya
Copy link

oyaya commented Apr 7, 2023

There are some errors when I build envoy-openssl
AZEL_CXXOPTS="-std=c++14" CC=clang CXX=clang++ bazel build --config=clang :envoy --sandbox_debug --verbose_failures --repository_cache=/home/xxx/Downloads/envoy-openssl --define tcmalloc=disabled --define google_gr=disabled --define crypto=system


external/com_github_google_jwt_verify/src/jwks.cc:100:8: error: mmember access into incomplete type 'ossl_rsa_st'
    rsa->n = createBigNumFromBase64UrlString(n).release();
       ^ 
bazel-out/k8-fastbuild/bin/external/bssl-compat/bssl-compat/include/ossl/openssl/types.h:143:16: forward declaration of 'ossl_rsa_st'
typedef struct ossl_rsa_st ossl_RSA;
               ^
external/com_github_google_jwt_verify/src/jwks.cc:101:8: error: mmember access into incomplete type 'ossl_rsa_st'
    rsa->e = createBigNumFromBase64UrlString(e).release();
       ^
bazel-out/k8-fastbuild/bin/external/bssl-compat/bssl-compat/include/ossl/openssl/types.h:143:16: note: forward declaration of 'ossl_rsa_st'
typedef struct ossl_rsa_st ossl_RSA;
               ^
external/com_github_google_jwt_verify/src/jwks.cc:102:12: error: member access into incomplete type 'ossl_rsa_st'
    if (rsa->n == nullptr || rsa->e == nullptr) {
           ^
bazel-out/k8-fastbuild/bin/external/bssl-compat/bssl-compat/include/ossl/openssl/types.h:143:16: note: forward declaration of 'ossl_rsa_st'
typedef struct ossl_rsa_st ossl_RSA;
               ^
external/com_github_google_jwt_verify/src/jwks.cc:102:33: error: member access into incomplete type 'ossl_rsa_st'
    if (rsa->n == nullptr || rsa->e == nullptr) {
           ^
bazel-out/k8-fastbuild/bin/external/bssl-compat/bssl-compat/include/ossl/openssl/types.h:143:16: note: forward declaration of 'ossl_rsa_st'
typedef struct ossl_rsa_st ossl_RSA;
               ^
external/com_github_google_jwt_verify/src/jwks.cc:107:24: error: member access into incomplete type 'ossl_rsa_st'
    if (BN_cmp_word(rsa->e, 3) != 0 && BN_cmp_word(rsa->e, 65537) != 0) {
                                                       ^
bazel-out/k8-fastbuild/bin/external/bssl-compat/bssl-compat/include/ossl/openssl/types.h:143:16: note: forward declaration of 'ossl_rsa_st'
typedef struct ossl_rsa_st ossl_RSA;
               ^
external/com_github_google_jwt_verify/src/jwks.cc:107:55: error: member access into incomplete type 'ossl_rsa_st'
    if (BN_cmp_word(rsa->e, 3) != 0 && BN_cmp_word(rsa->e, 65537) != 0) {
                                                      ^
bazel-out/k8-fastbuild/bin/external/bssl-compat/bssl-compat/include/ossl/openssl/types.h:143:16: note: forward declaration of 'ossl_rsa_st'
typedef struct ossl_rsa_st ossl_RSA;
               ^
6 errors generated.
1680579731.270337218: src/main/tools/linux-sandbox-pid1.cc:538: wait returned pid=2, status=0x100
1680579731.270356897: src/main/tools/linux-sandbox-pid1.cc:556: child exited normally with code 1
1680579731.271827483: src/main/tools/linux-sandbox.cc:233: child exited normally with code 1
Target //:envoy failed to build

envoy-openssl-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant