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

NGINX 1.24.0 executable error #167

Open
wlh1024 opened this issue Dec 20, 2024 · 1 comment
Open

NGINX 1.24.0 executable error #167

wlh1024 opened this issue Dec 20, 2024 · 1 comment

Comments

@wlh1024
Copy link

wlh1024 commented Dec 20, 2024

I encountered the following error when compiling the NGINX 1.24.0 executable on Windows.

../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(8): error C2220: The following warnings are treated as errors
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(8): warning C4603: 'DDEBUG': Undefined macro or changed after being used in precompiled header
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(8): note: Add the macro to the precompiled header instead of defining it here
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(17): note: Using precompiled headers
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(22): error C2143: Syntax error: Missing ')' before ''
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(22): error C2143: Syntax error: Missing '{' before '
'
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(22): error C2059: Syntax error: ')'
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(22): warning C4431: Missing type specifier - assuming 'int'. Note: C no longer supports default 'int'
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(22): warning C4218: Non-standard extension used: must specify at least one storage class or type
../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c(23): error C2143: Syntax error: Missing ')' before '*'
...
...
NMAKE : fatal error U1077: “cl -c -O2 -W4 -WX -nologo -MT -Zi -Fdobjs/nginx.pdb -DNO_SYS_TYPES_H -Yungx_config.h -Fpobjs/ngx_config.pch -I src/core -I src/event -I src/event/modules -I src/os/win32 -I ../pcre-8.45 -I ../openssl-1.1.1g/openssl/include -I ../zlib-1.3.1 -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/stream -Foobjs/addon/src/ngx_http_headers_more_filter_module.obj ../headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c”: return code “0x2”

@wlh1024
Copy link
Author

wlh1024 commented Dec 20, 2024

My configuration parameter is:
/configure
--with-cc=cl
--with-debug
--prefix=../nginx
--sbin-path=nginx
--conf-path=conf/nginx.conf
--pid-path=logs/nginx.pid
--http-log-path=logs/access.log
--error-log-path=logs/error.log
--http-client-body-temp-path=temp/client_body_temp
--http-proxy-temp-path=temp/proxy_temp
--http-fastcgi-temp-path=temp/fastcgi_temp
--http-scgi-temp-path=temp/scgi_temp
--http-uwsgi-temp-path=temp/uwsgi_temp
--with-http_realip_module
--with-http_v2_module
--with-http_ssl_module
--with-openssl=../openssl-1.1.1g
--with-zlib=../zlib-1.3.1
--with-pcre=../pcre-8.45
--with-stream
--with-stream_ssl_module
--add-dynamic-module=../headers-more-nginx-module

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