apple / swift-nio-ssl

TLS Support for SwiftNIO, based on BoringSSL.
https://swiftpackageindex.com/apple/swift-nio-ssl/main/documentation/niossl
Apache License 2.0
392 stars 142 forks source link

crash swift:5.6.2-centos7 #373

Closed VineFiner closed 2 years ago

VineFiner commented 2 years ago

swift build -c release

In file included from /app/app/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:57:
In file included from /app/app/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_ssl.h:147:
In file included from /app/app/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bio.h:66:
In file included from /app/app/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_ex_data.h:114:
/app/app/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_stack.h:446:32: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'enable_if'?
struct DeleterImpl<Stack, std::enable_if_t<StackTraits<Stack>::kIsConst>> {
                          ~~~~~^~~~~~~~~~~
                               enable_if
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/type_traits:1766:12: note: 'enable_if' declared here
    struct enable_if 
Lukasa commented 2 years ago

Unfortunately our upstream dependency, BoringSSL, has dropped support for Centos 7. It's not practical for us to maintain this patch so unfortunately Centos 7 is not supported by newer releases. Please cap the maximum version number of swift-nio-ssl.

VineFiner commented 2 years ago

I found that there is no swift 5.6.2 of centos8. Is centos deployment not recommended?

0xTim commented 2 years ago

CentOS is no longer maintained and is dead. I recommend picking another distribution