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

help request: version 3.11 support Tongsuo? #12077

Closed
wjchan89 opened this issue Mar 21, 2025 · 2 comments
Closed

help request: version 3.11 support Tongsuo? #12077

wjchan89 opened this issue Mar 21, 2025 · 2 comments
Labels
question label for questions asked by users

Comments

@wjchan89
Copy link

Description

Use the apisixBuildTools project to compile and package apisix-runtime 1.3.0,I need to use GM,encryption and installed Tongsuo using the following script while removing the installation of OpenSSL 3.2. However, I encountered an error in the end.

OR_PREFIX=/usr/local/openresty
OPENSSL_PREFIX=/usr/local/tongsuo
zlib_prefix=$OR_PREFIX/zlib
pcre_prefix=$OR_PREFIX/pcre

cc_opt="-DNGX_LUA_ABORT_AT_PANIC -I${zlib_prefix}/include -I${pcre_prefix}/include -I${openssl_prefix}/include"
ld_opt="-L${zlib_prefix}/lib -L${pcre_prefix}/lib -L${openssl_prefix}/lib64 -Wl,-rpath,${zlib_prefix}/lib:${pcre_prefix}/lib:${openssl_prefix}/lib64"

./config shared zlib enable-ntls -g --prefix="$OPENSSL_PREFIX" --libdir=lib64 --with-zlib-lib=$zlib_prefix/lib --with-zlib-include=$zlib_prefix/include

make -j$(nproc)
make install_sw

./configure --prefix="$OR_PREFIX"
--with-cc-opt="-DAPISIX_RUNTIME_VER=$runtime_version $cc_opt"
--with-ld-opt="-Wl,-rpath,$OR_PREFIX/wasmtime-c-api/lib $ld_opt"
$debug_args
--add-module=../mod_dubbo-${mod_dubbo_ver}
--add-module=../ngx_multi_upstream_module-${ngx_multi_upstream_module_ver}
--add-module=../apisix-nginx-module-${apisix_nginx_module_ver}
--add-module=../apisix-nginx-module-${apisix_nginx_module_ver}/src/stream
--add-module=../apisix-nginx-module-${apisix_nginx_module_ver}/src/meta
--add-module=../wasm-nginx-module-${wasm_nginx_module_ver}
--add-module=../lua-var-nginx-module-${lua_var_nginx_module_ver}
--add-module=../lua-resty-events-${lua_resty_events_ver}
--with-poll_module
--with-pcre-jit
--without-http_rds_json_module
--without-http_rds_csv_module
--without-lua_rds_parser
--with-stream
--with-stream_ssl_module
--with-stream_ssl_preread_module
--with-http_v2_module
#--with-http_v3_module
--without-mail_pop3_module
--without-mail_imap_module
--without-mail_smtp_module
--with-http_stub_status_module
--with-http_realip_module
--with-http_addition_module
--with-http_auth_request_module
--with-http_secure_link_module
--with-http_random_index_module
--with-http_gzip_static_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_mp4_module
--with-http_gunzip_module
--with-threads
--with-compat
--with-luajit-xcflags="$luajit_xcflags"
--with-openssl=../Tongsuo-8.4-stable
$no_pool_patch
-jnproc

error:
[2025-03-21 10:19:08] -L/tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/build/luajit-root/usr/local/openresty/luajit/lib -L/tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/build/luajit-root/usr/local/openresty/luajit/lib -Wl,-rpath,/usr/local/openresty/luajit/lib -Wl,-rpath,/usr/local/openresty/wasmtime-c-api/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl3/lib64 -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl3/lib64 -Wl,-E -Wl,-E -ldl -lpthread -lpthread -lcrypt -L/tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/build/luajit-root/usr/local/openresty/luajit/lib -lluajit-5.1 -lm -ldl -L/tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/build/luajit-root/usr/local/openresty/luajit/lib -lluajit-5.1 -lm -ldl -lstdc++ -L/tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/../wasm-nginx-module-0.7.0/wasmtime-c-api/lib -lwasmtime -lpcre /tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/../Tongsuo-8.4-stable/.openssl/lib/libssl.a /tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/../Tongsuo-8.4-stable/.openssl/lib/libcrypto.a -ldl -lpthread -lz
[2025-03-21 10:19:08] -Wl,-E
[2025-03-21 10:19:08] objs/src/http/ngx_http_request.o: In function ngx_http_ssl_handshake': [2025-03-21 10:19:08] /tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/build/nginx-1.27.1/src/http/ngx_http_request.c:782: undefined reference to SSL_enable_ntls'
[2025-03-21 10:19:08] objs/addon/src/ngx_http_apisix_module.o: In function ngx_http_apisix_set_gm_cert': [2025-03-21 10:19:08] /tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/../apisix-nginx-module-1.18.0/src/ngx_http_apisix_module.c:825: undefined reference to SSL_use_sign_certificate'
[2025-03-21 10:19:08] /tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/../apisix-nginx-module-1.18.0/src/ngx_http_apisix_module.c:820: undefined reference to SSL_use_enc_certificate' [2025-03-21 10:19:08] objs/addon/src/ngx_http_apisix_module.o: In function ngx_http_apisix_set_gm_priv_key':
[2025-03-21 10:19:08] /tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/../apisix-nginx-module-1.18.0/src/ngx_http_apisix_module.c:899: undefined reference to SSL_use_sign_PrivateKey' [2025-03-21 10:19:08] /tmp/tmp.t523Q8Elzz/openresty-1.27.1.1/../apisix-nginx-module-1.18.0/src/ngx_http_apisix_module.c:894: undefined reference to SSL_use_enc_PrivateKey'

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@dosubot dosubot bot added the question label for questions asked by users label Mar 21, 2025
@juzhiyuan
Copy link
Member

duplicate as #12044

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Apache APISIX backlog Mar 23, 2025
@wjchan89
Copy link
Author

duplicate as #12044

I know about GM plugin(https://apisix.apache.org/zh/docs/apisix/next/plugins/gm/), and I also want to use it to support GM. However, according to the plugin documentation, APISIX needs to run on APISIX-Runtime built based on Tongsuo. Now, when using apisix-build-tool tag:apisix-runtime/1.3.0 to build APISIX-Runtime, an error occurs. I hope you can help me check what the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question label for questions asked by users
Projects
Archived in project
Development

No branches or pull requests

2 participants