Hi!
i'm currently trying to compile my executable package on linux. Unfortunately i can't get it to work.
Did I something wrong or is this a bug?
I compile with
swift build -c release --product Knoggl-Bot -Xswiftc -static-executable
My Package.swift
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Knoggl-Bot",
dependencies: [
.package(url: "https://github.com/kylebrowning/APNSwift.git", .upToNextMinor(from: "3.2.0")),
],
targets: [
.executableTarget(
name: "Knoggl-Bot",
dependencies: [
.product(name: "APNSwift", package: "apnswift")
]
),
.testTarget(
name: "Knoggl-BotTests",
dependencies: ["Knoggl-Bot", "APNSwift"]),
]
)
The output with -v
lsb_release -r
/usr/share/swift/bin/swiftc -print-target-info
/usr/share/swift/bin/swiftc -print-target-info
/usr/share/swift/bin/swift-frontend -frontend -print-target-info
/usr/share/swift/bin/swift-frontend -frontend -print-target-info
/usr/share/swift/bin/swift-frontend -frontend -emit-supported-features /tmp/TemporaryDirectory.f9XZQe/dummyInput-1.swift
/usr/share/swift/bin/swiftc -lstdc++ -g -L /home/julian/Schreibtisch/Knoggl-Bot/.build/x86_64-unknown-linux-gnu/release -o /home/julian/Schreibtisch/Knoggl-Bot/.build/x86_64-unknown-linux-gnu/release/Knoggl-Bot -module-name Knoggl_Bot -emit-executable -Xlinker --defsym -Xlinker main=Knoggl_Bot_main -Xlinker '-rpath=$ORIGIN' @/home/julian/Schreibtisch/Knoggl-Bot/.build/x86_64-unknown-linux-gnu/release/Knoggl-Bot.product/Objects.LinkFileList -target x86_64-unknown-linux-gnu -static-executable -L /usr/share/swift/lib
error: link command failed with exit code 1 (use -v to see invocation)
clang-10: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/bio/socket_helper.c:55: Warnung: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
.build/checkouts/jwt-kit/Sources/CJWTKitBoringSSL/crypto/bio/socket_helper.c:55: Warnung: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.c:55: Warnung: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/julian/Schreibtisch/Knoggl-Bot/.build/checkouts/swift-nio/Sources/NIOCore/SocketAddresses.swift:430: Warnung: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/julian/Schreibtisch/Knoggl-Bot/.build/checkouts/swift-nio/Sources/NIOPosix/GetaddrinfoResolver.swift:159: Warnung: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libFoundation.a(FileManager.swift.o):FileManager.swift.o:function $s10Foundation11FileManagerC17_attributesOfItem6atPath26includingPrivateAttributesSDyAA0B12AttributeKeyVypGSS_SbtKF: Warnung: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libFoundation.a(FileManager.swift.o):FileManager.swift.o:function $s10Foundation11FileManagerC17_attributesOfItem6atPath26includingPrivateAttributesSDyAA0B12AttributeKeyVypGSS_SbtKF: Warnung: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libFoundation.a(Host.swift.o):Host.swift.o:function $s10Foundation4HostC8_resolveyyF: Warnung: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyUserName: Warnung: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyUserName: Warnung: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyFullUserName: Warnung: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function CFCopyFullUserName: Warnung: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function _CFCopyHomeDirURLForUser: Warnung: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFPlatform.c.o):CFPlatform.c:function _CFCopyHomeDirURLForUser: Warnung: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Binary.c.o):CFBundle_Binary.c:function _CFBundleDlfcnCheckLoaded: Warnung: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Binary.c.o):CFBundle_Binary.c:function _CFBundleDlfcnLoadBundle: Warnung: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Binary.c.o):CFBundle_Binary.c:function _CFBundleDlfcnLoadFramework: Warnung: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libCoreFoundation.a(CFBundle_Main.c.o):CFBundle_Main.c:function CFBundleGetMainBundle: Warnung: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(MultiHandle.swift.o):MultiHandle.swift.o:function $s20FoundationNetworking10URLSessionC12_MultiHandleC03rawE0Svvpfi: Fehler: undefined reference to 'CFURLSessionMultiHandleInit'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(MultiHandle.swift.o):MultiHandle.swift.o:function $s20FoundationNetworking15_BodyFileSourceC13readNextChunk33_4778345EAE5363022BCB039E4AF7D195LLyyF: Fehler: undefined reference to 'CFURLSessionMaxWriteSize'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(BodySource.swift.o):BodySource.swift.o:function $s20FoundationNetworking15_BodyFileSourceC7fileURL9workQueue20dataAvailableHandlerAC0A00G0V_8Dispatch0mI0CyyctcfcTf4gggn_n: Fehler: undefined reference to 'CFURLSessionMaxWriteSize'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(HTTPURLProtocol.swift.o):HTTPURLProtocol.swift.o:function $s20FoundationNetworking15userAgentString33_BC65984C210DBF29197DDF08E9690DF1LL_WZ: Fehler: undefined reference to 'CFURLSessionCurlVersionInfo'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC03rawD0Svvpfi: Fehler: undefined reference to 'CFURLSessionEasyHandleInit'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC11errorBufferSays5UInt8VGvg: Fehler: undefined reference to 'CFURLSessionEasyErrorSize'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC8delegateAcA01_cD8Delegate_p_tcfC: Fehler: undefined reference to 'CFURLSessionEasyHandleInit'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC8delegateAcA01_cD8Delegate_p_tcfc: Fehler: undefined reference to 'CFURLSessionEasyHandleInit'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionWRITEDATA'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_ptr'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionEasyCodeOK'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionWRITEFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_wc'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionREADDATA'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_ptr'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionREADFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_wc'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionHEADERDATA'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_ptr'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionHEADERFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_wc'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionSOCKOPTDATA'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_ptr'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionSOCKOPTFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_sc'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionSEEKDATA'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionSEEKFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_seek'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionNOPROGRESS'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_long'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionPROGRESSDATA'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSessionOptionXFERINFOFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_tc'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleCfd: Fehler: undefined reference to 'CFURLSessionEasyHandleDeinit'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleCfD: Fehler: undefined reference to 'CFURLSessionEasyHandleDeinit'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13verboseModeOnySb_tF: Fehler: undefined reference to 'CFURLSessionOptionVERBOSE'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo20CFURLSessionEasyCodeV20FoundationNetworkingE7asErroryyKF: Fehler: undefined reference to 'CFURLSessionEasyCodeOK'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13debugOutputOn4taskySb_AA14URLSessionTaskCtF: Fehler: undefined reference to 'CFURLSessionOptionDEBUGDATA'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13debugOutputOn4taskySb_AA14URLSessionTaskCtF: Fehler: undefined reference to 'CFURLSessionEasyCodeOK'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13debugOutputOn4taskySb_AA14URLSessionTaskCtF: Fehler: undefined reference to 'CFURLSessionOptionDEBUGFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13debugOutputOn4taskySb_AA14URLSessionTaskCtF: Fehler: undefined reference to 'CFURLSession_easy_setopt_dc'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13debugOutputOn4taskySb_AA14URLSessionTaskCtF: Fehler: undefined reference to 'CFURLSessionOptionDEBUGFUNCTION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set23passHeadersToDataStreamySb_tF: Fehler: undefined reference to 'CFURLSessionOptionHEADER'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set14followLocationySb_tF: Fehler: undefined reference to 'CFURLSessionOptionFOLLOWLOCATION'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set16progressMeterOffySb_tF: Fehler: undefined reference to 'CFURLSessionOptionNOPROGRESS'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set21skipAllSignalHandlingySb_tF: Fehler: undefined reference to 'CFURLSessionOptionNOSIGNAL'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set11errorBufferySrys5UInt8VGSg_tF: Fehler: undefined reference to 'CFURLSessionOptionERRORBUFFER'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set19failOnHTTPErrorCodeySb_tF: Fehler: undefined reference to 'CFURLSessionOptionFAILONERROR'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set3urly0A03URLV_tF: Fehler: undefined reference to 'CFURLSessionOptionURL'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set3urly0A03URLV_tF: Fehler: undefined reference to 'CFURLSessionOptionURL'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC33setAllowedProtocolsToHTTPAndHTTPSyyF: Fehler: undefined reference to 'CFURLSessionProtocolHTTP'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC33setAllowedProtocolsToHTTPAndHTTPSyyF: Fehler: undefined reference to 'CFURLSessionProtocolHTTPS'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC33setAllowedProtocolsToHTTPAndHTTPSyyF: Fehler: undefined reference to 'CFURLSessionOptionPROTOCOLS'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC33setAllowedProtocolsToHTTPAndHTTPSyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_long'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC33setAllowedProtocolsToHTTPAndHTTPSyyF: Fehler: undefined reference to 'CFURLSessionOptionREDIR_PROTOCOLS'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC33setAllowedProtocolsToHTTPAndHTTPSyyF: Fehler: undefined reference to 'CFURLSession_easy_setopt_long'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set26preferredReceiveBufferSizeySi_tF: Fehler: undefined reference to 'CFURLSessionOptionBUFFERSIZE'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set26preferredReceiveBufferSizeySi_tF: Fehler: undefined reference to 'CFURLSessionMaxWriteSize'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set26preferredReceiveBufferSizeySi_tF: Fehler: undefined reference to 'CFURLSession_easy_setopt_long'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13customHeadersySaySSG_tF: Fehler: undefined reference to 'CFURLSessionOptionHTTPHEADER'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set26automaticBodyDecompressionySb_tF: Fehler: undefined reference to 'CFURLSessionOptionACCEPT_ENCODING'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set26automaticBodyDecompressionySb_tF: Fehler: undefined reference to 'CFURLSessionOptionHTTP_CONTENT_DECODING'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set26automaticBodyDecompressionySb_tF: Fehler: undefined reference to 'CFURLSessionOptionACCEPT_ENCODING'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set26automaticBodyDecompressionySb_tF: Fehler: undefined reference to 'CFURLSessionOptionHTTP_CONTENT_DECODING'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13requestMethodySS_tF: Fehler: undefined reference to 'CFURLSessionOptionCUSTOMREQUEST'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set13requestMethodySS_tF: Fehler: undefined reference to 'CFURLSessionOptionCUSTOMREQUEST'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set6noBodyySb_tF: Fehler: undefined reference to 'CFURLSessionOptionNOBODY'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set6uploadySb_tF: Fehler: undefined reference to 'CFURLSessionOptionUPLOAD'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set17requestBodyLengthys5Int64V_tF: Fehler: undefined reference to 'CFURLSessionOptionINFILESIZE_LARGE'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set17requestBodyLengthys5Int64V_tF: Fehler: undefined reference to 'CFURLSession_easy_setopt_int64'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC3set7timeoutySi_tF: Fehler: undefined reference to 'CFURLSessionOptionTIMEOUT'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC23getTimeoutIntervalSpentSdyF: Fehler: undefined reference to 'CFURLSessionInfoTOTAL_TIME'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC23getTimeoutIntervalSpentSdyF: Fehler: undefined reference to 'CFURLSession_easy_getinfo_double'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo16CFURLSessionInfoV20FoundationNetworkingE11debugHeaderSSvg: Fehler: undefined reference to 'CFURLSessionInfoTEXT'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo16CFURLSessionInfoV20FoundationNetworkingE11debugHeaderSSvg: Fehler: undefined reference to 'CFURLSessionInfoHEADER_OUT'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo16CFURLSessionInfoV20FoundationNetworkingE11debugHeaderSSvg: Fehler: undefined reference to 'CFURLSessionInfoDATA_OUT'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo16CFURLSessionInfoV20FoundationNetworkingE11debugHeaderSSvg: Fehler: undefined reference to 'CFURLSessionInfoSSL_DATA_OUT'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo16CFURLSessionInfoV20FoundationNetworkingE11debugHeaderSSvg: Fehler: undefined reference to 'CFURLSessionInfoHEADER_IN'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo16CFURLSessionInfoV20FoundationNetworkingE11debugHeaderSSvg: Fehler: undefined reference to 'CFURLSessionInfoDATA_IN'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $sSo16CFURLSessionInfoV20FoundationNetworkingE11debugHeaderSSvg: Fehler: undefined reference to 'CFURLSessionInfoSSL_DATA_IN'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC11_PauseStateV03setF02onyAC_tF: Fehler: undefined reference to 'CFURLSessionEasyHandleSetPauseState'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC19connectFailureErrnoSivg: Fehler: undefined reference to 'CFURLSessionInfoOS_ERRNO'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC19connectFailureErrnoSivg: Fehler: undefined reference to 'CFURLSession_easy_getinfo_long'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC11redirectURL0A00F0VSgvg: Fehler: undefined reference to 'CFURLSessionInfoREDIRECT_URL'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC11redirectURL0A00F0VSgvg: Fehler: undefined reference to 'CFURLSession_easy_getinfo_charp'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFSiSpys4Int8VG_S2iSvSgtcfU_: Fehler: undefined reference to 'CFURLSessionWriteFuncPause'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFSiSpys4Int8VG_S2iSvSgtcfU0_: Fehler: undefined reference to 'CFURLSessionReadFuncPause'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFSiSpys4Int8VG_S2iSvSgtcfU0_: Fehler: undefined reference to 'CFURLSessionReadFuncAbort'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFSiSpys4Int8VG_S2iSvSgtcfU1_: Fehler: undefined reference to 'CFURLSessionInfoCONTENT_LENGTH_DOWNLOAD'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFSiSpys4Int8VG_S2iSvSgtcfU1_: Fehler: undefined reference to 'CFURLSession_easy_getinfo_double'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFSiSpys4Int8VG_S2iSvSgtcfU1_: Fehler: undefined reference to 'CFURLSessionWriteFuncPause'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFs5Int32VSvSg_s5Int64VAGtcfU3_: Fehler: undefined reference to 'CFURLSessionSeekCantSeek'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function $s20FoundationNetworking11_EasyHandleC14setupCallbacks33_D9E5C2617EDF43EF06D31AE9AD581FE0LLyyFs5Int32VSvSg_s5Int64VAGtcfU3_: Fehler: undefined reference to 'CFURLSessionSeekFail'
/usr/share/swift/lib/swift_static/linux/libFoundationNetworking.a(EasyHandle.swift.o):EasyHandle.swift.o:function
$s20FoundationNetworking11_EasyHandleC3set13requestMethodySS_tFySPys4Int8VGXEfU_TA: Fehler: undefined reference to 'CFURLSessionOptionCUSTOMREQUEST'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
Schreibtisch = Desktop
Fehler = Error
Warnung = Warning
When compiling with
swift build
everything works as expected
Thank you for your help!