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

Missing symbols building RocksDB on macOS 10.12.6

    XMLWordPrintable

Details

    • 10.2.10

    Description

      Hello!

      The following error is thrown when building on macOS.

      [ 77%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/trx/trx0purge.cc.o
      cd /tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DBTR_CUR_ADAPT -DBTR_CUR_HASH_ADAPT -DCOMPILER_HINTS -DHAVE_BZIP2=1 -DHAVE_CONFIG_H -DHAVE_LZMA=1 -DHAVE_LZO=1 -DHAVE_NANOSLEEP=1 -DMUTEX_EVENT -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/include -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase/include -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase/handler -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/libbinlogevents/include -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/sql -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/pcre -I/usr/local/opt/openssl/include  -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fno-rtti -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.12    -fvisibility=hidden -o CMakeFiles/innobase.dir/trx/trx0purge.cc.o -c /tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase/trx/trx0purge.cc
      Undefined symbols for architecture x86_64:
        "sql_print_warning(char const*, ...)", referenced from:
            myrocks::Rdb_sst_info::init(rocksdb::DB const*) in librocksdb_aux_lib.a(rdb_sst_info.cc.o)
        "sql_print_information(char const*, ...)", referenced from:
            myrocks::Rdb_sst_file_ordered::Rdb_sst_file::open() in librocksdb_aux_lib.a(rdb_sst_info.cc.o)
            myrocks::Rdb_sst_file_ordered::Rdb_sst_file::commit() in librocksdb_aux_lib.a(rdb_sst_info.cc.o)
        "myrocks::rdb_normalize_tablename(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)", referenced from:
            myrocks::Rdb_sst_info::Rdb_sst_info(rocksdb::DB*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, rocksdb::ColumnFamilyHandle*, rocksdb::DBOptions const&, bool const&) in librocksdb_aux_lib.a(rdb_sst_info.cc.o)
        "_my_delete", referenced from:
            myrocks::Rdb_sst_info::init(rocksdb::DB const*) in librocksdb_aux_lib.a(rdb_sst_info.cc.o)
      [ 77%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/trx/trx0rec.cc.o
      cd /tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DBTR_CUR_ADAPT -DBTR_CUR_HASH_ADAPT -DCOMPILER_HINTS -DHAVE_BZIP2=1 -DHAVE_CONFIG_H -DHAVE_LZMA=1 -DHAVE_LZO=1 -DHAVE_NANOSLEEP=1 -DMUTEX_EVENT -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/include -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase/include -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase/handler -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/libbinlogevents/include -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/sql -I/tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/pcre -I/usr/local/opt/openssl/include  -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fno-rtti -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.12    -fvisibility=hidden -o CMakeFiles/innobase.dir/trx/trx0rec.cc.o -c /tmp/mariadb-20170928-7677-10c7l6l/mariadb-10.2.9/storage/innobase/trx/trx0rec.cc
        "_my_dir", referenced from:
            myrocks::Rdb_sst_info::init(rocksdb::DB const*) in librocksdb_aux_lib.a(rdb_sst_info.cc.o)
        "_my_dirend", referenced from:
            myrocks::Rdb_sst_info::init(rocksdb::DB const*) in librocksdb_aux_lib.a(rdb_sst_info.cc.o)
        "_my_printf_error", referenced from:
            myrocks::Rdb_sst_info::set_error_msg(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, rocksdb::Status const&) in librocksdb_aux_lib.a(rdb_sst_info.cc.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]: *** [storage/rocksdb/mysql_ldb] Error 1
      make[1]: *** [storage/rocksdb/CMakeFiles/mysql_ldb.dir/all] Error 2
      make[1]: *** Waiting for unfinished jobs....
      

      Thanks.

      Attachments

        Issue Links

          Activity

            People

              varun Varun Gupta (Inactive)
              Dan Dan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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