编译安装时 会出现这个错误 ngx_table_elt_t’没有名为‘next’的成员

44 views
Skip to first unread message

ls too

unread,
Oct 5, 2023, 1:20:46 AM10/5/23
to openresty
编译安装版本:OpenResty 1.21.4.2

ngx_table_elt_t
’没有名为‘next’的成员
不知道具体什么问题,如何解决,   
     -o objs/src/mail/ngx_mail_smtp_handler.o \
src/mail/ngx_mail_smtp_handler.c
/opt/text/ngx_brotli/filter/ngx_http_brotli_filter_module.c: 在函数‘ngx_http_brotli_header_filter’中:
/opt/text/ngx_brotli/filter/ngx_http_brotli_filter_module.c:322:4: 错误:ngx_table_elt_t’没有名为‘next’的成员
h->next = NULL;       

用于我都是用脚本编译,在编译:OpenResty 1.21.4.2 之前是没有遇到这个问题,目前我便,OpenResty 1.21.4.2 遇到该问题

请问如何解决

谢谢                                                                                        

ls too

unread,
Oct 5, 2023, 1:29:12 AM10/5/23
to openresty
详细:`cc -c -fPIC -I/opt/text/openresty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 -I/opt/text/openresty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -g -DHIGHERTHAN8 -DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC
-O2 -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -Wno-deprecated-declarations -I src/core -I src/event -I src/event/modules -I src/os/unix -I src/http/modules/perl -I ../ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I ../ngx_lua-0.10.21rc1/src/api -I ../ngx_stream_lua-0.0
.11rc1/src/api -I /opt/text/pcre_8_43 -I /opt/text/openssl_1_1_1g/.openssl/include -I /opt/text/zlib_1_2_11 -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.3.1/src -I ../ngx_devel_kit-0.3.1/src -I ../ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I /opt/text/openres
ty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 -I /opt/text/ngx_brotli/deps/brotli/c/include -I src/mail -I src/stream -I /opt/text/openresty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 \
-o objs/src/mail/ngx_mail_smtp_module.o \
src/mail/ngx_mail_smtp_module.c
/usr/bin/perl /usr/share/perl5/vendor_perl/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap nginx.xs > nginx.xsc && mv nginx.xsc nginx.c
/opt/text/ngx_brotli/static/ngx_http_brotli_static_module.c: 在函数‘handler’中:
/opt/text/ngx_brotli/static/ngx_http_brotli_static_module.c:264:25: 错误:ngx_table_elt_t’没有名为‘next’的成员
content_encoding_entry->next = NULL;
^
/opt/text/ngx_brotli/filter/ngx_http_brotli_filter_module.c: 在函数‘ngx_http_brotli_header_filter’中:
/opt/text/ngx_brotli/filter/ngx_http_brotli_filter_module.c:322:4: 错误:ngx_table_elt_t’没有名为‘next’的成员
h->next = NULL;
^
Running Mkbootstrap for nginx ()
cc -c -fPIC -I/opt/text/openresty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 -I/opt/text/openresty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -g -DHIGHERTHAN8 -DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC
-O2 -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -Wno-deprecated-declarations -I src/core -I src/event -I src/event/modules -I src/os/unix -I src/http/modules/perl -I ../ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I ../ngx_lua-0.10.21rc1/src/api -I ../ngx_stream_lua-0.0
.11rc1/src/api -I /opt/text/pcre_8_43 -I /opt/text/openssl_1_1_1g/.openssl/include -I /opt/text/zlib_1_2_11 -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.3.1/src -I ../ngx_devel_kit-0.3.1/src -I ../ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I /opt/text/openres
ty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 -I /opt/text/ngx_brotli/deps/brotli/c/include -I src/mail -I src/stream -I /opt/text/openresty-1.21.4.1/build/luajit-root/www/server/nginx/luajit/include/luajit-2.1 \
-o objs/src/mail/ngx_mail_smtp_handler.o \
src/mail/ngx_mail_smtp_handler.c
make[2]: *** [objs/addon/static/ngx_http_brotli_static_module.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [objs/addon/filter/ngx_http_brotli_filter_module.o] 错误 1
chmod 644 nginx.bs
cp nginx.bs blib/arch/auto/nginx/nginx.bs
chmod 644 blib/arch/auto/nginx/nginx.bs
cp nginx.pm blib/lib/nginx.pm`

along

unread,
Feb 3, 2024, 11:06:51 PMFeb 3
to openresty
ngx http brotli可以看下这个模块依赖的nginx版本最高是哪个,可能新版本nginx源码有做过修改,但是这个brotli模块没有做相应的更新
Reply all
Reply to author
Forward
0 new messages