openresty / lua-resty-core

New FFI-based API for lua-nginx-module
792 stars 270 forks source link

undefined symbol: ngx_http_lua_ffi_var_get #442

Closed KnightBlood closed 8 months ago

KnightBlood commented 8 months ago

OS:MANJARO

Nginx

nginx version: nginx/1.25.2
built by gcc 13.2.1 20230801 (GCC) 
built with OpenSSL 3.2.0-alpha3-dev 
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --error-log-path=/usr/local/nginx/logs/error.log --http-log-path=/usr/local/nginx/logs/access.log --pid-path=/usr/local/nginx/logs/nginx.pid --lock-path=/usr/local/nginx/logs/nginx.lock --http-client-body-temp-path=/usr/local/nginx/temp/client_body --http-proxy-temp-path=/usr/local/nginx/temp/proxy --http-fastcgi-temp-path=/usr/local/nginx/temp/fastcgi --http-uwsgi-temp-path=/usr/local/nginx/temp/uwsgi --http-scgi-temp-path=/usr/local/nginx/temp/scgi --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre=/root/work/deps/pcre2 --with-zlib=/root/work/deps/zlib --with-openssl=/root/work/deps/openssl --with-threads --with-http_sub_module --with-http_v2_module --with-http_auth_request_module --with-http_realip_module --with-http_secure_link_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_ssl_module --with-http_slice_module --with-http_stub_status_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail --with-mail_ssl_module --with-http_addition_module --with-http_random_index_module --with-compat --with-file-aio --with-cc=gcc --with-cpp=g++ --with-cc-opt='-static -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC -fexceptions --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt='-static -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie -Wl,--as-needed,-O1,--sort-common' --add-module=/root/work/module/nginx-module-sts --add-module=/root/work/module/nginx-module-stream-sts --add-module=/root/work/module/nginx-module-vts --add-module=/root/work/module/ngx_devel_kit --add-module=/root/work/module/stream-lua-nginx-module --add-module=/root/work/module/lua-nginx-module

Error

nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/local/nginx/lib/lua/resty/core/var.lua:44: nginx-gcc-openssl: undefined symbol: ngx_http_lua_ffi_var_get) in /usr/local/nginx/conf/nginx.conf:118

Agine

Angie version: Angie/1.4.0
built by gcc 13.2.1 20230801 (GCC) 
built with OpenSSL 3.2.0-alpha3-dev 
TLS SNI support enabled
configure arguments: --prefix=/usr/local/angie --sbin-path=/usr/local/angie/sbin/angie --conf-path=/usr/local/angie/conf/nginx.conf --error-log-path=/usr/local/angie/logs/error.log --http-log-path=/usr/local/angie/logs/access.log --pid-path=/usr/local/angie/logs/nginx.pid --lock-path=/usr/local/angie/logs/nginx.lock --http-client-body-temp-path=/usr/local/angie/temp/client_body --http-proxy-temp-p```ath=/usr/local/angie/temp/proxy --http-fastcgi-temp-path=/usr/local/angie/temp/fastcgi --http-uwsgi-temp-path=/usr/local/angie/temp/uwsgi --http-scgi-temp-path=/usr/local/angie/temp/scgi --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre=/root/work/deps/pcre2 --with-zlib=/root/work/deps/zlib --with-openssl=/root/work/deps/openssl --with-threads --with-http_sub_module --with-http_v2_module --with-http_auth_request_module --with-http_realip_module --with-http_secure_link_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_ssl_module --with-http_slice_module --with-http_stub_status_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail --with-mail_ssl_module --with-http_addition_module --with-http_random_index_module --with-compat --with-file-aio --with-cc=gcc --with-cpp=g++ --with-cc-opt='-static -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC -fexceptions --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt='-static -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie -Wl,--as-needed,-O1,--sort-common' --add-module=/root/work/module/nginx-module-sts --add-module=/root/work/module/nginx-module-stream-sts --add-module=/root/work/module/nginx-module-vts --add-module=/root/work/module/ngx_devel_kit --add-module=/root/work/module/stream-lua-nginx-module --add-module=/root/work/module/lua-nginx-module

Error

angie: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/local/angie/lib/lua/resty/core/var.lua:44: gie: master process v1.4.0 #0 [./angie-gcc-openssl]: undefined symbol: ngx_http_lua_ffi_var_get) in /usr/local/angie/conf/nginx.conf:118

Tengine

Tengine version: Tengine/3.0.0
nginx version: nginx/1.24.0
built by gcc 13.2.1 20230801 (GCC) 
built with OpenSSL 3.2.0-alpha3-dev 
TLS SNI support enabled
configure arguments: --prefix=/usr/local/tengine --sbin-path=/usr/local/tengine/sbin/tengine --conf-path=/usr/local/tengine/conf/nginx.conf --error-log-path=/usr/local/tengine/logs/error.log --http-log-path=/usr/local/tengine/logs/access.log --pid-path=/usr/local/tengine/logs/nginx.pid --lock-path=/usr/local/tengine/logs/nginx.lock --http-client-body-temp-path=/usr/local/tengine/temp/client_body --http-proxy-temp-path=/usr/local/tengine/temp/proxy --http-fastcgi-temp-path=/usr/local/tengine/temp/fastcgi --http-uwsgi-temp-path=/usr/local/tengine/temp/uwsgi --http-scgi-temp-path=/usr/local/tengine/temp/scgi --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre=/root/work/deps/pcre2 --with-zlib=/root/work/deps/zlib --with-openssl=/root/work/deps/openssl --with-threads --with-http_sub_module --with-http_v2_module --with-http_auth_request_module --with-http_realip_module --with-http_secure_link_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_ssl_module --with-http_slice_module --with-http_stub_status_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail --with-mail_ssl_module --with-http_addition_module --with-http_random_index_module --with-compat --with-file-aio --with-cc=gcc --with-cpp=g++ --with-cc-opt='-static -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC -fexceptions --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt='-static -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie -Wl,--as-needed,-O1,--sort-common' --add-module=/root/work/module/nginx-module-sts --add-module=/root/work/module/nginx-module-stream-sts --add-module=/root/work/module/nginx-module-vts --add-module=/root/work/module/ngx_devel_kit --add-module=/root/work/module/stream-lua-nginx-module --add-module=/root/work/module/lua-nginx-module

Error

nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/local/tengine/lib/lua/resty/core/var.lua:44: tengine-gcc-openssl: undefined symbol: ngx_http_lua_ffi_var_get) in /usr/local/tengine/conf/nginx.conf:138
oowl commented 8 months ago

Please use the Openresty source code bundle to compiler Openresty, Using another Nginx distribution compiler lua-nginx-module will cause this problem because Openresty accurately bundles many other modules, if we can not import these modules, Many Openresty features can not work.

KnightBlood commented 8 months ago

Please use the Openresty source code bundle to compiler Openresty, Using another Nginx distribution compiler lua-nginx-module will cause this problem because Openresty accurately bundles many other modules, if we can not import these modules, Many Openresty features can not work.

Openresty will support IOCP、Select-boost、Wpoll on?

oowl commented 8 months ago

Please use the Openresty source code bundle to compiler Openresty, Using another Nginx distribution compiler lua-nginx-module will cause this problem because Openresty accurately bundles many other modules, if we can not import these modules, Many Openresty features can not work.

Openresty will support IOCP、Select-boost、Wpoll on?

Nginx supports these, So Openresty also supports these.