openssl issue on freebsd 14-rel "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

Hello!

Please help me, when i try install nginx port i get error

OS ver
Code:
[root@freebsd /usr/ports/www/nginx-full]# uname -a
FreeBSD freebsd 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023     [email]root@releng1.nyi.freebsd.org[/email]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

--- ossl.o ---
In file included from ossl.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:14:
/usr/include/openssl/macros.h:155:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
--- ossl_asn1.o ---
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:14:
/usr/include/openssl/macros.h:155:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
#  error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
   ^
--- ossl.o ---
#  error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
   ^
--- ext/rbconfig/sizeof/all ---
linking shared-object rbconfig/sizeof.so
--- ext/openssl/all ---
--- ossl_asn1.o ---
In file included from ossl_asn1.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:31:
In file included from /usr/include/openssl/tserr.h:17:
--- ossl.o ---
In file included from ossl.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:31:
In file included from /usr/include/openssl/tserr.h:17:
/usr/include/openssl/cryptoerr_legacy.h:31:27: error: conflicting types for 'ERR_load_BIO_strings'
OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
                          ^
/usr/local/include/openssl/err.h:147:21: note: previous declaration is here
OPENSSL_EXPORT void ERR_load_BIO_strings(void);
                    ^
--- ossl_asn1.o ---
/usr/include/openssl/cryptoerr_legacy.h:31:27: error: conflicting types for 'ERR_load_BIO_strings'
OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
                          ^
--- ossl.o ---
In file included from ossl.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:31:
In file included from /usr/include/openssl/tserr.h:17:
/usr/include/openssl/cryptoerr_legacy.h:57:27: error: conflicting types for 'ERR_load_ERR_strings'
OSSL_DEPRECATEDIN_3_0 int ERR_load_ERR_strings(void);
                          ^
/usr/local/include/openssl/err.h:150:21: note: previous declaration is here
OPENSSL_EXPORT void ERR_load_ERR_strings(void);
                    ^
--- ossl_asn1.o ---
/usr/local/include/openssl/err.h:147:21: note: previous declaration is here
OPENSSL_EXPORT void ERR_load_BIO_strings(void);
                    ^
--- ossl.o ---
In file included from ossl.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:31:
In file included from /usr/include/openssl/tserr.h:17:
/usr/include/openssl/cryptoerr_legacy.h:67:27: error: conflicting types for 'ERR_load_RAND_strings'
OSSL_DEPRECATEDIN_3_0 int ERR_load_RAND_strings(void);
                          ^
/usr/local/include/openssl/err.h:156:21: note: previous declaration is here
OPENSSL_EXPORT void ERR_load_RAND_strings(void);
                    ^
--- ossl_asn1.o ---
In file included from ossl_asn1.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:31:
In file included from /usr/include/openssl/tserr.h:17:
/usr/include/openssl/cryptoerr_legacy.h:57:27: error: conflicting types for 'ERR_load_ERR_strings'
OSSL_DEPRECATEDIN_3_0 int ERR_load_ERR_strings(void);
                          ^
/usr/local/include/openssl/err.h:150:21: note: previous declaration is here
OPENSSL_EXPORT void ERR_load_ERR_strings(void);
                    ^
In file included from ossl_asn1.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:31:
In file included from /usr/include/openssl/tserr.h:17:
/usr/include/openssl/cryptoerr_legacy.h:67:27: error: conflicting types for 'ERR_load_RAND_strings'
OSSL_DEPRECATEDIN_3_0 int ERR_load_RAND_strings(void);
                          ^
/usr/local/include/openssl/err.h:156:21: note: previous declaration is here
OPENSSL_EXPORT void ERR_load_RAND_strings(void);
                    ^
In file included from ossl_asn1.c:10:
In file included from ./ossl.h:31:
--- ossl.o ---
In file included from ossl.c:10:
In file included from ./ossl.h:31:
In file included from /usr/include/openssl/ts.h:32:
/usr/include/openssl/ess.h:34:68: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID, ESS_CERT_ID, ESS_CERT_ID)
                                                                   ^
--- ossl_asn1.o ---
In file included from /usr/include/openssl/ts.h:32:
/usr/include/openssl/ess.h:34:68: error: expected ';' after top level declarator
--- ossl.o ---
/usr/include/openssl/ess.h:66:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID_V2, ESS_CERT_ID_V2, ESS_CERT_ID_V2)
^
--- ossl_asn1.o ---
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID, ESS_CERT_ID, ESS_CERT_ID)
                                                                   ^
/usr/include/openssl/ess.h:66:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID_V2, ESS_CERT_ID_V2, ESS_CERT_ID_V2)
--- ossl.o ---
/usr/include/openssl/ess.h:34:1: note: previous declaration is here
--- ossl_asn1.o ---
^
--- ossl.o ---
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID, ESS_CERT_ID, ESS_CERT_ID)
^
--- ossl_asn1.o ---
/usr/include/openssl/ess.h:34:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID, ESS_CERT_ID, ESS_CERT_ID)
^
--- ossl.o ---
/usr/include/openssl/ess.h:66:77: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID_V2, ESS_CERT_ID_V2, ESS_CERT_ID_V2)
                                                                            ^
--- ossl_asn1.o ---
/usr/include/openssl/ess.h:66:77: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(ESS_CERT_ID_V2, ESS_CERT_ID_V2, ESS_CERT_ID_V2)
                                                                            ^
/usr/include/openssl/ess.h:96:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_ISSUER_SERIAL)
^
--- ossl.o ---
/usr/include/openssl/ess.h:96:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_ISSUER_SERIAL)
^
--- ossl_asn1.o ---
/usr/include/openssl/ess.h:100:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_CERT_ID)
--- ossl.o ---
/usr/include/openssl/ess.h:100:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_CERT_ID)
^
--- ossl_asn1.o ---
^
/usr/include/openssl/ess.h:103:44: error: expected ';' after top level declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT)
                                           ^
/usr/include/openssl/ess.h:107:1: error: expected function body after function declarator
--- ossl.o ---
/usr/include/openssl/ess.h:103:44: error: expected ';' after top level declarator
--- ossl_asn1.o ---
DECLARE_ASN1_DUP_FUNCTION(ESS_CERT_ID_V2)
^
--- ossl.o ---
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT)
--- ossl_asn1.o ---
/usr/include/openssl/ess.h:110:1: error: conflicting types for 'DECLARE_ASN1_DUP_FUNCTION'
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT_V2)
^
/usr/include/openssl/ess.h:103:1: note: previous declaration is here
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT)
^
--- ossl.o ---
                                           ^
--- ossl_asn1.o ---
/usr/include/openssl/ess.h:110:47: error: expected ';' after top level declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT_V2)
                                              ^
--- ossl.o ---
/usr/include/openssl/ess.h:107:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_CERT_ID_V2)
^
--- ossl_asn1.o ---
In file included from ossl_asn1.c:10:
In file included from ./ossl.h:31:
/usr/include/openssl/ts.h:70:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_REQ)
^
--- ossl.o ---
/usr/include/openssl/ess.h:110:1: error: conflicting types for 'DECLARE_ASN1_DUP_FUNCTION'
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT_V2)
^
--- ossl_asn1.o ---
/usr/include/openssl/ts.h:81:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_MSG_IMPRINT)
^
--- ossl.o ---
/usr/include/openssl/ess.h:103:1: note: previous declaration is here
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT)
--- ossl_asn1.o ---
/usr/include/openssl/ts.h:92:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_RESP)
^
--- ossl.o ---
^
--- ossl_cipher.o ---
--- ossl.o ---
/usr/include/openssl/ess.h:110:47: error: expected ';' after top level declarator
DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT_V2)
                                              ^
--- ossl_asn1.o ---
/usr/include/openssl/ts.h:103:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_STATUS_INFO)
^
/usr/include/openssl/ts.h:107:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_TST_INFO)
^
/usr/include/openssl/ts.h:119:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_ACCURACY)
^
--- ossl.o ---
In file included from ossl.c:10:
In file included from ./ossl.h:31:
/usr/include/openssl/ts.h:70:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_REQ)
^
/usr/include/openssl/ts.h:81:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_MSG_IMPRINT)
^
/usr/include/openssl/ts.h:92:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_RESP)
^
/usr/include/openssl/ts.h:103:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_STATUS_INFO)
^
/usr/include/openssl/ts.h:107:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_TST_INFO)
--- ossl_cipher.o ---
compiling ossl_cipher.c
--- ossl.o ---
^
/usr/include/openssl/ts.h:119:1: error: expected function body after function declarator
DECLARE_ASN1_DUP_FUNCTION(TS_ACCURACY)
^
--- ossl_asn1.o ---
fatal error: too many errors emitted, stopping now [-ferror-limit=]
--- ossl.o ---
fatal error: too many errors emitted, stopping now [-ferror-limit=]
--- ext/psych/all ---
--- psych_yaml_tree.o ---
compiling psych_yaml_tree.c
--- ext/openssl/all ---
20 errors generated.
*** [ossl.o] Error code 1

make[2]: stopped in /usr/ports/lang/ruby32/work/ruby-3.2.3/ext/openssl
*** [build-ext] Error code 6

make: stopped in /usr/ports/lang/ruby32/work/ruby-3.2.3
1 error

make: stopped in /usr/ports/lang/ruby32/work/ruby-3.2.3
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/lang/ruby32
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/lang/ruby32
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/nginx-full
*** Error code 1

Stop.
make: stopped in /usr/ports/www/nginx-full
 
Back
Top