When trying to build with --add-module everything builds fine and I can see in logs:
configuring additional modules
adding module in /usr/src/nginx-modules/ngx_aws_auth-2.1.1
But when I am building with --with-compat --add-dynamic-module building fails with:
make[1]: Entering directory '/usr/src/nginx/nginx-1.17.9'
cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
-o objs/addon/ngx_aws_auth-2.1.1/ngx_http_aws_auth.o \
/usr/src/nginx-modules/ngx_aws_auth-2.1.1/ngx_http_aws_auth.c
cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
-o objs/addon/ngx_aws_auth-2.1.1/crypto_helper_openssl.o \
/usr/src/nginx-modules/ngx_aws_auth-2.1.1/crypto_helper_openssl.c
In file included from src/os/unix/ngx_process.h:12,
from src/core/ngx_core.h:55,
from /usr/src/nginx-modules/ngx_aws_auth-2.1.1/crypto_helper.h:5,
from /usr/src/nginx-modules/ngx_aws_auth-2.1.1/crypto_helper_openssl.c:16:
src/os/unix/ngx_setaffinity.h:16:9: error: unknown type name 'cpu_set_t'
typedef cpu_set_t ngx_cpuset_t;
When trying to build with --add-module everything builds fine and I can see in logs:
But when I am building with --with-compat --add-dynamic-module building fails with: