The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build TLS, reference 2.1.3 (a5981b), with Swift 6.1 for Linux on 25 Apr 2025 15:32:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/tls.git
Reference: 2.1.3
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/vapor-community/tls
 * tag               2.1.3      -> FETCH_HEAD
HEAD is now at a5981b0 Merge pull request #71 from vapor-community/warnings-real
Cloned https://github.com/vapor-community/tls.git
Revision (git rev-parse @):
a5981b0a370f227521330beb92b7ce6d636a1eb2
SUCCESS checkout https://github.com/vapor-community/tls.git at 2.1.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor-community/tls.git
https://github.com/vapor-community/tls.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/core.git"
    },
    {
      "identity" : "sockets",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/sockets.git"
    },
    {
      "identity" : "ctls",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/ctls.git"
    }
  ],
  "manifest_display_name" : "TLS",
  "name" : "TLS",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TLS",
      "targets" : [
        "TLS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TLSTests",
      "module_type" : "SwiftTarget",
      "name" : "TLSTests",
      "path" : "Tests/TLSTests",
      "sources" : [
        "Certs.swift",
        "LiveTests.swift"
      ],
      "target_dependencies" : [
        "TLS"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TLS",
      "module_type" : "SwiftTarget",
      "name" : "TLS",
      "path" : "Sources/TLS",
      "product_dependencies" : [
        "Core",
        "CTLS",
        "Sockets"
      ],
      "product_memberships" : [
        "TLS"
      ],
      "sources" : [
        "Certificates.swift",
        "ClientSocket.swift",
        "Context.swift",
        "Error.swift",
        "Exports.swift",
        "InternetSocket.swift",
        "Mode.swift",
        "ReadableSocket.swift",
        "ServerSocket.swift",
        "Socket.swift",
        "Utilities.swift",
        "WriteableSocket.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/vapor/sockets.git
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/ctls.git
[1/20143] Fetching core
[2/23455] Fetching core, sockets
[767/23526] Fetching core, sockets, ctls
Fetched https://github.com/vapor/ctls.git from cache (0.45s)
Fetched https://github.com/vapor/sockets.git from cache (0.46s)
[6245/20143] Fetching core
Fetched https://github.com/vapor/core.git from cache (1.24s)
Computing version for https://github.com/vapor/ctls.git
Computed https://github.com/vapor/ctls.git at 1.1.3 (1.94s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (1.41s)
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/debugging.git
[1/260] Fetching debugging
[261/618] Fetching debugging, bits
Fetched https://github.com/vapor/bits.git from cache (0.48s)
Fetched https://github.com/vapor/debugging.git from cache (0.49s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (1.51s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.71s)
Computing version for https://github.com/vapor/sockets.git
Computed https://github.com/vapor/sockets.git at 2.2.3 (0.59s)
Creating working copy for https://github.com/vapor/ctls.git
Working copy of https://github.com/vapor/ctls.git resolved at 1.1.3
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/sockets.git
Working copy of https://github.com/vapor/sockets.git resolved at 2.2.3
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.1
warning: 'ctls': ignoring declared target(s) 'CTLS' in the system package
warning: you may be able to install ctls using your system-packager:
    apt-get install libssl-dev
warning: you may be able to install ctls using your system-packager:
    apt-get install libssl-dev
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/30] Emitting module Bits
[10/32] Compiling Debugging Debuggable.swift
[11/32] Emitting module Debugging
[12/33] Compiling Bits UnsignedInteger+BytesConvertible.swift
[13/33] Compiling Bits UnsignedInteger+Shifting.swift
[15/33] Compiling Bits Operators.swift
[16/33] Compiling Bits String+BytesConvertible.swift
[17/33] Emitting module libc
[18/33] Compiling libc libc.swift
[20/34] Compiling Bits Data+BytesConvertible.swift
[21/34] Compiling Bits HexEncoder.swift
[22/34] Compiling Bits Byte+ControlCharacters.swift
[23/34] Compiling Bits Byte+Convenience.swift
[24/34] Compiling Bits Byte+PatternMatching.swift
[25/34] Compiling Bits Aliases.swift
[26/34] Compiling Bits Base64Encoder.swift
[27/34] Compiling Bits Byte+Alphabet.swift
[28/34] Compiling Bits Bytes+Base64.swift
[29/34] Compiling Bits Bytes+Hex.swift
[30/34] Compiling Bits Byte+Random.swift
[31/34] Compiling Bits Byte+UTF8Numbers.swift
[32/34] Compiling Bits ByteSequence+Conversions.swift
[33/34] Compiling Bits Bytes+Percent.swift
[34/34] Compiling Bits BytesConvertible.swift
[36/57] Emitting module Core
[37/59] Compiling Core DispatchTime+Utilities.swift
[38/59] Compiling Core EmptyInitializable.swift
[39/59] Compiling Core Exports.swift
[40/59] Compiling Core Lock.swift
[41/59] Compiling Core Portal.swift
[42/59] Compiling Core RFC1123.swift
[43/59] Compiling Core Result.swift
[44/59] Compiling Core Semaphore.swift
[45/59] Compiling Core Sequence.swift
[46/59] Compiling Core Array.swift
[47/59] Compiling Core Bits.swift
[48/59] Compiling Core Cache.swift
[49/59] Compiling Core Extendable.swift
[50/59] Compiling Core FileProtocol.swift
[51/59] Compiling Core Int+Hex.swift
[52/59] Compiling Core StaticDataBuffer.swift
[53/59] Compiling Core String+CaseInsensitiveCompare.swift
[54/59] Compiling Core String+Polymorphic.swift
[55/59] Compiling Core Collection+Safe.swift
[56/59] Compiling Core DataFile.swift
[57/59] Compiling Core Dispatch.swift
[58/59] Compiling Core String.swift
[59/59] Compiling Core WorkingDirectory.swift
[61/70] Compiling Transport FoundationStream.swift
[62/70] Compiling Transport ServerStream.swift
[63/71] Compiling Transport Stream.swift
[64/71] Compiling Transport StreamError.swift
[65/71] Compiling Transport ReadableStream.swift
[66/71] Compiling Transport Exports.swift
[67/71] Compiling Transport ClientStream.swift
[68/71] Emitting module Transport
[69/71] Compiling Transport InternetStream.swift
[70/71] Compiling Transport Port.swift
[71/71] Compiling Transport WriteableStream.swift
[73/93] Compiling Sockets TCPReadableSocket.swift
[74/93] Compiling Sockets TCPSocket.swift
[75/95] Emitting module Sockets
[76/95] Compiling Sockets SocketOptions.swift
[77/95] Compiling Sockets TCPEstablishedSocket.swift
[78/95] Compiling Sockets TCPInternetSocket.swift
[79/95] Compiling Sockets Address+C.swift
[80/95] Compiling Sockets Address.swift
[81/95] Compiling Sockets Buffer.swift
[82/95] Compiling Sockets RawSocket.swift
[83/95] Compiling Sockets Select.swift
[84/95] Compiling Sockets Socket.swift
[85/95] Compiling Sockets Types.swift
[86/95] Compiling Sockets Exports.swift
[87/95] Compiling Sockets Config.swift
[88/95] Compiling Sockets Descriptor.swift
[89/95] Compiling Sockets InternetSocket.swift
[90/95] Compiling Sockets Pipe.swift
[91/95] Compiling Sockets Conversions.swift
[92/95] Compiling Sockets Error.swift
[93/95] Compiling Sockets FDSet.swift
[94/95] Compiling Sockets TCPWriteableSocket.swift
[95/95] Compiling Sockets UDPSocket.swift
[97/108] Compiling TLS Mode.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[98/108] Compiling TLS ReadableSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
error: emit-module command failed with exit code 1 (use -v to see invocation)
[99/109] Emitting module TLS
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:6:42: error: cannot find type 'SSL_METHOD' in scope
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
    |                                          `- error: cannot find type 'SSL_METHOD' in scope
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
  8 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
/host/spi-builder-workspace/Sources/TLS/Context.swift:20:9: error: cannot find 'SSL_library_init' in scope
 18 |     /// https://stackoverflow.com/a/37887068/2611971
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
    |         `- error: cannot find 'SSL_library_init' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
/usr/include/openssl/ssl.h:2095:11: note: macro 'SSL_library_init' unavailable: function like macros not supported
2093 |
2094 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
2095 | #  define SSL_library_init() OPENSSL_init_ssl(0, NULL)
     |           `- note: macro 'SSL_library_init' unavailable: function like macros not supported
2096 | # endif
2097 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:21:9: error: cannot find 'SSL_load_error_strings' in scope
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
 21 |         SSL_load_error_strings()
    |         `- error: cannot find 'SSL_load_error_strings' in scope
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
/usr/include/openssl/ssl.h:1708:11: note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1706 |
1707 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1708 | #  define SSL_load_error_strings() \
     |           `- note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1709 |     OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
1710 |                      | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
/host/spi-builder-workspace/Sources/TLS/Context.swift:23:9: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
    |         `- error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 24 |         return true
 25 |     }()
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1144 |
1145 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1146 | #  define OPENSSL_add_all_algorithms_conf() \
     |           `- note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1147 |     OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
1148 |                         | OPENSSL_INIT_ADD_ALL_DIGESTS \
[100/109] Compiling TLS Context.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:6:42: error: cannot find type 'SSL_METHOD' in scope
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
    |                                          `- error: cannot find type 'SSL_METHOD' in scope
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
  8 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
/host/spi-builder-workspace/Sources/TLS/Context.swift:20:9: error: cannot find 'SSL_library_init' in scope
 18 |     /// https://stackoverflow.com/a/37887068/2611971
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
    |         `- error: cannot find 'SSL_library_init' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
/usr/include/openssl/ssl.h:2095:11: note: macro 'SSL_library_init' unavailable: function like macros not supported
2093 |
2094 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
2095 | #  define SSL_library_init() OPENSSL_init_ssl(0, NULL)
     |           `- note: macro 'SSL_library_init' unavailable: function like macros not supported
2096 | # endif
2097 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:21:9: error: cannot find 'SSL_load_error_strings' in scope
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
 21 |         SSL_load_error_strings()
    |         `- error: cannot find 'SSL_load_error_strings' in scope
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
/usr/include/openssl/ssl.h:1708:11: note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1706 |
1707 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1708 | #  define SSL_load_error_strings() \
     |           `- note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1709 |     OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
1710 |                      | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
/host/spi-builder-workspace/Sources/TLS/Context.swift:23:9: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
    |         `- error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 24 |         return true
 25 |     }()
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1144 |
1145 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1146 | #  define OPENSSL_add_all_algorithms_conf() \
     |           `- note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1147 |     OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
1148 |                         | OPENSSL_INIT_ADD_ALL_DIGESTS \
/host/spi-builder-workspace/Sources/TLS/Context.swift:50:22: error: cannot find 'SSLv23_server_method' in scope
 48 |         switch mode {
 49 |         case .server:
 50 |             method = SSLv23_server_method()
    |                      `- error: cannot find 'SSLv23_server_method' in scope
 51 |         case .client:
 52 |             method = SSLv23_client_method()
/host/spi-builder-workspace/Sources/TLS/Context.swift:52:22: error: cannot find 'SSLv23_client_method' in scope
 50 |             method = SSLv23_server_method()
 51 |         case .client:
 52 |             method = SSLv23_client_method()
    |                      `- error: cannot find 'SSLv23_client_method' in scope
 53 |         }
 54 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:63:42: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 61 |         }
 62 |
 63 |         SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, SSL_MODE_AUTO_RETRY, nil)
    |                                          `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 64 |
 65 |         if mode == .client {
/host/spi-builder-workspace/Sources/TLS/Context.swift:68:17: error: cannot find 'SSL_CTRL_OPTIONS' in scope
 66 |             SSL_CTX_ctrl(
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
    |                 `- error: cannot find 'SSL_CTRL_OPTIONS' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:23: error: cannot find 'SSL_OP_NO_SSLv3' in scope
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                       `- error: cannot find 'SSL_OP_NO_SSLv3' in scope
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 416 |      */
 417 | # define SSL_OP_NO_ANTI_REPLAY                           SSL_OP_BIT(24)
 418 | # define SSL_OP_NO_SSLv3                                 SSL_OP_BIT(25)
     |          `- note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 419 | # define SSL_OP_NO_TLSv1                                 SSL_OP_BIT(26)
 420 | # define SSL_OP_NO_TLSv1_2                               SSL_OP_BIT(27)
/host/spi-builder-workspace/Sources/TLS/Context.swift:71:23: error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
    |                       `- error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 72 |                 nil
 73 |             )
/usr/include/openssl/ssl.h:387:10: note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 385 | # define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION   SSL_OP_BIT(16)
 386 |     /* Don't use compression even if supported */
 387 | # define SSL_OP_NO_COMPRESSION                           SSL_OP_BIT(17)
     |          `- note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 388 |     /* Permit unsafe legacy renegotiation */
 389 | # define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION        SSL_OP_BIT(18)
/host/spi-builder-workspace/Sources/TLS/Context.swift:69:17: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
    |                 `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:21: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                     `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
[101/109] Compiling TLS Error.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:6:42: error: cannot find type 'SSL_METHOD' in scope
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
    |                                          `- error: cannot find type 'SSL_METHOD' in scope
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
  8 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
/host/spi-builder-workspace/Sources/TLS/Context.swift:20:9: error: cannot find 'SSL_library_init' in scope
 18 |     /// https://stackoverflow.com/a/37887068/2611971
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
    |         `- error: cannot find 'SSL_library_init' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
/usr/include/openssl/ssl.h:2095:11: note: macro 'SSL_library_init' unavailable: function like macros not supported
2093 |
2094 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
2095 | #  define SSL_library_init() OPENSSL_init_ssl(0, NULL)
     |           `- note: macro 'SSL_library_init' unavailable: function like macros not supported
2096 | # endif
2097 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:21:9: error: cannot find 'SSL_load_error_strings' in scope
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
 21 |         SSL_load_error_strings()
    |         `- error: cannot find 'SSL_load_error_strings' in scope
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
/usr/include/openssl/ssl.h:1708:11: note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1706 |
1707 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1708 | #  define SSL_load_error_strings() \
     |           `- note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1709 |     OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
1710 |                      | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
/host/spi-builder-workspace/Sources/TLS/Context.swift:23:9: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
    |         `- error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 24 |         return true
 25 |     }()
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1144 |
1145 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1146 | #  define OPENSSL_add_all_algorithms_conf() \
     |           `- note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1147 |     OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
1148 |                         | OPENSSL_INIT_ADD_ALL_DIGESTS \
/host/spi-builder-workspace/Sources/TLS/Context.swift:50:22: error: cannot find 'SSLv23_server_method' in scope
 48 |         switch mode {
 49 |         case .server:
 50 |             method = SSLv23_server_method()
    |                      `- error: cannot find 'SSLv23_server_method' in scope
 51 |         case .client:
 52 |             method = SSLv23_client_method()
/host/spi-builder-workspace/Sources/TLS/Context.swift:52:22: error: cannot find 'SSLv23_client_method' in scope
 50 |             method = SSLv23_server_method()
 51 |         case .client:
 52 |             method = SSLv23_client_method()
    |                      `- error: cannot find 'SSLv23_client_method' in scope
 53 |         }
 54 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:63:42: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 61 |         }
 62 |
 63 |         SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, SSL_MODE_AUTO_RETRY, nil)
    |                                          `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 64 |
 65 |         if mode == .client {
/host/spi-builder-workspace/Sources/TLS/Context.swift:68:17: error: cannot find 'SSL_CTRL_OPTIONS' in scope
 66 |             SSL_CTX_ctrl(
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
    |                 `- error: cannot find 'SSL_CTRL_OPTIONS' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:23: error: cannot find 'SSL_OP_NO_SSLv3' in scope
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                       `- error: cannot find 'SSL_OP_NO_SSLv3' in scope
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 416 |      */
 417 | # define SSL_OP_NO_ANTI_REPLAY                           SSL_OP_BIT(24)
 418 | # define SSL_OP_NO_SSLv3                                 SSL_OP_BIT(25)
     |          `- note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 419 | # define SSL_OP_NO_TLSv1                                 SSL_OP_BIT(26)
 420 | # define SSL_OP_NO_TLSv1_2                               SSL_OP_BIT(27)
/host/spi-builder-workspace/Sources/TLS/Context.swift:71:23: error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
    |                       `- error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 72 |                 nil
 73 |             )
/usr/include/openssl/ssl.h:387:10: note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 385 | # define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION   SSL_OP_BIT(16)
 386 |     /* Don't use compression even if supported */
 387 | # define SSL_OP_NO_COMPRESSION                           SSL_OP_BIT(17)
     |          `- note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 388 |     /* Permit unsafe legacy renegotiation */
 389 | # define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION        SSL_OP_BIT(18)
/host/spi-builder-workspace/Sources/TLS/Context.swift:69:17: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
    |                 `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:21: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                     `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
[102/109] Compiling TLS Exports.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[103/109] Compiling TLS InternetSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[104/109] Compiling TLS Certificates.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[105/109] Compiling TLS ClientSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[106/109] Compiling TLS Utilities.swift
[107/109] Compiling TLS ServerSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[108/109] Compiling TLS Socket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[109/109] Compiling TLS WriteableSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'ctls': ignoring declared target(s) 'CTLS' in the system package
warning: you may be able to install ctls using your system-packager:
    apt-get install libssl-dev
warning: you may be able to install ctls using your system-packager:
    apt-get install libssl-dev
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/23] Compiling libc libc.swift
[3/23] Compiling Debugging Debuggable.swift
[4/23] Emitting module Debugging
[5/24] Emitting module libc
[6/25] Emitting module Bits
[7/25] Compiling Bits Operators.swift
[8/25] Compiling Bits String+BytesConvertible.swift
[11/27] Compiling Bits Bytes+Percent.swift
[12/27] Compiling Bits BytesConvertible.swift
[13/27] Compiling Bits Bytes+Base64.swift
[14/27] Compiling Bits Bytes+Hex.swift
[15/27] Compiling Bits Byte+ControlCharacters.swift
[16/27] Compiling Bits Byte+Convenience.swift
[17/27] Compiling Bits Byte+PatternMatching.swift
[18/27] Compiling Bits Data+BytesConvertible.swift
[19/27] Compiling Bits HexEncoder.swift
[20/27] Compiling Bits Byte+Random.swift
[21/27] Compiling Bits Byte+UTF8Numbers.swift
[22/27] Compiling Bits ByteSequence+Conversions.swift
[23/27] Compiling Bits UnsignedInteger+BytesConvertible.swift
[24/27] Compiling Bits UnsignedInteger+Shifting.swift
[25/27] Compiling Bits Aliases.swift
[26/27] Compiling Bits Base64Encoder.swift
[27/27] Compiling Bits Byte+Alphabet.swift
[29/50] Compiling Core Collection+Safe.swift
[30/50] Compiling Core DataFile.swift
[31/50] Compiling Core Dispatch.swift
[32/52] Compiling Core Lock.swift
[33/52] Compiling Core Portal.swift
[34/52] Compiling Core RFC1123.swift
[35/52] Compiling Core Result.swift
[36/52] Compiling Core Semaphore.swift
[37/52] Compiling Core Sequence.swift
[38/52] Compiling Core Array.swift
[39/52] Compiling Core Bits.swift
[40/52] Compiling Core Cache.swift
[41/52] Compiling Core String.swift
[42/52] Compiling Core WorkingDirectory.swift
[43/52] Compiling Core DispatchTime+Utilities.swift
[44/52] Compiling Core EmptyInitializable.swift
[45/52] Compiling Core Exports.swift
[46/52] Emitting module Core
[47/52] Compiling Core Extendable.swift
[48/52] Compiling Core FileProtocol.swift
[49/52] Compiling Core Int+Hex.swift
[50/52] Compiling Core StaticDataBuffer.swift
[51/52] Compiling Core String+CaseInsensitiveCompare.swift
[52/52] Compiling Core String+Polymorphic.swift
[54/63] Compiling Transport Stream.swift
[55/63] Compiling Transport StreamError.swift
[56/64] Compiling Transport WriteableStream.swift
[57/64] Compiling Transport FoundationStream.swift
[58/64] Compiling Transport ReadableStream.swift
[59/64] Compiling Transport ServerStream.swift
[60/64] Compiling Transport Exports.swift
[61/64] Compiling Transport ClientStream.swift
[62/64] Emitting module Transport
[63/64] Compiling Transport InternetStream.swift
[64/64] Compiling Transport Port.swift
[66/86] Emitting module Sockets
[67/88] Compiling Sockets Descriptor.swift
[68/88] Compiling Sockets InternetSocket.swift
[69/88] Compiling Sockets Pipe.swift
[70/88] Compiling Sockets SocketOptions.swift
[71/88] Compiling Sockets TCPEstablishedSocket.swift
[72/88] Compiling Sockets TCPInternetSocket.swift
[73/88] Compiling Sockets Conversions.swift
[74/88] Compiling Sockets Error.swift
[75/88] Compiling Sockets FDSet.swift
[76/88] Compiling Sockets RawSocket.swift
[77/88] Compiling Sockets Select.swift
[78/88] Compiling Sockets Socket.swift
[79/88] Compiling Sockets TCPReadableSocket.swift
[80/88] Compiling Sockets TCPSocket.swift
[81/88] Compiling Sockets Types.swift
[82/88] Compiling Sockets Exports.swift
[83/88] Compiling Sockets Config.swift
[84/88] Compiling Sockets Address+C.swift
[85/88] Compiling Sockets Address.swift
[86/88] Compiling Sockets Buffer.swift
[87/88] Compiling Sockets TCPWriteableSocket.swift
[88/88] Compiling Sockets UDPSocket.swift
[90/101] Compiling TLS Socket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[91/101] Compiling TLS Exports.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[92/101] Compiling TLS InternetSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[93/101] Compiling TLS Utilities.swift
[94/101] Compiling TLS ServerSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[95/101] Compiling TLS Mode.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[96/101] Compiling TLS ReadableSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
error: emit-module command failed with exit code 1 (use -v to see invocation)
[97/102] Emitting module TLS
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:6:42: error: cannot find type 'SSL_METHOD' in scope
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
    |                                          `- error: cannot find type 'SSL_METHOD' in scope
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
  8 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
/host/spi-builder-workspace/Sources/TLS/Context.swift:20:9: error: cannot find 'SSL_library_init' in scope
 18 |     /// https://stackoverflow.com/a/37887068/2611971
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
    |         `- error: cannot find 'SSL_library_init' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
/usr/include/openssl/ssl.h:2095:11: note: macro 'SSL_library_init' unavailable: function like macros not supported
2093 |
2094 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
2095 | #  define SSL_library_init() OPENSSL_init_ssl(0, NULL)
     |           `- note: macro 'SSL_library_init' unavailable: function like macros not supported
2096 | # endif
2097 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:21:9: error: cannot find 'SSL_load_error_strings' in scope
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
 21 |         SSL_load_error_strings()
    |         `- error: cannot find 'SSL_load_error_strings' in scope
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
/usr/include/openssl/ssl.h:1708:11: note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1706 |
1707 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1708 | #  define SSL_load_error_strings() \
     |           `- note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1709 |     OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
1710 |                      | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
/host/spi-builder-workspace/Sources/TLS/Context.swift:23:9: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
    |         `- error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 24 |         return true
 25 |     }()
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1144 |
1145 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1146 | #  define OPENSSL_add_all_algorithms_conf() \
     |           `- note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1147 |     OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
1148 |                         | OPENSSL_INIT_ADD_ALL_DIGESTS \
[98/102] Compiling TLS Context.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:6:42: error: cannot find type 'SSL_METHOD' in scope
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
    |                                          `- error: cannot find type 'SSL_METHOD' in scope
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
  8 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
/host/spi-builder-workspace/Sources/TLS/Context.swift:20:9: error: cannot find 'SSL_library_init' in scope
 18 |     /// https://stackoverflow.com/a/37887068/2611971
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
    |         `- error: cannot find 'SSL_library_init' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
/usr/include/openssl/ssl.h:2095:11: note: macro 'SSL_library_init' unavailable: function like macros not supported
2093 |
2094 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
2095 | #  define SSL_library_init() OPENSSL_init_ssl(0, NULL)
     |           `- note: macro 'SSL_library_init' unavailable: function like macros not supported
2096 | # endif
2097 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:21:9: error: cannot find 'SSL_load_error_strings' in scope
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
 21 |         SSL_load_error_strings()
    |         `- error: cannot find 'SSL_load_error_strings' in scope
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
/usr/include/openssl/ssl.h:1708:11: note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1706 |
1707 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1708 | #  define SSL_load_error_strings() \
     |           `- note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1709 |     OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
1710 |                      | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
/host/spi-builder-workspace/Sources/TLS/Context.swift:23:9: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
    |         `- error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 24 |         return true
 25 |     }()
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1144 |
1145 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1146 | #  define OPENSSL_add_all_algorithms_conf() \
     |           `- note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1147 |     OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
1148 |                         | OPENSSL_INIT_ADD_ALL_DIGESTS \
/host/spi-builder-workspace/Sources/TLS/Context.swift:50:22: error: cannot find 'SSLv23_server_method' in scope
 48 |         switch mode {
 49 |         case .server:
 50 |             method = SSLv23_server_method()
    |                      `- error: cannot find 'SSLv23_server_method' in scope
 51 |         case .client:
 52 |             method = SSLv23_client_method()
/host/spi-builder-workspace/Sources/TLS/Context.swift:52:22: error: cannot find 'SSLv23_client_method' in scope
 50 |             method = SSLv23_server_method()
 51 |         case .client:
 52 |             method = SSLv23_client_method()
    |                      `- error: cannot find 'SSLv23_client_method' in scope
 53 |         }
 54 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:63:42: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 61 |         }
 62 |
 63 |         SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, SSL_MODE_AUTO_RETRY, nil)
    |                                          `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 64 |
 65 |         if mode == .client {
/host/spi-builder-workspace/Sources/TLS/Context.swift:68:17: error: cannot find 'SSL_CTRL_OPTIONS' in scope
 66 |             SSL_CTX_ctrl(
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
    |                 `- error: cannot find 'SSL_CTRL_OPTIONS' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:23: error: cannot find 'SSL_OP_NO_SSLv3' in scope
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                       `- error: cannot find 'SSL_OP_NO_SSLv3' in scope
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 416 |      */
 417 | # define SSL_OP_NO_ANTI_REPLAY                           SSL_OP_BIT(24)
 418 | # define SSL_OP_NO_SSLv3                                 SSL_OP_BIT(25)
     |          `- note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 419 | # define SSL_OP_NO_TLSv1                                 SSL_OP_BIT(26)
 420 | # define SSL_OP_NO_TLSv1_2                               SSL_OP_BIT(27)
/host/spi-builder-workspace/Sources/TLS/Context.swift:71:23: error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
    |                       `- error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 72 |                 nil
 73 |             )
/usr/include/openssl/ssl.h:387:10: note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 385 | # define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION   SSL_OP_BIT(16)
 386 |     /* Don't use compression even if supported */
 387 | # define SSL_OP_NO_COMPRESSION                           SSL_OP_BIT(17)
     |          `- note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 388 |     /* Permit unsafe legacy renegotiation */
 389 | # define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION        SSL_OP_BIT(18)
/host/spi-builder-workspace/Sources/TLS/Context.swift:69:17: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
    |                 `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:21: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                     `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
[99/102] Compiling TLS Error.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:6:42: error: cannot find type 'SSL_METHOD' in scope
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
    |                                          `- error: cannot find type 'SSL_METHOD' in scope
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
  8 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
/host/spi-builder-workspace/Sources/TLS/Context.swift:20:9: error: cannot find 'SSL_library_init' in scope
 18 |     /// https://stackoverflow.com/a/37887068/2611971
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
    |         `- error: cannot find 'SSL_library_init' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
/usr/include/openssl/ssl.h:2095:11: note: macro 'SSL_library_init' unavailable: function like macros not supported
2093 |
2094 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
2095 | #  define SSL_library_init() OPENSSL_init_ssl(0, NULL)
     |           `- note: macro 'SSL_library_init' unavailable: function like macros not supported
2096 | # endif
2097 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:21:9: error: cannot find 'SSL_load_error_strings' in scope
 19 |     private static let isGloballyInitialized: Bool = {
 20 |         SSL_library_init()
 21 |         SSL_load_error_strings()
    |         `- error: cannot find 'SSL_load_error_strings' in scope
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
/usr/include/openssl/ssl.h:1708:11: note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1706 |
1707 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1708 | #  define SSL_load_error_strings() \
     |           `- note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1709 |     OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
1710 |                      | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
/host/spi-builder-workspace/Sources/TLS/Context.swift:23:9: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 21 |         SSL_load_error_strings()
 22 |         OPENSSL_config(nil)
 23 |         OPENSSL_add_all_algorithms_conf()
    |         `- error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
 24 |         return true
 25 |     }()
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1144 |
1145 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1146 | #  define OPENSSL_add_all_algorithms_conf() \
     |           `- note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1147 |     OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
1148 |                         | OPENSSL_INIT_ADD_ALL_DIGESTS \
/host/spi-builder-workspace/Sources/TLS/Context.swift:50:22: error: cannot find 'SSLv23_server_method' in scope
 48 |         switch mode {
 49 |         case .server:
 50 |             method = SSLv23_server_method()
    |                      `- error: cannot find 'SSLv23_server_method' in scope
 51 |         case .client:
 52 |             method = SSLv23_client_method()
/host/spi-builder-workspace/Sources/TLS/Context.swift:52:22: error: cannot find 'SSLv23_client_method' in scope
 50 |             method = SSLv23_server_method()
 51 |         case .client:
 52 |             method = SSLv23_client_method()
    |                      `- error: cannot find 'SSLv23_client_method' in scope
 53 |         }
 54 |
/host/spi-builder-workspace/Sources/TLS/Context.swift:63:42: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 61 |         }
 62 |
 63 |         SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, SSL_MODE_AUTO_RETRY, nil)
    |                                          `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
 64 |
 65 |         if mode == .client {
/host/spi-builder-workspace/Sources/TLS/Context.swift:68:17: error: cannot find 'SSL_CTRL_OPTIONS' in scope
 66 |             SSL_CTX_ctrl(
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
    |                 `- error: cannot find 'SSL_CTRL_OPTIONS' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:23: error: cannot find 'SSL_OP_NO_SSLv3' in scope
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                       `- error: cannot find 'SSL_OP_NO_SSLv3' in scope
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 416 |      */
 417 | # define SSL_OP_NO_ANTI_REPLAY                           SSL_OP_BIT(24)
 418 | # define SSL_OP_NO_SSLv3                                 SSL_OP_BIT(25)
     |          `- note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
 419 | # define SSL_OP_NO_TLSv1                                 SSL_OP_BIT(26)
 420 | # define SSL_OP_NO_TLSv1_2                               SSL_OP_BIT(27)
