apple / swift-crypto

Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.
https://apple.github.io/swift-crypto
Apache License 2.0
1.48k stars 166 forks source link

missing symbols needed for SPM #138

Closed compnerd closed 1 year ago

compnerd commented 1 year ago
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_REQUEST_new referenced in function $s25PackageCollectionsSigning17CertificatePolicyPAAE6verify9certChain11anchorCerts0F4Date10httpClient18observabilityScope13callbackQueue0P0ySayAA20BoringSSLCertificateCG_ANSg10Foundation0K0VSg6Basics10HTTPClientVSgAT013ObservabilityO0C8Dispatch0xQ0Cys6ResultOyyts5Error_pGctFsA3__pSgyXEfU0_s5Int32VA7__s13OpaquePointerVSgtcfU2_
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_request_add0_id referenced in function $s25PackageCollectionsSigning17CertificatePolicyPAAE6verify9certChain11anchorCerts0F4Date10httpClient18observabilityScope13callbackQueue0P0ySayAA20BoringSSLCertificateCG_ANSg10Foundation0K0VSg6Basics10HTTPClientVSgAT013ObservabilityO0C8Dispatch0xQ0Cys6ResultOyyts5Error_pGctFsA3__pSgyXEfU0_s5Int32VA7__s13OpaquePointerVSgtcfU2_
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol i2d_OCSP_REQUEST_bio referenced in function $s25PackageCollectionsSigning17CertificatePolicyPAAE6verify9certChain11anchorCerts0F4Date10httpClient18observabilityScope13callbackQueue0P0ySayAA20BoringSSLCertificateCG_ANSg10Foundation0K0VSg6Basics10HTTPClientVSgAT013ObservabilityO0C8Dispatch0xQ0Cys6ResultOyyts5Error_pGctFsA3__pSgyXEfU0_s5Int32VA7__s13OpaquePointerVSgtcfU2_
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_REQUEST_free referenced in function $s25PackageCollectionsSigning17CertificatePolicyPAAE6verify9certChain11anchorCerts0F4Date10httpClient18observabilityScope13callbackQueue0P0ySayAA20BoringSSLCertificateCG_ANSg10Foundation0K0VSg6Basics10HTTPClientVSgAT013ObservabilityO0C8Dispatch0xQ0Cys6ResultOyyts5Error_pGctFsA3__pSgyXEfU0_s5Int32VA7__s13OpaquePointerVSgtcfU2_
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol d2i_OCSP_RESPONSE_bio referenced in function $s25PackageCollectionsSigning19BoringSSLOCSPClient33_29757BB9C69218A3DEB08DF34F8C4BEFLLV11checkStatus11certificate6issuer11anchorCerts10httpClient13callbackQueue0V0yAA0D14SSLCertificateC_AMSayAMGSg6Basics10HTTPClientV8Dispatch08DispatchW0Cys6ResultOyyts5Error_pGctF15processResponseL__8cacheKeyyAP0Z8ResponseV_AD8CacheKeyVtFTf4nnnnx_n
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_response_get1_basic referenced in function $s25PackageCollectionsSigning19BoringSSLOCSPClient33_29757BB9C69218A3DEB08DF34F8C4BEFLLV11checkStatus11certificate6issuer11anchorCerts10httpClient13callbackQueue0V0yAA0D14SSLCertificateC_AMSayAMGSg6Basics10HTTPClientV8Dispatch08DispatchW0Cys6ResultOyyts5Error_pGctF15processResponseL__8cacheKeyyAP0Z8ResponseV_AD8CacheKeyVtFTf4nnnnx_n
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_response_status referenced in function $s25PackageCollectionsSigning19BoringSSLOCSPClient33_29757BB9C69218A3DEB08DF34F8C4BEFLLV11checkStatus11certificate6issuer11anchorCerts10httpClient13callbackQueue0V0yAA0D14SSLCertificateC_AMSayAMGSg6Basics10HTTPClientV8Dispatch08DispatchW0Cys6ResultOyyts5Error_pGctF15processResponseL__8cacheKeyyAP0Z8ResponseV_AD8CacheKeyVtFTf4nnnnx_n
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_basic_verify referenced in function $s25PackageCollectionsSigning19BoringSSLOCSPClient33_29757BB9C69218A3DEB08DF34F8C4BEFLLV11checkStatus11certificate6issuer11anchorCerts10httpClient13callbackQueue0V0yAA0D14SSLCertificateC_AMSayAMGSg6Basics10HTTPClientV8Dispatch08DispatchW0Cys6ResultOyyts5Error_pGctF15processResponseL__8cacheKeyyAP0Z8ResponseV_AD8CacheKeyVtFTf4nnnnx_n
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_BASICRESP_free referenced in function $s25PackageCollectionsSigning19BoringSSLOCSPClient33_29757BB9C69218A3DEB08DF34F8C4BEFLLV11checkStatus11certificate6issuer11anchorCerts10httpClient13callbackQueue0V0yAA0D14SSLCertificateC_AMSayAMGSg6Basics10HTTPClientV8Dispatch08DispatchW0Cys6ResultOyyts5Error_pGctF15processResponseL__8cacheKeyyAP0Z8ResponseV_AD8CacheKeyVtFTf4nnnnx_n
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_RESPONSE_free referenced in function $s25PackageCollectionsSigning19BoringSSLOCSPClient33_29757BB9C69218A3DEB08DF34F8C4BEFLLV11checkStatus11certificate6issuer11anchorCerts10httpClient13callbackQueue0V0yAA0D14SSLCertificateC_AMSayAMGSg6Basics10HTTPClientV8Dispatch08DispatchW0Cys6ResultOyyts5Error_pGctF15processResponseL__8cacheKeyyAP0Z8ResponseV_AD8CacheKeyVtFTf4nnnnx_n
CertificatePolicy.swift.obj : error LNK2019: unresolved external symbol OCSP_cert_to_id referenced in function $s25PackageCollectionsSigning19BoringSSLOCSPClient33_29757BB9C69218A3DEB08DF34F8C4BEFLLV11checkStatus11certificate6issuer11anchorCerts10httpClient13callbackQueue0V0yAA0D14SSLCertificateC_AMSayAMGSg6Basics10HTTPClientV8Dispatch08DispatchW0Cys6ResultOyyts5Error_pGctFyAWyAP0Z8ResponseVsAX_pGcfU3_yA0_cfU_TA
bin\PackageCollectionsSigning.dll : fatal error LNK1120: 11 unresolved externals
compnerd commented 1 year ago

CC: @yim-lee @tomerd

yim-lee commented 1 year ago

@compnerd These symbols are defined in SwiftPM's PackageCollectionsSigningLibc module only. I see we deleted CMakeLists.txt as part of https://github.com/apple/swift-package-manager/pull/5917. Probably related?

compnerd commented 1 year ago

@yim-lee hmm, weird git grep is having trouble finding them :/. Thanks, I see now what the issue is. I'm trying to bring the Windows SPM build into parity (adding package collections and the other bits into place). Sorry for the noise!