anomalizer / ngx_aws_auth

nginx module to proxy to authenticated AWS services
BSD 2-Clause "Simplified" License
470 stars 143 forks source link

Something is wrong with dynamic module compilation #76

Open ghost opened 4 years ago

ghost commented 4 years ago

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;
tomgillett commented 4 years ago

I experienced the same issue today, PR #61 resolved it for me.