generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 177
redundant redeclaration of X509_OBJECT_new and X509_OBJECT_free #1556
Copy link
Copy link
Closed
Description
Problem:
X509_OBJECT_new and ‘X509_OBJECT_free are declared twice which causes compile error
Lines 3282 to 3293 in c25dc2a
| // X509_OBJECT_new allocates an |X509_OBJECT| on the heap. | |
| OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void); | |
| // X509_OBJECT_free frees an |X509_OBJECT| from the heap. | |
| OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *a); | |
| // X509_OBJECT_new returns a newly-allocated, empty |X509_OBJECT| or NULL on | |
| // error. | |
| OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void); | |
| // X509_OBJECT_free releases memory associated with |obj|. | |
| OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *obj); |
Relevant details
AWS-LC commit: v1.25.0
System information: for linux, below info can be collected by running uname -srvmp
- CPU architecture: x86-64
- CPU name: N/A
- OS: Ubuntu 22.04
Build log:
In file included from /home/runner/work/ngtcp2/ngtcp2/aws-lc/include/openssl/pem.h:67,
from /home/runner/work/ngtcp2/ngtcp2/aws-lc/include/openssl/ssl.h:149,
from /home/runner/work/ngtcp2/ngtcp2/ngtcp2-1.5.0-DEV/crypto/boringssl/../../crypto/includes/ngtcp2/ngtcp2_crypto_boringssl.h:30,
from /home/runner/work/ngtcp2/ngtcp2/ngtcp2-1.5.0-DEV/crypto/boringssl/boringssl.c:33:
/home/runner/work/ngtcp2/ngtcp2/aws-lc/include/openssl/x509.h:3080:29: error: redundant redeclaration of ‘X509_OBJECT_new’ [-Werror=redundant-decls]
3080 | OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void);
| ^~~~~~~~~~~~~~~
/home/runner/work/ngtcp2/ngtcp2/aws-lc/include/openssl/x509.h:3073:29: note: previous declaration of ‘X509_OBJECT_new’ with type ‘X509_OBJECT *(void)’ {aka ‘struct x509_object_st *(void)’}
3073 | OPENSSL_EXPORT X[50](https://github.com/ngtcp2/ngtcp2/actions/runs/8867065534/job/24345229180#step:26:51)9_OBJECT *X509_OBJECT_new(void);
| ^~~~~~~~~~~~~~~
/home/runner/work/ngtcp2/ngtcp2/aws-lc/include/openssl/x509.h:3083:21: error: redundant redeclaration of ‘X509_OBJECT_free’ [-Werror=redundant-decls]
3083 | OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *obj);
| ^~~~~~~~~~~~~~~~
/home/runner/work/ngtcp2/ngtcp2/aws-lc/include/openssl/x509.h:3076:21: note: previous declaration of ‘X509_OBJECT_free’ with type ‘void(X509_OBJECT *)’ {aka ‘void(struct x509_object_st *)’}
3076 | OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *a);
| ^~~~~~~~~~~~~~~~
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels