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

Undefined symbol "_SSL_get1_peer_certificate" while building 10.2 and 10.3 on macOS

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2, 10.3
    • None
    • Compiling, SSL
    • macOS 10.13.6

    Description

      I get the following linking error while building 10.3 from GitHub on macOS 10.13.6 High Sierra:

      Yuliyas-MacBook-Air:buildtmp Valerii$ cmake .. -DCMAKE_INSTALL_PREFIX=/Users/Valerii/dbs/maria10.3 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_DTRACE=1 -DWITH_SSL=/opt/local/libexec/openssl11
      ...
      Yuliyas-MacBook-Air:buildtmp Valerii$ time make
      ...
      [ 39%] Building CXX object sql/CMakeFiles/sql.dir/sql_yacc_ora.cc.o
      [ 39%] Building CXX object sql/CMakeFiles/sql.dir/threadpool_generic.cc.o
      [ 39%] Linking CXX static library libsql.a
      [ 40%] Built target sql
      [ 40%] Building CXX object unittest/sql/CMakeFiles/explain_filename-t.dir/explain_filename-t.cc.o
      [ 40%] Linking CXX executable explain_filename-t
      Undefined symbols for architecture x86_64:
        "_SSL_get1_peer_certificate", referenced from:
            acl_authenticate(THD*, unsigned int) in libsql.a(sql_acl.cc.o)
            _send_client_reply_packet in libsql.a(client.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[2]: *** [unittest/sql/explain_filename-t] Error 1
      make[1]: *** [unittest/sql/CMakeFiles/explain_filename-t.dir/all] Error 2
      make: *** [all] Error 2
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            valerii Valerii Kravchuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.