I'm trying to build ruby 2.7.0 from source but I get some errors with openssl/libressl after doing make
:
compiling ossl_ocsp.c
ossl_ocsp.c:1096:38: error: incomplete definition of type 'struct ocsp_basic_response_st'
sk_X509_num(x509s) && sk_X509_num(bs->certs)) {
~~^
/usr/include/openssl/safestack.h:1505:43: note: expanded from macro 'sk_X509_num'
#define sk_X509_num(st) SKM_sk_num(X509, (st))
^~
/usr/include/openssl/safestack.h:144:32: note: expanded from macro 'SKM_sk_num'
sk_num(CHECKED_STACK_OF(type, st))
^~
/usr/include/openssl/safestack.h:72:21: note: expanded from macro 'CHECKED_STACK_OF'
((_STACK*) (1 ? p : (STACK_OF(type)*)0))
^
/usr/include/openssl/ocsp.h:160:16: note: forward declaration of 'struct ocsp_basic_response_st'
typedef struct ocsp_basic_response_st OCSP_BASICRESP;
^
1 error generated.
*** Error 1 in ext/openssl (Makefile:313 'ossl_ocsp.o': @ cc -I.
-I../../.ext/include/x86_64-openbsd7.1 -I../.././include
-I../.././ext/open...)
*** Error 2 in . (exts.mk:250 'ext/openssl/all': @cd ext/openssl
&& exec make UPDATE_LIBRARIES=no EXTENCS=dmyenc.o
libdir=/home/computer/.rub...)
*** Error 2 in /home/computer/ruby27/ruby-2.7.0 (Makefile:984
'build-ext': @make -f exts.mk
libdir="/home/computer/.rubies/2.7.0/lib" LIBRUBY_E...)
$ openssl version
LibreSSL 3.5.2
If you have any idea thank you :)