Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1408

Cannot link OpenSSL library statically to compile crypto

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 23.1.1
    • Fix Version/s: None
    • Component/s: crypto
    • Labels:
      None

      Description

      Hello,

      I am trying to compile OTP for Android (aarch64) with crypto library.

      I have tried several things:

      • Link to openssl dynamic library compiled for android by using the option --with-ssl=. After running ./otp_build configure I get the following message at the end:

      *********************************************************************
      ********************** APPLICATIONS DISABLED **********************
      *********************************************************************

      crypto : OpenSSL is configured for kerberos but no krb5.h found
      odbc : ODBC library - link check failed
      ssh : OpenSSL is configured for kerberos but no krb5.h found
      ssl : OpenSSL is configured for kerberos but no krb5.h found
      wx : User gave --without-wx option

      • Using the openssl library compiled for my host (linux). The configure passes without problem, however when running make I get the errors: skipping incompatible /usr/local/ssl/lib/libcrypto.so when searching for -lcrypto. Of course this makes sense, since it is using the clang compiler for android.

      The openSSL is downloaded from the official repository, compiled for aarch64 using the specified instructions. Any help would be appreciated.

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            d4no0 D4no0
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: