Build Information
Failed to build SecureSockets with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Balancingrock/SecureSockets.git
Reference: master
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/Balancingrock/SecureSockets
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 539e4b0 Update Installing OpenSSL.md
Cloned https://github.com/Balancingrock/SecureSockets.git
Revision (git rev-parse @):
539e4b0d49ac885df274ec861797752f20c04b96
SUCCESS checkout https://github.com/Balancingrock/SecureSockets.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/Balancingrock/SecureSockets.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Balancingrock/SwifterSockets
[1/1271] Fetching swiftersockets
Fetched https://github.com/Balancingrock/SwifterSockets from cache (0.43s)
Computing version for https://github.com/Balancingrock/SwifterSockets
Computed https://github.com/Balancingrock/SwifterSockets at 1.1.3 (0.45s)
Creating working copy for https://github.com/Balancingrock/SwifterSockets
Working copy of https://github.com/Balancingrock/SwifterSockets resolved at 1.1.3
Building for debugging...
[0/4] Write sources
[2/4] Write swift-version-24593BA9C3E375BF.txt
[3/4] Compiling CopensslGlue glue.c
[5/20] Emitting module SwifterSockets
[6/22] Compiling SwifterSockets TransmitterProtocol.swift
[7/22] Compiling SwifterSockets WaitForSelect.swift
[8/22] Compiling SwifterSockets TipInterface.swift
[9/22] Compiling SwifterSockets TipReceiverLoop.swift
[10/22] Compiling SwifterSockets SetupTipServer.swift
[11/22] Compiling SwifterSockets SwifterSocketsResult.swift
[12/22] Compiling SwifterSockets FileDescriptorMacros.swift
[13/22] Compiling SwifterSockets InterfaceAccess.swift
[14/22] Compiling SwifterSockets ReceiverProtocol.swift
[15/22] Compiling SwifterSockets ServerProtocol.swift
[16/22] Compiling SwifterSockets SwifterSocketsUtils.swift
[17/22] Compiling SwifterSockets TipAccept.swift
[18/22] Compiling SwifterSockets ConnectToTipServer.swift
[19/22] Compiling SwifterSockets Connection.swift
[20/22] Compiling SwifterSockets ConnectionPool.swift
[21/22] Compiling SwifterSockets TipServer.swift
[22/22] Compiling SwifterSockets TipTransfer.swift
[24/37] Compiling SecureSockets Ssl.swift
[25/37] Compiling SecureSockets SslAccept.swift
[26/38] Compiling SecureSockets SslTransfer.swift
[27/38] Compiling SecureSockets SslError.swift
[28/38] Compiling SecureSockets SslInterface.swift
[29/38] Compiling SecureSockets SslReceiverLoop.swift
[30/38] Compiling SecureSockets SslServer.swift
[31/38] Compiling SecureSockets X509.swift
/host/spi-builder-workspace/Sources/SecureSockets/X509.swift:121:17: error: cannot find 'sk_GENERAL_NAMES_num' in scope
let count = sk_GENERAL_NAMES_num(OpaquePointer(names))
^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/x509v3.h:261:9: note: macro 'sk_GENERAL_NAMES_num' unavailable: function like macros not supported
#define sk_GENERAL_NAMES_num(sk) OPENSSL_sk_num(ossl_check_const_GENERAL_NAMES_sk_type(sk))
^
/host/spi-builder-workspace/Sources/SecureSockets/X509.swift:128:21: error: cannot find 'sk_GENERAL_NAME_value' in scope
let aName = sk_GENERAL_NAME_value(OpaquePointer(names), i)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/x509v3.h:229:9: note: macro 'sk_GENERAL_NAME_value' unavailable: function like macros not supported
#define sk_GENERAL_NAME_value(sk, idx) ((GENERAL_NAME *)OPENSSL_sk_value(ossl_check_const_GENERAL_NAME_sk_type(sk), (idx)))
^
/host/spi-builder-workspace/Sources/SecureSockets/X509.swift:612:16: error: cannot find 'SSL_get_peer_certificate' in scope
optr = SSL_get_peer_certificate(ssl.optr) // up_ref is implicit
^~~~~~~~~~~~~~~~~~~~~~~~
[32/38] Compiling SecureSockets Pkey.swift
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:240:25: warning: 'RSA_new()' is deprecated
guard let rsa = RSA_new() else {
^
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:248:12: warning: 'RSA_generate_key_ex' is deprecated
if RSA_generate_key_ex(rsa, length, exp, nil) == 0 {
^
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:255:12: warning: 'EVP_PKEY_assign' is deprecated
if EVP_PKEY_assign(optr, EVP_PKEY_RSA, UnsafeMutablePointer(rsa)) == 0 {
^
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:259:21: warning: 'RSA_free' is deprecated
defer { RSA_free(rsa) }
^
[33/38] Compiling SecureSockets SecureSocketsResult.swift
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:240:25: warning: 'RSA_new()' is deprecated
guard let rsa = RSA_new() else {
^
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:248:12: warning: 'RSA_generate_key_ex' is deprecated
if RSA_generate_key_ex(rsa, length, exp, nil) == 0 {
^
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:255:12: warning: 'EVP_PKEY_assign' is deprecated
if EVP_PKEY_assign(optr, EVP_PKEY_RSA, UnsafeMutablePointer(rsa)) == 0 {
^
/host/spi-builder-workspace/Sources/SecureSockets/Pkey.swift:259:21: warning: 'RSA_free' is deprecated
defer { RSA_free(rsa) }
^
[34/38] Compiling SecureSockets CertificateAndPrivateKeyFiles.swift
[35/38] Compiling SecureSockets ConnectToSslServer.swift
[36/38] Emitting module SecureSockets
[37/38] Compiling SecureSockets Ctx.swift
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:35: error: cannot find 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:432:10: note: macro 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' unavailable: structure not supported
# define SSL_OP_CRYPTOPRO_TLSEXT_BUG SSL_OP_BIT(31)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:65: error: cannot find 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:370:10: note: macro 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' unavailable: structure not supported
# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:102: error: cannot find 'SSL_OP_LEGACY_SERVER_CONNECT' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:353:10: note: macro 'SSL_OP_LEGACY_SERVER_CONNECT' unavailable: structure not supported
# define SSL_OP_LEGACY_SERVER_CONNECT SSL_OP_BIT(2)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:133: error: cannot find 'SSL_OP_TLSEXT_PADDING' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:356:10: note: macro 'SSL_OP_TLSEXT_PADDING' unavailable: structure not supported
# define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:157: error: cannot find 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:357:10: note: macro 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' unavailable: structure not supported
# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG SSL_OP_BIT(6)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:291:65: error: cannot find 'SSL_OP_NO_SSLv3' in scope
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
# define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:291:82: error: cannot convert value of type 'UInt' to expected argument type 'UInt64'
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^
UInt64( )
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:35: error: cannot find 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:432:10: note: macro 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' unavailable: structure not supported
# define SSL_OP_CRYPTOPRO_TLSEXT_BUG SSL_OP_BIT(31)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:65: error: cannot find 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:370:10: note: macro 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' unavailable: structure not supported
# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:102: error: cannot find 'SSL_OP_LEGACY_SERVER_CONNECT' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:353:10: note: macro 'SSL_OP_LEGACY_SERVER_CONNECT' unavailable: structure not supported
# define SSL_OP_LEGACY_SERVER_CONNECT SSL_OP_BIT(2)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:133: error: cannot find 'SSL_OP_TLSEXT_PADDING' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:356:10: note: macro 'SSL_OP_TLSEXT_PADDING' unavailable: structure not supported
# define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:157: error: cannot find 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:357:10: note: macro 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' unavailable: structure not supported
# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG SSL_OP_BIT(6)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:320:65: error: cannot find 'SSL_OP_NO_SSLv3' in scope
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
# define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:320:82: error: cannot convert value of type 'UInt' to expected argument type 'UInt64'
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^
UInt64( )
[38/38] Compiling SecureSockets FileEncoding.swift
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:35: error: cannot find 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:432:10: note: macro 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' unavailable: structure not supported
# define SSL_OP_CRYPTOPRO_TLSEXT_BUG SSL_OP_BIT(31)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:65: error: cannot find 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:370:10: note: macro 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' unavailable: structure not supported
# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:102: error: cannot find 'SSL_OP_LEGACY_SERVER_CONNECT' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:353:10: note: macro 'SSL_OP_LEGACY_SERVER_CONNECT' unavailable: structure not supported
# define SSL_OP_LEGACY_SERVER_CONNECT SSL_OP_BIT(2)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:133: error: cannot find 'SSL_OP_TLSEXT_PADDING' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:356:10: note: macro 'SSL_OP_TLSEXT_PADDING' unavailable: structure not supported
# define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:157: error: cannot find 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:357:10: note: macro 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' unavailable: structure not supported
# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG SSL_OP_BIT(6)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:291:65: error: cannot find 'SSL_OP_NO_SSLv3' in scope
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
# define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:291:82: error: cannot convert value of type 'UInt' to expected argument type 'UInt64'
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^
UInt64( )
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:35: error: cannot find 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:432:10: note: macro 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' unavailable: structure not supported
# define SSL_OP_CRYPTOPRO_TLSEXT_BUG SSL_OP_BIT(31)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:65: error: cannot find 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:370:10: note: macro 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' unavailable: structure not supported
# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:102: error: cannot find 'SSL_OP_LEGACY_SERVER_CONNECT' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:353:10: note: macro 'SSL_OP_LEGACY_SERVER_CONNECT' unavailable: structure not supported
# define SSL_OP_LEGACY_SERVER_CONNECT SSL_OP_BIT(2)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:133: error: cannot find 'SSL_OP_TLSEXT_PADDING' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:356:10: note: macro 'SSL_OP_TLSEXT_PADDING' unavailable: structure not supported
# define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:157: error: cannot find 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:357:10: note: macro 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' unavailable: structure not supported
# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG SSL_OP_BIT(6)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:320:65: error: cannot find 'SSL_OP_NO_SSLv3' in scope
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
# define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:320:82: error: cannot convert value of type 'UInt' to expected argument type 'UInt64'
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^
UInt64( )
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling SecureSockets FileEncoding.swift
[3/8] Compiling SecureSockets X509.swift
/host/spi-builder-workspace/Sources/SecureSockets/X509.swift:121:17: error: cannot find 'sk_GENERAL_NAMES_num' in scope
let count = sk_GENERAL_NAMES_num(OpaquePointer(names))
^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/x509v3.h:261:9: note: macro 'sk_GENERAL_NAMES_num' unavailable: function like macros not supported
#define sk_GENERAL_NAMES_num(sk) OPENSSL_sk_num(ossl_check_const_GENERAL_NAMES_sk_type(sk))
^
/host/spi-builder-workspace/Sources/SecureSockets/X509.swift:128:21: error: cannot find 'sk_GENERAL_NAME_value' in scope
let aName = sk_GENERAL_NAME_value(OpaquePointer(names), i)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/x509v3.h:229:9: note: macro 'sk_GENERAL_NAME_value' unavailable: function like macros not supported
#define sk_GENERAL_NAME_value(sk, idx) ((GENERAL_NAME *)OPENSSL_sk_value(ossl_check_const_GENERAL_NAME_sk_type(sk), (idx)))
^
/host/spi-builder-workspace/Sources/SecureSockets/X509.swift:612:16: error: cannot find 'SSL_get_peer_certificate' in scope
optr = SSL_get_peer_certificate(ssl.optr) // up_ref is implicit
^~~~~~~~~~~~~~~~~~~~~~~~
[4/8] Compiling SecureSockets ConnectToSslServer.swift
[5/8] Compiling SecureSockets CertificateAndPrivateKeyFiles.swift
[6/8] Compiling SecureSockets SslServer.swift
[7/8] Emitting module SecureSockets
[8/8] Compiling SecureSockets Ctx.swift
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:35: error: cannot find 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:432:10: note: macro 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' unavailable: structure not supported
# define SSL_OP_CRYPTOPRO_TLSEXT_BUG SSL_OP_BIT(31)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:65: error: cannot find 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:370:10: note: macro 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' unavailable: structure not supported
# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:102: error: cannot find 'SSL_OP_LEGACY_SERVER_CONNECT' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:353:10: note: macro 'SSL_OP_LEGACY_SERVER_CONNECT' unavailable: structure not supported
# define SSL_OP_LEGACY_SERVER_CONNECT SSL_OP_BIT(2)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:133: error: cannot find 'SSL_OP_TLSEXT_PADDING' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:356:10: note: macro 'SSL_OP_TLSEXT_PADDING' unavailable: structure not supported
# define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:289:157: error: cannot find 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:357:10: note: macro 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' unavailable: structure not supported
# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG SSL_OP_BIT(6)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:291:65: error: cannot find 'SSL_OP_NO_SSLv3' in scope
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
# define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:291:82: error: cannot convert value of type 'UInt' to expected argument type 'UInt64'
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^
UInt64( )
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:35: error: cannot find 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:432:10: note: macro 'SSL_OP_CRYPTOPRO_TLSEXT_BUG' unavailable: structure not supported
# define SSL_OP_CRYPTOPRO_TLSEXT_BUG SSL_OP_BIT(31)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:65: error: cannot find 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:370:10: note: macro 'SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS' unavailable: structure not supported
# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:102: error: cannot find 'SSL_OP_LEGACY_SERVER_CONNECT' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:353:10: note: macro 'SSL_OP_LEGACY_SERVER_CONNECT' unavailable: structure not supported
# define SSL_OP_LEGACY_SERVER_CONNECT SSL_OP_BIT(2)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:133: error: cannot find 'SSL_OP_TLSEXT_PADDING' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:356:10: note: macro 'SSL_OP_TLSEXT_PADDING' unavailable: structure not supported
# define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:318:157: error: cannot find 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' in scope
let sslOpAll: UInt = UInt(SSL_OP_CRYPTOPRO_TLSEXT_BUG + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + SSL_OP_LEGACY_SERVER_CONNECT + SSL_OP_TLSEXT_PADDING + SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:357:10: note: macro 'SSL_OP_SAFARI_ECDHE_ECDSA_BUG' unavailable: structure not supported
# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG SSL_OP_BIT(6)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:320:65: error: cannot find 'SSL_OP_NO_SSLv3' in scope
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
# define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
^
/host/spi-builder-workspace/Sources/SecureSockets/Ctx.swift:320:82: error: cannot convert value of type 'UInt' to expected argument type 'UInt64'
SSL_CTX_set_options(optr, (UInt(SSL_OP_NO_SSLv2) + UInt(SSL_OP_NO_SSLv3) + sslOpAll))
^
UInt64( )
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2