/host/spi-builder-workspace/Sources/TLS/Context.swift:71:23: error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
    |                       `- error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
 72 |                 nil
 73 |             )
/usr/include/openssl/ssl.h:387:10: note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 385 | # define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION   SSL_OP_BIT(16)
 386 |     /* Don't use compression even if supported */
 387 | # define SSL_OP_NO_COMPRESSION                           SSL_OP_BIT(17)
     |          `- note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
 388 |     /* Permit unsafe legacy renegotiation */
 389 | # define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION        SSL_OP_BIT(18)
/host/spi-builder-workspace/Sources/TLS/Context.swift:69:17: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 67 |                 ctx,
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
    |                 `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 70 |                     | SSL_OP_NO_SSLv3
 71 |                     | SSL_OP_NO_COMPRESSION,
/host/spi-builder-workspace/Sources/TLS/Context.swift:70:21: error: cannot convert value of type 'Int32' to expected argument type 'Int'
 68 |                 SSL_CTRL_OPTIONS,
 69 |                 SSL_OP_NO_SSLv2
 70 |                     | SSL_OP_NO_SSLv3
    |                     `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
 71 |                     | SSL_OP_NO_COMPRESSION,
 72 |                 nil
[100/102] Compiling TLS Certificates.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[101/102] Compiling TLS ClientSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:5:50: error: cannot find type 'SSL_CTX' in scope
  3 | import Dispatch
  4 |
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
    |                                                  `- error: cannot find type 'SSL_CTX' in scope
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
[102/102] Compiling TLS WriteableSocket.swift
/host/spi-builder-workspace/Sources/TLS/Context.swift:7:46: error: cannot find type 'SSL' in scope
  5 | public typealias CContext = UnsafeMutablePointer<SSL_CTX>
  6 | public typealias CMethod = UnsafePointer<SSL_METHOD>
  7 | public typealias CSSL = UnsafeMutablePointer<SSL>
    |                                              `- error: cannot find type 'SSL' in scope
  8 |
  9 | /// An SSL context that contains the
BUILD FAILURE 6.1 linux