Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20779

Fail to build with homebrew's openssl

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4.7, 10.4.8
    • 10.4
    • libmariadb
    • None
    • macOS

    Description

      Since commit d5a11a1f0208df87ee9885f5eb7a7427ee9a6f4a (first bad commit), the server cannot be build with homebrew's openssl@1.1.

      To reproduce:

      brew install openssl@1.1
      cd path/to/server
      mkdir test-build
      cd test-build
      cmake .. -DWITH_SSL=/usr/local/opt/openssl@1.1
      make sha256_password
      

      Result in:

      Scanning dependencies of target sha256_password
      Building C object libmariadb/CMakeFiles/sha256_password.dir/plugins/auth/sha256_pw.c.o
      Linking C shared module sha256_password.so
      Undefined symbols for architecture x86_64:
        "_BIO_free", referenced from:
            _auth_sha256_client in sha256_pw.c.o
        "_BIO_new_mem_buf", referenced from:
            _auth_sha256_client in sha256_pw.c.o
        "_ERR_clear_error", referenced from:
            _auth_sha256_client in sha256_pw.c.o
        "_PEM_read_bio_RSA_PUBKEY", referenced from:
            _auth_sha256_client in sha256_pw.c.o
        "_RSA_free", referenced from:
            _auth_sha256_client in sha256_pw.c.o
        "_RSA_public_encrypt", referenced from:
            _auth_sha256_client in sha256_pw.c.o
        "_RSA_size", referenced from:
            _auth_sha256_client in sha256_pw.c.o
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make[3]: *** [libmariadb/sha256_password.so] Error 1
      make[2]: *** [libmariadb/CMakeFiles/sha256_password.dir/all] Error 2
      make[1]: *** [libmariadb/CMakeFiles/sha256_password.dir/rule] Error 2
      make: *** [sha256_password] Error 2
      

      Attachments

        Activity

          People

            georg Georg Richter
            onthewings Andy Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.