You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build kong that leverages system openssl and system openresty, I've considered patching *.bazel files but kong build system involves a lot of bazel files and things are nested so I'm failing there.
so far after trying out this patch, I'm running into the following error.
(06:16:47) ERROR: /home/user/.cache/bazel/_bazel_user/b0a3c4100dd691c6efebdbf3258df3bc/external/luarocks/BUILD.bazel:67:22: Luarocks: Install Kong rocks dependencies failed
: (Exit 1): bash failed: error executing Action command (from target @@luarocks//:luarocks_make)
(cd /home/user/.cache/bazel/_bazel_user/b0a3c4100dd691c6efebdbf3258df3bc/execroot/_main && \
exec env - \
/bin/bash -c 'bazel-out/k8-opt/bin/external/luarocks/luarocks_make.rendered.sh bazel-out/k8-opt/bin/external/luarocks/luarocks_make.log')
# Configuration: 30ce272573d38bcfe24ea670125bfd05f1ec2be4a953128046b3bbdfea844452# Execution platform: @@platforms//host:host
Error: Failed installing dependency: https://luarocks.org/luasec-1.3.2-1.src.rock - Could not find header file for OPENSSL
No file openssl/ssl.h in /home/user/.cache/bazel/_bazel_user/b0a3c4100dd691c6efebdbf3258df3bc/execroot/_main/include
You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.
Example: luarocks install luasec OPENSSL_DIR=/usr/local
Target //build:kong failed to build
apart from this, I've have also tried running these make commands after patching.
make install-dev-rocks
make build-release
I was doing this because Makefile seems to set OPENSSL_DIR via OPENSSL_DIR ?= /usr but that also didn't worked.
Is there an easy way to build against system openssl that I'm missing here? I searched issues/discussions but was not able to find one?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there,
I'm trying to build kong that leverages system openssl and system openresty, I've considered patching
*.bazel
files but kong build system involves a lot of bazel files and things are nested so I'm failing there.Below is the patch, I'm trying out as of now.
diff
so far after trying out this patch, I'm running into the following error.
apart from this, I've have also tried running these make commands after patching.
I was doing this because Makefile seems to set
OPENSSL_DIR
viaOPENSSL_DIR ?= /usr
but that also didn't worked.Is there an easy way to build against system openssl that I'm missing here? I searched issues/discussions but was not able to find one?
Beta Was this translation helpful? Give feedback.
All reactions