An error occurred when I tried to install luaossl in Centos8 stream environment.
luajit-2.1.0-0.16beta3.el8.x86_64
luajit-devel-2.1.0-0.16beta3.el8.x86_64
luarocks 3.5.0 (use luajit source build)
openssl-libs-1.1.1g-15.el8_3.x86_64
openssl-1.1.1g-15.el8_3.x86_64
openssl-devel-1.1.1g-15.el8_3.x86_64
Do you have any other environmental information or matters to investigate?
luarocks install luaossl
Installing https://luarocks.org/luaossl-20200709-0.src.rock
luaossl 20200709-0 depends on lua (5.1-1 provided by VM)
Applying patch config.h.diff...
Hunk 1 found at offset 2...
gcc -O2 -fPIC -I/usr/include/luajit-2.1 -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:2292:3: error: conflicting types for 'EVP_KDF_CTX'
} EVP_KDF_CTX;
^~~~~~~~~~~
In file included from /usr/include/openssl/err.h:20,
from src/openssl.c:68:
/usr/include/openssl/ossl_typ.h:100:31: note: previous declaration of 'EVP_KDF_CTX' was here
typedef struct evp_kdf_ctx_st EVP_KDF_CTX;
^~~~~~~~~~~
src/openssl.c:2294:13: error: conflicting types for 'EVP_KDF_CTX_free'
static void EVP_KDF_CTX_free(EVP_KDF_CTX *kctx) {
^~~~~~~~~~~~~~~~
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:29:6: note: previous declaration of 'EVP_KDF_CTX_free' was here
void EVP_KDF_CTX_free(EVP_KDF_CTX *ctx);
^~~~~~~~~~~~~~~~
src/openssl.c:2322:21: error: conflicting types for 'EVP_KDF_CTX_new_id'
static EVP_KDF_CTX *EVP_KDF_CTX_new_id(int id) {
^~~~~~~~~~~~~~~~~~
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:28:14: note: previous declaration of 'EVP_KDF_CTX_new_id' was here
EVP_KDF_CTX *EVP_KDF_CTX_new_id(int id);
^~~~~~~~~~~~~~~~~~
src/openssl.c:2401: warning: "EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND" redefined
#define EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:65: note: this is the location of the previous definition
# define EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND 0
src/openssl.c:2407: warning: "EVP_KDF_HKDF_MODE_EXTRACT_ONLY" redefined
#define EVP_KDF_HKDF_MODE_EXTRACT_ONLY EVP_PKEY_HKDEF_MODE_EXTRACT_ONLY
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:66: note: this is the location of the previous definition
# define EVP_KDF_HKDF_MODE_EXTRACT_ONLY 1
src/openssl.c:2411: warning: "EVP_KDF_HKDF_MODE_EXPAND_ONLY" redefined
#define EVP_KDF_HKDF_MODE_EXPAND_ONLY EVP_PKEY_HKDEF_MODE_EXPAND_ONLY
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:67: note: this is the location of the previous definition
# define EVP_KDF_HKDF_MODE_EXPAND_ONLY 2
src/openssl.c:2414:12: error: conflicting types for 'EVP_KDF_vctrl'
static int EVP_KDF_vctrl(EVP_KDF_CTX *kctx, int cmd, va_list args) {
^~~~~~~~~~~~~
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:33:5: note: previous declaration of 'EVP_KDF_vctrl' was here
int EVP_KDF_vctrl(EVP_KDF_CTX *ctx, int cmd, va_list args);
^~~~~~~~~~~~~
src/openssl.c:2579:12: error: conflicting types for 'EVP_KDF_ctrl'
static int EVP_KDF_ctrl(EVP_KDF_CTX *kctx, int cmd, ...) {
^~~~~~~~~~~~
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:32:5: note: previous declaration of 'EVP_KDF_ctrl' was here
int EVP_KDF_ctrl(EVP_KDF_CTX *ctx, int cmd, ...);
^~~~~~~~~~~~
src/openssl.c:2590:15: error: conflicting types for 'EVP_KDF_size'
static size_t EVP_KDF_size(EVP_KDF_CTX *kctx) {
^~~~~~~~~~~~
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:35:8: note: previous declaration of 'EVP_KDF_size' was here
size_t EVP_KDF_size(EVP_KDF_CTX *ctx);
^~~~~~~~~~~~
src/openssl.c:2608:12: error: conflicting types for 'EVP_KDF_derive'
static int EVP_KDF_derive(EVP_KDF_CTX *kctx, unsigned char *out, size_t *outlen) {
^~~~~~~~~~~~~~
In file included from src/openssl.c:615:
/usr/include/openssl/kdf.h:36:5: note: previous declaration of 'EVP_KDF_derive' was here
int EVP_KDF_derive(EVP_KDF_CTX *ctx, unsigned char *key, size_t keylen);
^~~~~~~~~~~~~~
src/openssl.c: In function 'kdf_derive':
src/openssl.c:2401:46: error: 'EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND' undeclared (first use in this function)
#define EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/openssl.c:12138:5: note: in expansion of macro 'EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND'
EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/openssl.c:2401:46: note: each undeclared identifier is reported only once for each function it appears in
#define EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/openssl.c:12138:5: note: in expansion of macro 'EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND'
EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/openssl.c:2407:40: error: 'EVP_KDF_HKDF_MODE_EXTRACT_ONLY' undeclared (first use in this function)
#define EVP_KDF_HKDF_MODE_EXTRACT_ONLY EVP_PKEY_HKDEF_MODE_EXTRACT_ONLY
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/openssl.c:12141:5: note: in expansion of macro 'EVP_KDF_HKDF_MODE_EXTRACT_ONLY'
EVP_KDF_HKDF_MODE_EXTRACT_ONLY,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/openssl.c:2411:39: error: 'EVP_KDF_HKDF_MODE_EXPAND_ONLY' undeclared (first use in this function)
#define EVP_KDF_HKDF_MODE_EXPAND_ONLY EVP_PKEY_HKDEF_MODE_EXPAND_ONLY
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/openssl.c:12144:5: note: in expansion of macro 'EVP_KDF_HKDF_MODE_EXPAND_ONLY'
EVP_KDF_HKDF_MODE_EXPAND_ONLY,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: Build error: Failed compiling object src/openssl.o
An error occurred when I tried to install luaossl in Centos8 stream environment.
Do you have any other environmental information or matters to investigate?