envoyproxy / envoyproxy/envoy-openssl

build failed when building envoy-openssl with clang

Aperta
#88 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
57
Fork
46
Merge medio
16h 56m
PR unite (30g)
14

Descrizione

```
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](https://user-images.githubusercontent.com/8085013/230600989-9bf1c0ed-3f4c-49a0-ba82-428bd6ddfe9d.png)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.