amh面板 7.1测试版 安装Lngx出现报错?-灵析社区

桃子爱吃玉米

今天大佬更新7.1,迫不及待尝鲜 在三个机器(环境均为Debian12,一台在国内腾讯云 内核Linux 6.1.0-13-amd64,两台海外 内核Linux 6.1.0-13-cloud-amd64)新安装amh,然后安装LNGX时,出现报错: (截取部分) clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/src/ngx_http_echo_location.o \ /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_location.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/src/ngx_http_echo_echo.o \ /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_echo.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/src/ngx_http_echo_request_info.o \ /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_request_info.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/src/ngx_http_echo_subrequest.o \ /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_subrequest.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/src/ngx_http_echo_foreach.o \ /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_foreach.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/yaoweibin-ngx_http_substitutions_filter_module-e3291ac/ngx_http_subs_filter_module.o \ /home/usrdata/nginx-generic-1.24/yaoweibin-ngx_http_substitutions_filter_module-e3291ac/ngx_http_subs_filter_module.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.o \ /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c: In function 'ngx_http_init_sticky_peer': /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:207:62: error: 'ngx_http_headers_in_t' has no member named 'cookies'; did you mean 'cookie'? 207 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) { | ^~~~~~~ | cookie /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:207:71: error: passing argument 2 of 'ngx_http_parse_multi_header_lines' from incompatible pointer type [-W error=incompatible-pointer-types] 207 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | ngx_str_t * In file included from /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:9: src/http/ngx_http.h:107:22: note: expected 'ngx_table_elt_t *' {aka 'struct ngx_table_elt_s *'} but argument is of type 'ngx_str_t *' 107 | ngx_table_elt_t *headers, ngx_str_t *name, ngx_str_t *value); | ~~~~~~~~~~~~~~~~~^~~~~~~ /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:207:13: error: too few arguments to function 'ngx_http_parse_multi_header_lines' 207 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/http/ngx_http.h:106:18: note: declared here 106 | ngx_table_elt_t *ngx_http_parse_multi_header_lines(ngx_http_request_t *r, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [objs/Makefile:1477: objs/addon/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.o] Error 1 make[1]: Leaving directory '/home/usrdata/nginx-generic-1.24/nginx-1.24.0' make: *** [Makefile:10: build] Error 2 nginx version: nginx/1.24.0 built by gcc 12.2.0 (Debian 12.2.0-14) built with OpenSSL 1.1.1w 11 Sep 2023 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx-generic-1.24 --user=www --group=www --with-http_ssl_module --with-openssl=/home/usrdata/nginx-generic-1.24/openssl-1.1.1w --with-http_gzip_static_module --with-http_v2_module --with-threads --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module [Error] Lngx01 create failed. /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_request_info.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/src/ngx_http_echo_subrequest.o \ /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_subrequest.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/src/ngx_http_echo_foreach.o \ /home/usrdata/nginx-generic-1.24/echo-nginx-module-0.42/src/ngx_http_echo_foreach.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/yaoweibin-ngx_http_substitutions_filter_module-e3291ac/ngx_http_subs_filter_module.o \ /home/usrdata/nginx-generic-1.24/yaoweibin-ngx_http_substitutions_filter_module-e3291ac/ngx_http_subs_filter_module.c cc -c -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 /home/usrdata/nginx-generic-1.24/openssl-1.1.1w/.openssl/in clude -I objs -I src/http -I src/http/modules -I src/http/v2 \ -o objs/addon/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.o \ /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c: In function 'ngx_http_init_sticky_peer': /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:207:62: error: 'ngx_http_headers_in_t' has no member named 'cookies'; did you mean 'cookie'? 207 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) { | ^~~~~~~ | cookie /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:207:71: error: passing argument 2 of 'ngx_http_parse_multi_header_lines' from incompatible pointer type [-W error=incompatible-pointer-types] 207 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | ngx_str_t * In file included from /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:9: src/http/ngx_http.h:107:22: note: expected 'ngx_table_elt_t *' {aka 'struct ngx_table_elt_s *'} but argument is of type 'ngx_str_t *' 107 | ngx_table_elt_t *headers, ngx_str_t *name, ngx_str_t *value); | ~~~~~~~~~~~~~~~~~^~~~~~~ /home/usrdata/nginx-generic-1.24/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.c:207:13: error: too few arguments to function 'ngx_http_parse_multi_header_lines' 207 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/http/ngx_http.h:106:18: note: declared here 106 | ngx_table_elt_t *ngx_http_parse_multi_header_lines(ngx_http_request_t *r, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [objs/Makefile:1477: objs/addon/nginx-goodies-nginx-sticky-module/ngx_http_sticky_module.o] Error 1 make[1]: Leaving directory '/home/usrdata/nginx-generic-1.24/nginx-1.24.0' make: *** [Makefile:10: build] Error 2 nginx version: nginx/1.24.0 built by gcc 12.2.0 (Debian 12.2.0-14) built with OpenSSL 1.1.1w 11 Sep 2023 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx-generic-1.24 --user=www --group=www --with-http_ssl_module --with-openssl=/home/usrdata/nginx-generic-1.24/openssl-1.1.1w --with-http_gzip_static_module --with-http_v2_module --with-threads --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module [Error] Lngx01 create failed.

阅读量:14

点赞量:0

问AI
lngx在新版本没兼容,这个amh7.1已经有计划安排更新的了。 这几天会提供更新,到时在面板上升级lngx环境软件就好。