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

Unable to build from tags: undefined reference to `ngx_stream_lua_kong_set_upstream_ssl' #75

Open
dcarley opened this issue Jan 20, 2023 · 0 comments

Comments

@dcarley
Copy link

dcarley commented Jan 20, 2023

I'm unable to build images from tags, which worked in previous weeks:

% gojira up --tag 3.1.0
Building gojira:9fcf6e1de1420aca123e400fc23b1fc447552975

       Version info
==========================
 * OpenSSL:     1.1.1s  
 * OpenResty:   1.21.4.1
 * LuaRocks:    3.9.1 
 * Kong NM:     0.4.0
 * Kong BT:     master
 * ATC ROUTER:  1.0.1
 * Resty WEBSOCKET:  0.4.0
 * Resty LMDB:  1.0.0
 * Resty Events:  0.1.3
==========================

…

#11 106.2 -L/work/openresty-1.21.4.1/build/luajit-root/build/openresty/luajit/lib -L/work/openresty-1.21.4.1/build/luajit-root/build/openresty/luajit/lib -Wl,-rpath,/build/openresty/luajit/lib -L/build/openssl/lib -Wl,--disable-new-dtags,-rpath,/build/openssl/lib -Wl,--require-defined=pcre_version -Wl,-E -Wl,-E -ldl -lpthread -lcrypt -L/work/openresty-1.21.4.1/build/luajit-root/build/openresty/luajit/lib -lluajit-5.1 -lm -ldl -L/work/openresty-1.21.4.1/build/luajit-root/build/openresty/luajit/lib -lluajit-5.1 -lm -ldl /work/lua-resty-lmdb/lmdb/libraries/liblmdb/liblmdb.a -lpcre -lssl -lcrypto -ldl -lpthread -lz \
#11 106.2 -Wl,-E
#11 106.2 objs/src/stream/ngx_stream_proxy_module.o: In function `ngx_stream_proxy_ssl_init_connection':
#11 106.2 /work/openresty-1.21.4.1/build/nginx-1.21.4/src/stream/ngx_stream_proxy_module.c:1103: undefined reference to `ngx_stream_lua_kong_get_upstream_ssl_verify'
#11 106.2 /work/openresty-1.21.4.1/build/nginx-1.21.4/src/stream/ngx_stream_proxy_module.c:1136: undefined reference to `ngx_stream_lua_kong_set_upstream_ssl'
#11 106.2 objs/src/stream/ngx_stream_proxy_module.o: In function `ngx_stream_proxy_ssl_handshake':
#11 106.2 /work/openresty-1.21.4.1/build/nginx-1.21.4/src/stream/ngx_stream_proxy_module.c:1173: undefined reference to `ngx_stream_lua_kong_get_upstream_ssl_verify'
#11 106.2 collect2: error: ld returned 1 exit status
#11 106.2 objs/Makefile:501: recipe for target 'objs/nginx' failed
#11 106.2 make[2]: *** [objs/nginx] Error 1
#11 106.2 make[2]: Leaving directory '/work/openresty-1.21.4.1/build/nginx-1.21.4'
#11 106.2 Makefile:10: recipe for target 'build' failed
#11 106.2 make[1]: *** [build] Error 2
#11 106.2 make[1]: Leaving directory '/work/openresty-1.21.4.1/build/nginx-1.21.4'
#11 106.2 Makefile:4: recipe for target 'all' failed
#11 106.2 make: *** [all] Error 2
#11 106.2 ------------------------------------
#11 106.2 see full log /build/build.log
------
executor failed running [/bin/sh -c ${BUILD_PREFIX}/build.sh]: exit code: 1

I could build by pinning the previous release of kong-build-tools prior to Kong/kong-build-tools#582:

diff --git a/docker/build.sh b/docker/build.sh
index e1997d7..84b498c 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -18,7 +18,7 @@ NGX_MODULE_MANUAL=0
 
 function download_build_tools {
   mkdir -p ${BUILD_TOOLS_INSTALL}
-  curl -sSL https://github.com/Kong/kong-build-tools/archive/${KONG_BUILD_TOOLS}.tar.gz \
+  curl -sSL https://github.com/Kong/kong-build-tools/archive/refs/tags/4.41.1.tar.gz \
             | tar -C ${BUILD_TOOLS_INSTALL} -xz --strip-components=1
 }

I'm opening the issue here, rather than kong-build-tools, because I'm not clear whether gojira intends to move to Bazel per Kong/kong#10113. It's also more likely that other people running into the same problem will find this issue.

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