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
388 stars 139 forks source link

Compilation errors #409

Closed ValiantCat closed 1 year ago

ValiantCat commented 1 year ago

Enviroment OS CentOS 7 uname Linux cf1ab92a0781 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

swift --version Swift version 5.7.1 (swift-5.7.1-RELEASE) Target: x86_64-unknown-linux-gnu

Building for debugging... In file included from /home/admin/SomeTarget/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/ssl_x509.cc:141: In file included from /home/admin/SomeTarget/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_ssl.h:147: In file included from /home/admin/SomeTarget/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bio.h:66: In file included from /home/admin/SomeTarget/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_ex_data.h:114: /home/admin/SomeTarget/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_stack.h:514:32: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'enable_if'? struct DeleterImpl<Stack, std::enable_if_t<StackTraits::kIsConst>> {


                               enable_if
/usr/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 1 year ago

Unfortunately we no longer support Centos7, as it does not ship a new enough version of libstdc++ for boringssl to build. See #373.

ValiantCat commented 1 year ago

thanks, i try to upgrade to centos 8