Skip to content

Source-build OpenSSL linker errors #41768

@crummel

Description

@crummel

Source build is trying to build preview8 and we're running into linker errors in coreclr installer with what looks like OpenSSL:

RHEL7

  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/artifacts/bin/native/net5.0-Linux-Release-x64/libSystem.Security.Cryptography.Native.OpenSsl.a(apibridge.c.o): In function `local_X509_get_version':
  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/src/libraries/Native/Unix/System.Security.Cryptography.Native/apibridge.c:65: undefined reference to `ASN1_INTEGER_get'
  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/artifacts/bin/native/net5.0-Linux-Release-x64/libSystem.Security.Cryptography.Native.OpenSsl.a(apibridge.c.o): In function `local_OpenSSL_version_num':
  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/src/libraries/Native/Unix/System.Security.Cryptography.Native/apibridge.c:146: undefined reference to `SSLeay'
  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/artifacts/bin/native/net5.0-Linux-Release-x64/libSystem.Security.Cryptography.Native.OpenSsl.a(apibridge.c.o): In function `local_DSA_set0_pqg':
  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/src/libraries/Native/Unix/System.Security.Cryptography.Native/apibridge.c:214: undefined reference to `BN_free'
  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/src/libraries/Native/Unix/System.Security.Cryptography.Native/apibridge.c:220: undefined reference to `BN_free'
  /home/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/src/libraries/Native/Unix/System.Security.Cryptography.Native/apibridge.c:226: undefined reference to `BN_free'

RHEL8:

  /usr/bin/ld: /mnt/sdc/chris/dotnet_source-build/artifacts/src/runtime.bf456654f9a4f9a86c15d9d50095ff29cde5f0a4/artifacts/bin/native/net5.0-Linux-Release-x64/libSystem.Security.Cryptography.Native.OpenSsl.a(pal_evp_cipher.c.o): undefined reference to symbol 'EVP_des_ecb@@OPENSSL_1_1_0'
  //usr/lib64/libcrypto.so.1.1: error adding symbols: DSO missing from command line

Full logs are attached. It seems like this might be related to https://github.com/dotnet/runtime/pull/39490/files. Any ideas what could be going on? cc @jeffschwMSFT @VSadov @safern @ViktorHofer @vitek-karas @swaroop-sridhar @agocke @omajid
rhel7-Linux.x64.Release-CMakeError.log
rhel7-Linux.x64.Release-CMakeOutput.log
rhel7-net5.0-Linux-Release-x64-CMakeError.log
rhel7-net5.0-Linux-Release-x64-CMakeOutput.log
rhel7-runtime.log
rhel.7-x64.Release-CMakeError.log
rhel.7-x64.Release-CMakeOutput.log
rhel8-net5.0-Linux-Release-x64-CMakeError.log
rhel8-net5.0-Linux-Release-x64-CMakeOutput.log
rhel8-runtime.log
rhel.8-x64.Release-CMakeError.log
rhel.8-x64.Release-CMakeOutput.log
rhel8-Linux.x64.Release-CMakeError.log
rhel8-Linux.x64.Release-CMakeOutput.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions