AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project.
System information: for linux, below info can be collected by running uname -srvmp
CPU architecture: x86-64
CPU name: E5-2680 v4
OS: AlmaLinux 9.2
Build log:
The log tells compiler and version. It's available when building awslc with CMake.
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:23:6: error: redeclaration of ‘enum ssl_encryption_level_t’
23 | enum ssl_encryption_level_t {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3807:6: note: originally defined here
3807 | enum ssl_encryption_level_t BORINGSSL_ENUM_INT {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:24:5: error: redeclaration of enumerator ‘ssl_encryption_initial’
24 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3808:3: note: previous definition of ‘ssl_encryption_initial’ with type ‘enum ssl_encryption_level_t’
3808 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:25:5: error: redeclaration of enumerator ‘ssl_encryption_early_data’
25 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3809:3: note: previous definition of ‘ssl_encryption_early_data’ with type ‘enum ssl_encryption_level_t’
3809 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:26:5: error: redeclaration of enumerator ‘ssl_encryption_handshake’
26 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I/root/aws-lc-install/include -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
-o objs/src/event/quic/ngx_event_quic_connid.o \
src/event/quic/ngx_event_quic_connid.c
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3810:3: note: previous definition of ‘ssl_encryption_handshake’ with type ‘enum ssl_encryption_level_t’
3810 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:27:5: error: redeclaration of enumerator ‘ssl_encryption_application’
27 | ssl_encryption_application
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3811:3: note: previous definition of ‘ssl_encryption_application’ with type ‘enum ssl_encryption_level_t’
3811 | ssl_encryption_application,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:31:16: error: redefinition of ‘struct ssl_quic_method_st’
31 | typedef struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3815:8: note: originally defined here
3815 | struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:43:3: error: conflicting types for ‘SSL_QUIC_METHOD’; have ‘struct ssl_quic_method_st’
43 | } SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from /root/aws-lc-install/include/openssl/ssl.h:145,
from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/base.h:372:35: note: previous declaration of ‘SSL_QUIC_METHOD’ with type ‘SSL_QUIC_METHOD’ {aka ‘struct ssl_quic_method_st’}
372 | typedef struct ssl_quic_method_st SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:48:5: error: conflicting types for ‘SSL_set_quic_method’; have ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
48 | int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method);
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3929:20: note: previous declaration of ‘SSL_set_quic_method’ with type ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
3929 | OPENSSL_EXPORT int SSL_set_quic_method(SSL *ssl,
| ^~~~~~~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1059: objs/src/event/quic/ngx_event_quic.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:23:6: error: redeclaration of ‘enum ssl_encryption_level_t’
23 | enum ssl_encryption_level_t {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/ssl.h:3807:6: note: originally defined here
3807 | enum ssl_encryption_level_t BORINGSSL_ENUM_INT {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:24:5: error: redeclaration of enumerator ‘ssl_encryption_initial’
24 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/ssl.h:3808:3: note: previous definition of ‘ssl_encryption_initial’ with type ‘enum ssl_encryption_level_t’
3808 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:25:5: error: redeclaration of enumerator ‘ssl_encryption_early_data’
25 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/ssl.h:3809:3: note: previous definition of ‘ssl_encryption_early_data’ with type ‘enum ssl_encryption_level_t’
3809 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:26:5: error: redeclaration of enumerator ‘ssl_encryption_handshake’
26 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/ssl.h:3810:3: note: previous definition of ‘ssl_encryption_handshake’ with type ‘enum ssl_encryption_level_t’
3810 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:27:5: error: redeclaration of enumerator ‘ssl_encryption_application’
27 | ssl_encryption_application
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/ssl.h:3811:3: note: previous definition of ‘ssl_encryption_application’ with type ‘enum ssl_encryption_level_t’
3811 | ssl_encryption_application,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:31:16: error: redefinition of ‘struct ssl_quic_method_st’
31 | typedef struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/ssl.h:3815:8: note: originally defined here
3815 | struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:43:3: error: conflicting types for ‘SSL_QUIC_METHOD’; have ‘struct ssl_quic_method_st’
43 | } SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from /root/aws-lc-install/include/openssl/ssl.h:145,
from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/base.h:372:35: note: previous declaration of ‘SSL_QUIC_METHOD’ with type ‘SSL_QUIC_METHOD’ {aka ‘struct ssl_quic_method_st’}
372 | typedef struct ssl_quic_method_st SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_udp.c:11:
src/event/quic/ngx_event_quic_openssl_compat.h:48:5: error: conflicting types for ‘SSL_set_quic_method’; have ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
48 | int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method);
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_udp.c:9:
/root/aws-lc-install/include/openssl/ssl.h:3929:20: note: previous declaration of ‘SSL_set_quic_method’ with type ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
3929 | OPENSSL_EXPORT int SSL_set_quic_method(SSL *ssl,
| ^~~~~~~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1066: objs/src/event/quic/ngx_event_quic_udp.o] Error 1
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:23:6: error: redeclaration of ‘enum ssl_encryption_level_t’
23 | enum ssl_encryption_level_t {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3807:6: note: originally defined here
3807 | enum ssl_encryption_level_t BORINGSSL_ENUM_INT {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:24:5: error: redeclaration of enumerator ‘ssl_encryption_initial’
24 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3808:3: note: previous definition of ‘ssl_encryption_initial’ with type ‘enum ssl_encryption_level_t’
3808 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:25:5: error: redeclaration of enumerator ‘ssl_encryption_early_data’
25 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3809:3: note: previous definition of ‘ssl_encryption_early_data’ with type ‘enum ssl_encryption_level_t’
3809 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:26:5: error: redeclaration of enumerator ‘ssl_encryption_handshake’
26 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3810:3: note: previous definition of ‘ssl_encryption_handshake’ with type ‘enum ssl_encryption_level_t’
3810 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:27:5: error: redeclaration of enumerator ‘ssl_encryption_application’
27 | ssl_encryption_application
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3811:3: note: previous definition of ‘ssl_encryption_application’ with type ‘enum ssl_encryption_level_t’
3811 | ssl_encryption_application,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:31:16: error: redefinition of ‘struct ssl_quic_method_st’
31 | typedef struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3815:8: note: originally defined here
3815 | struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:43:3: error: conflicting types for ‘SSL_QUIC_METHOD’; have ‘struct ssl_quic_method_st’
43 | } SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from /root/aws-lc-install/include/openssl/ssl.h:145,
from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/base.h:372:35: note: previous declaration of ‘SSL_QUIC_METHOD’ with type ‘SSL_QUIC_METHOD’ {aka ‘struct ssl_quic_method_st’}
372 | typedef struct ssl_quic_method_st SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_protection.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:48:5: error: conflicting types for ‘SSL_set_quic_method’; have ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
48 | int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method);
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_protection.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3929:20: note: previous declaration of ‘SSL_set_quic_method’ with type ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
3929 | OPENSSL_EXPORT int SSL_set_quic_method(SSL *ssl,
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:23:6: error: redeclaration of ‘enum ssl_encryption_level_t’
23 | enum ssl_encryption_level_t {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3807:6: note: originally defined here
3807 | enum ssl_encryption_level_t BORINGSSL_ENUM_INT {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:24:5: error: redeclaration of enumerator ‘ssl_encryption_initial’
24 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3808:3: note: previous definition of ‘ssl_encryption_initial’ with type ‘enum ssl_encryption_level_t’
3808 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:25:5: error: redeclaration of enumerator ‘ssl_encryption_early_data’
25 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3809:3: note: previous definition of ‘ssl_encryption_early_data’ with type ‘enum ssl_encryption_level_t’
3809 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:26:5: error: redeclaration of enumerator ‘ssl_encryption_handshake’
26 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3810:3: note: previous definition of ‘ssl_encryption_handshake’ with type ‘enum ssl_encryption_level_t’
3810 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:27:5: error: redeclaration of enumerator ‘ssl_encryption_application’
27 | ssl_encryption_application
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3811:3: note: previous definition of ‘ssl_encryption_application’ with type ‘enum ssl_encryption_level_t’
3811 | ssl_encryption_application,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:31:16: error: redefinition of ‘struct ssl_quic_method_st’
31 | typedef struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3815:8: note: originally defined here
3815 | struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:43:3: error: conflicting types for ‘SSL_QUIC_METHOD’; have ‘struct ssl_quic_method_st’
43 | } SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from /root/aws-lc-install/include/openssl/ssl.h:145,
from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/base.h:372:35: note: previous declaration of ‘SSL_QUIC_METHOD’ with type ‘SSL_QUIC_METHOD’ {aka ‘struct ssl_quic_method_st’}
372 | typedef struct ssl_quic_method_st SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_transport.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:48:5: error: conflicting types for ‘SSL_set_quic_method’; have ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
48 | int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method);
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_transport.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3929:20: note: previous declaration of ‘SSL_set_quic_method’ with type ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
3929 | OPENSSL_EXPORT int SSL_set_quic_method(SSL *ssl,
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:23:6: error: redeclaration of ‘enum ssl_encryption_level_t’
23 | enum ssl_encryption_level_t {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3807:6: note: originally defined here
3807 | enum ssl_encryption_level_t BORINGSSL_ENUM_INT {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:24:5: error: redeclaration of enumerator ‘ssl_encryption_initial’
24 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3808:3: note: previous definition of ‘ssl_encryption_initial’ with type ‘enum ssl_encryption_level_t’
3808 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:25:5: error: redeclaration of enumerator ‘ssl_encryption_early_data’
25 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3809:3: note: previous definition of ‘ssl_encryption_early_data’ with type ‘enum ssl_encryption_level_t’
3809 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1080: objs/src/event/quic/ngx_event_quic_protection.o] Error 1
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:26:5: error: redeclaration of enumerator ‘ssl_encryption_handshake’
26 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3810:3: note: previous definition of ‘ssl_encryption_handshake’ with type ‘enum ssl_encryption_level_t’
3810 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:27:5: error: redeclaration of enumerator ‘ssl_encryption_application’
27 | ssl_encryption_application
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3811:3: note: previous definition of ‘ssl_encryption_application’ with type ‘enum ssl_encryption_level_t’
3811 | ssl_encryption_application,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:31:16: error: redefinition of ‘struct ssl_quic_method_st’
31 | typedef struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3815:8: note: originally defined here
3815 | struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:43:3: error: conflicting types for ‘SSL_QUIC_METHOD’; have ‘struct ssl_quic_method_st’
43 | } SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from /root/aws-lc-install/include/openssl/ssl.h:145,
from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/base.h:372:35: note: previous declaration of ‘SSL_QUIC_METHOD’ with type ‘SSL_QUIC_METHOD’ {aka ‘struct ssl_quic_method_st’}
372 | typedef struct ssl_quic_method_st SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_frames.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:48:5: error: conflicting types for ‘SSL_set_quic_method’; have ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
48 | int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method);
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_frames.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3929:20: note: previous declaration of ‘SSL_set_quic_method’ with type ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
3929 | OPENSSL_EXPORT int SSL_set_quic_method(SSL *ssl,
| ^~~~~~~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1073: objs/src/event/quic/ngx_event_quic_transport.o] Error 1
make[1]: *** [objs/Makefile:1087: objs/src/event/quic/ngx_event_quic_frames.o] Error 1
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:23:6: error: redeclaration of ‘enum ssl_encryption_level_t’
23 | enum ssl_encryption_level_t {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3807:6: note: originally defined here
3807 | enum ssl_encryption_level_t BORINGSSL_ENUM_INT {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:24:5: error: redeclaration of enumerator ‘ssl_encryption_initial’
24 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3808:3: note: previous definition of ‘ssl_encryption_initial’ with type ‘enum ssl_encryption_level_t’
3808 | ssl_encryption_initial = 0,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:25:5: error: redeclaration of enumerator ‘ssl_encryption_early_data’
25 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3809:3: note: previous definition of ‘ssl_encryption_early_data’ with type ‘enum ssl_encryption_level_t’
3809 | ssl_encryption_early_data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:26:5: error: redeclaration of enumerator ‘ssl_encryption_handshake’
26 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3810:3: note: previous definition of ‘ssl_encryption_handshake’ with type ‘enum ssl_encryption_level_t’
3810 | ssl_encryption_handshake,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:27:5: error: redeclaration of enumerator ‘ssl_encryption_application’
27 | ssl_encryption_application
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3811:3: note: previous definition of ‘ssl_encryption_application’ with type ‘enum ssl_encryption_level_t’
3811 | ssl_encryption_application,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:31:16: error: redefinition of ‘struct ssl_quic_method_st’
31 | typedef struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3815:8: note: originally defined here
3815 | struct ssl_quic_method_st {
| ^~~~~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:43:3: error: conflicting types for ‘SSL_QUIC_METHOD’; have ‘struct ssl_quic_method_st’
43 | } SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from /root/aws-lc-install/include/openssl/ssl.h:145,
from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/base.h:372:35: note: previous declaration of ‘SSL_QUIC_METHOD’ with type ‘SSL_QUIC_METHOD’ {aka ‘struct ssl_quic_method_st’}
372 | typedef struct ssl_quic_method_st SSL_QUIC_METHOD;
| ^~~~~~~~~~~~~~~
In file included from src/event/quic/ngx_event_quic_connection.h:29,
from src/event/quic/ngx_event_quic_connid.c:10:
src/event/quic/ngx_event_quic_openssl_compat.h:48:5: error: conflicting types for ‘SSL_set_quic_method’; have ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
48 | int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method);
| ^~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:17,
from src/core/ngx_core.h:85,
from src/event/quic/ngx_event_quic_connid.c:8:
/root/aws-lc-install/include/openssl/ssl.h:3929:20: note: previous declaration of ‘SSL_set_quic_method’ with type ‘int(SSL *, const SSL_QUIC_METHOD *)’ {aka ‘int(struct ssl_st *, const struct ssl_quic_method_st *)’}
3929 | OPENSSL_EXPORT int SSL_set_quic_method(SSL *ssl,
| ^~~~~~~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1094: objs/src/event/quic/ngx_event_quic_connid.o] Error 1
make[1]: Leaving directory '/root/nginx'
make: *** [Makefile:10: build] Error 2
Problem:
I tried to apply the patch and test to compile Nginx1.27.1 + AWS-LC by referring to https://github.com/aws/aws-lc/blob/main/tests/ci/integration/run_nginx_integration.sh, but got the following error:
Relevant details
AWS-LC commit: v1.34.2
System information: for linux, below info can be collected by running
uname -srvmp
Build log: