sftcd / openssl

TLS/SSL and crypto library
https://www.openssl.org
Apache License 2.0
46 stars 20 forks source link

build error #11

Closed patrickkh7788 closed 4 years ago

patrickkh7788 commented 4 years ago

I try add -DOPENSSL_API_COMPAT=30000, still get this error:

In file included from crypto/aes/aes_ofb.c:11:
In file included from include/openssl/modes.h:14:
include/openssl/macros.h:102:4: error: "The requested API level higher than the configured API compatibility level"
#  error "The requested API level higher than the configured API compatibility level"
   ^
include/openssl/macros.h:110:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
#  error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
   ^
In file included from crypto/aes/aes_ofb.c:11:
In file included from include/openssl/modes.h:20:
In file included from include/openssl/types.h:19:
include/openssl/e_os2.h:168:11: warning: 'OPENSSL_EXPORT' macro redefined [-Wmacro-redefined]
#  define OPENSSL_EXPORT extern
          ^
boringssl/include/openssl/base.h:168:9: note: previous definition is here
#define OPENSSL_EXPORT
        ^
In file included from crypto/aes/aes_ecb.c:13:
In file included from crypto/aes/aes_local.h:13:
In file included from include/openssl/e_os2.h:14:
include/openssl/macros.h:102:4: error: "The requested API level higher than the configured API compatibility level"
#  error "The requested API level higher than the configured API compatibility level"
   ^
include/openssl/macros.h:110:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
#  error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
   ^
In file included from crypto/aes/aes_ecb.c:13:
In file included from crypto/aes/aes_local.h:13:
include/openssl/e_os2.h:168:11: warning: 'OPENSSL_EXPORT' macro redefined [-Wmacro-redefined]
#  define OPENSSL_EXPORT extern
          ^
boringssl/include/openssl/base.h:168:9: note: previous definition is here
#define OPENSSL_EXPORT
sftcd commented 4 years ago

checking that now, but it doesn't ring a bell in terms of code I've modified but will get back...

sftcd commented 4 years ago

Seems to build ok for me after I cloned afresh from my fork and then did ./config -DOPENSSL_API_COMPAT=30000 - are you using some other options as well?