Closed 4mig4 closed 1 year ago
set
HAVE_EVP_KDF_CTX=1
I'm afraid this proposed solution will now cause a different issue with OpenSSL 1.1.1.
Since #199 (20220711):
and because
core_names.h
does not exist in OpenSSL 1.1.1, compiling will fail with aopenssl/core_names.h: No such file or directory
.
This is exaclty what is happening
$ luarocks install luaossl CFLAGS="-O2 -fPIC -DHAVE_EVP_KDF_CTX=1"
Installing https://luarocks.org/luaossl-20220711-0.src.rock
luaossl 20220711-0 depends on lua (5.1-1 provided by VM)
Applying patch config.h.diff...
Hunk 1 found at offset 2...
gcc -O2 -fPIC -DHAVE_EVP_KDF_CTX=1 -I/home/user1/.luaver/lua/5.1.5/include -c src/openssl.c -o src/openssl.o -D_REENTRANT -D_THREAD_SAFE -DCOMPAT53_PREFIX=luaossl -D_GNU_SOURCE -I/usr/include -I/usr/include
src/openssl.c:623:10: fatal error: openssl/core_names.h: No such file or directory
#include <openssl/core_names.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Error: Build error: Failed compiling object src/openssl.o
solution for me was to use : luarocks install mna/luaossl
Compilation of luaossl fails on :
Linux test.local 4.18.0-425.10.1.el8_7.x86_64 #1 SMP Thu Jan 12 16:32:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Rocky Linux release 8.7 (Green Obsidian)
gcc version 8.5.0 20210514 (Red Hat 8.5.0-16) (GCC)
with: