Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something is wrong with dynamic module compilation #76

Open
ghost opened this issue Apr 3, 2020 · 1 comment
Open

Something is wrong with dynamic module compilation #76

ghost opened this issue Apr 3, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 3, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant