MariaDB 5.5.23: MacOS X build failure

Bug #984580 reported by Simon J Mudd
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Incomplete
Undecided
Unassigned

Bug Description

I spoke to serg on irc on #mariadb yesterday, 2012-04-17 and I almost got there but this seems not to work for me. See the irc logs (http://marialog.archivist.info/) for details. After initially trying to build just using cmake and not using Xcode I got to 97%, and didn't get any further.

That is I initially tried to build from the mariadb-5.5.23.tar.gz tar ball, which failed, then I applied I applied the patches from revision 3367 to 3368 from launchpad.

So I tried to build using Xcode, that is: cmake . -G Xcode && xcodebuild -configuration Relwithdebinfo.
This built to completion successfully. However cmake install complains about missing symbols being defined:

....

=== BUILD NATIVE TARGET sql OF PROJECT MySQL WITH THE DEFAULT CONFIGURATION (Debug) ===
Check dependencies

SymLink sql/Debug/libsql.a sql/UninstalledProducts/libsql.a
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/ln -sf /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/libsql.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/libsql.a

PhaseScriptExecution "CMake Rules" sql/MySQL.build/Debug/sql.build/Script-739FF23486F040D0BCDA362F.sh
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/sh -c /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/sql.build/Script-739FF23486F040D0BCDA362F.sh
make: Nothing to be done for `all'.

CompileC sql/MySQL.build/Debug/sql.build/Objects-normal/x86_64/sql_lex.o sql/sql_lex.cc normal x86_64 c++ com.apple.compilers.llvmgcc42
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/llvm-gcc-4.2 -x c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 "-DCMAKE_INTDIR=\"Debug\"" -DHAVE_CONFIG_H -DMYSQL_SERVER -DHAVE_EVENT_SCHEDULER -DHAVE_POOL_OF_THREADS -isysroot /Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -mmacosx-version-min=10.7 -gdwarf-2 -I/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/include -I/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/include -I/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql -I/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/regex -I/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/sql.build/DerivedSources/x86_64 -I/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/sql.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug -Wall -Wno-unused-parameter -fno-implicit-templates -fno-exceptions -fno-rtti -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DSAFEMALLOC -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Wno-unused-parameter -Woverloaded-virtual -c /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/sql_lex.cc -o /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/sql.build/Objects-normal/x86_64/sql_lex.o

Libtool sql/UninstalledProducts/libsql.a normal x86_64
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    setenv MACOSX_DEPLOYMENT_TARGET 10.7
    /Developer/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Developer/SDKs/MacOSX10.7.sdk -L/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug -filelist /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/sql.build/Objects-normal/x86_64/sql.LinkFileList -o /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/libsql.a

PhaseScriptExecution "CMake PostBuild Rules" sql/MySQL.build/Debug/sql.build/Script-71BEEAAF2D2743CCB05E5B5E.sh
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/sh -c /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/sql.build/Script-71BEEAAF2D2743CCB05E5B5E.sh
echo "Depend check for xcode"
Depend check for xcode
cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23 && make -C /not_encrypted/sjmudd/Downloads/mariadb-5.5.23 -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/CMakeScripts/XCODE_DEPEND_HELPER.make PostBuild.sql.Debug
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/mysqld

Strip sql/UninstalledProducts/libsql.a
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /Developer/usr/bin/strip -S /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/libsql.a
/Developer/usr/bin/strip: input object file stripped: /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/libsql.a(des_key_file.o)
/Developer/usr/bin/strip: input object file stripped: /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/libsql.a(sha2.o)

SetOwnerAndGroup "sjmudd:staff" sql/UninstalledProducts/libsql.a
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /usr/sbin/chown -RH "sjmudd:staff" /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/libsql.a

SetMode u+w,go-w,a+rX sql/UninstalledProducts/libsql.a
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/chmod -RH u+w,go-w,a+rX /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/libsql.a

=== BUILD NATIVE TARGET mysqld OF PROJECT MySQL WITH THE DEFAULT CONFIGURATION (Debug) ===
Check dependencies

SymLink sql/Debug/mysqld sql/UninstalledProducts/mysqld
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/ln -sf /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/mysqld /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/mysqld

Ld sql/UninstalledProducts/mysqld normal x86_64
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    setenv MACOSX_DEPLOYMENT_TARGET 10.7
    /Developer/usr/bin/llvm-g++-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -L/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug -F/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug -filelist /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/mysqld.build/Objects-normal/x86_64/mysqld.LinkFileList -mmacosx-version-min=10.7 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -lpthread -framework CoreServices /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/libsql.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/csv/Debug/libcsv.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/heap/Debug/libheap.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/maria/Debug/libaria.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/myisam/Debug/libmyisam.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/myisammrg/Debug/libmyisammrg.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/perfschema/Debug/libperfschema.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/xtradb/Debug/libxtradb.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/libpartition.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/mysys/Debug/libmysys.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/dbug/Debug/libdbug.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/mysys/Debug/libmysys.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/dbug/Debug/libdbug.a -lz /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/strings/Debug/libstrings.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/vio/Debug/libvio.a /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/regex/Debug/libregex.a -lpthread -o /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/mysqld

PhaseScriptExecution "CMake PostBuild Rules" sql/MySQL.build/Debug/mysqld.build/Script-40811EB286C8415DB32A1D8C.sh
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/sh -c /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/MySQL.build/Debug/mysqld.build/Script-40811EB286C8415DB32A1D8C.sh
echo "Depend check for xcode"
Depend check for xcode
cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23 && make -C /not_encrypted/sjmudd/Downloads/mariadb-5.5.23 -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/CMakeScripts/XCODE_DEPEND_HELPER.make PostBuild.mysqld.Debug
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/archive/Debug/ha_archive.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/blackhole/Debug/ha_blackhole.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/example/Debug/ha_example.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/federated/Debug/ha_federated.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/federatedx/Debug/ha_federatedx.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/innobase/Debug/ha_innodb.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/sphinx/Debug/ha_sphinx.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/audit_null/Debug/adt_null.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_dialog/Debug/dialog.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_examples/Debug/auth_test_plugin.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_examples/Debug/dialog_examples.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_examples/Debug/mysql_clear_password.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_examples/Debug/qa_auth_client.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_examples/Debug/qa_auth_interface.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_examples/Debug/qa_auth_server.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/auth_pam/Debug/auth_pam.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/daemon_example/Debug/libdaemon_example.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/feedback/Debug/feedback.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/fulltext/Debug/mypluglib.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/semisync/Debug/semisync_master.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/semisync/Debug/semisync_slave.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/plugin/sql_errlog/Debug/sql_errlog.so
/bin/rm -f /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/udf_example.so

Strip sql/UninstalledProducts/mysqld
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /Developer/usr/bin/strip /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/mysqld

SetOwnerAndGroup "sjmudd:staff" sql/UninstalledProducts/mysqld
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /usr/sbin/chown -RH "sjmudd:staff" /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/mysqld

SetMode u+w,go-w,a+rX sql/UninstalledProducts/mysqld
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/chmod -RH u+w,go-w,a+rX /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/UninstalledProducts/mysqld

=== BUILD NATIVE TARGET archive OF PROJECT MySQL WITH THE DEFAULT CONFIGURATION (Debug) ===
Check dependencies

SymLink storage/archive/Debug/ha_archive.so storage/archive/UninstalledProducts/ha_archive.so
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    /bin/ln -sf /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/archive/UninstalledProducts/ha_archive.so /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/archive/Debug/ha_archive.so

Ld storage/archive/UninstalledProducts/ha_archive.so normal x86_64
    cd /not_encrypted/sjmudd/Downloads/mariadb-5.5.23
    setenv MACOSX_DEPLOYMENT_TARGET 10.7
    /Developer/usr/bin/llvm-g++-4.2 -arch x86_64 -bundle -isysroot /Developer/SDKs/MacOSX10.7.sdk -L/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/archive/Debug -F/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/archive/Debug -filelist /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/archive/MySQL.build/Debug/archive.build/Objects-normal/x86_64/ha_archive.LinkFileList -mmacosx-version-min=10.7 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -lpthread /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/libservices/Debug/libmysqlservices.a -Wl,-bundle_loader,/not_encrypted/sjmudd/Downloads/mariadb-5.5.23/sql/Debug/mysqld -lz -lz -lpthread -o /not_encrypted/sjmudd/Downloads/mariadb-5.5.23/storage/archive/UninstalledProducts/ha_archive.so
Undefined symbols for architecture x86_64:
  "_my_az_allocator", referenced from:
      _az_open in azio.o
  "_my_az_free", referenced from:
      _az_open in azio.o
  "__db_flush_", referenced from:
      _az_open in azio.o
      ha_archive::open(char const*, int, unsigned int)in ha_archive.o
      _bitmap_is_set in ha_archive.o
      ha_archive::fix_rec_buff(unsigned int)in ha_archive.o
      ha_archive::unpack_row(azio_stream*, unsigned char*)in ha_archive.o
      handler::bulk_update_row(unsigned char const*, unsigned char*, unsigned int*)in ha_archive.o
      handler::end_bulk_delete() in ha_archive.o
      ...
  "_my_open", referenced from:
      _az_open in azio.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
  "__db_keyword_", referenced from:
      _az_open in azio.o
  "_my_close", referenced from:
      _az_open in azio.o
      _destroy in azio.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
  "__my_thread_var", referenced from:
      _az_open in azio.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
      ha_archive::frm_copy(azio_stream*, azio_stream*)in ha_archive.o
      ha_archive::get_share(char const*, int*)in ha_archive.o
      archive_discover(handlerton*, THD*, char const*, char const*, unsigned char**, unsigned long*)in ha_archive.o
      handler::discard_or_import_tablespace(char) in ha_archive.o
      handler::delete_all_rows() in ha_archive.o
      ...
  "_my_seek", referenced from:
      _az_open in azio.o
      _do_flush in azio.o
      _azrewind in azio.o
      _azseek in azio.o
      _azwrite_frm in azio.o
      _azwrite_comment in azio.o
  "_my_pread", referenced from:
      _az_open in azio.o
      _azflush in azio.o
      _azread_frm in azio.o
      _azread_comment in azio.o
  "_my_pwrite", referenced from:
      _write_header in azio.o
      _azwrite_frm in azio.o
      _azwrite_comment in azio.o
  "_my_read", referenced from:
      _get_byte in azio.o
      _check_header in azio.o
      _azread in azio.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
  "_my_tell", referenced from:
      _check_header in azio.o
      _do_flush in azio.o
      _azclose in azio.o
  "_my_write", referenced from:
      _azwrite in azio.o
      _do_flush in azio.o
      _putLong in azio.o
  "_my_sync", referenced from:
      _azflush in azio.o
  "_key_map_empty", referenced from:
      handler::keys_to_use_for_scanning() in ha_archive.o
  "_my_charset_bin", referenced from:
      String::String()in ha_archive.o
  "_PSI_server", referenced from:
      init_archive_psi_keys() in ha_archive.o
      _inline_mysql_mutex_lock in ha_archive.o
      _inline_mysql_mutex_unlock in ha_archive.o
      inline_mysql_file_fstat(char const*, unsigned int, int, stat*, int)in ha_archive.o
      _inline_mysql_mutex_destroy in ha_archive.o
      _inline_mysql_mutex_init in ha_archive.o
  "calculate_key_len(TABLE*, unsigned int, unsigned char const*, unsigned long)", referenced from:
      handler::index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function)in ha_archive.o
  "vtable for handler", referenced from:
      handler::handler(handlerton*, TABLE_SHARE*)in ha_archive.o
      handler::~handler()in ha_archive.o
  "_my_free", referenced from:
      ha_archive::write_row(unsigned char*)in ha_archive.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
      ha_archive::destroy_record_buffer(st_archive_record_buffer*) in ha_archive.o
      ha_archive::create_record_buffer(unsigned int)in ha_archive.o
      ha_archive::frm_copy(azio_stream*, azio_stream*)in ha_archive.o
      ha_archive::free_share() in ha_archive.o
      ha_archive::get_share(char const*, int*)in ha_archive.o
      ...
  "_system_charset_info", referenced from:
      ha_archive::ha_archive(handlerton*, TABLE_SHARE*)in ha_archive.o
      ha_archive::ha_archive(handlerton*, TABLE_SHARE*)in ha_archive.o
  "__db_enter_", referenced from:
      ha_archive::index_next(unsigned char*)in ha_archive.o
      ha_archive::close() in ha_archive.o
      ha_archive::rnd_next(unsigned char*)in ha_archive.o
      ha_archive::rnd_pos(unsigned char*, unsigned char*)in ha_archive.o
      ha_archive::position(unsigned char const*)in ha_archive.o
      ha_archive::info(unsigned int)in ha_archive.o
      ha_archive::update_create_info(st_ha_create_information*) in ha_archive.o
      ...
  "__db_return_", referenced from:
      ha_archive::index_next(unsigned char*)in ha_archive.o
      ha_archive::close() in ha_archive.o
      ha_archive::rnd_next(unsigned char*)in ha_archive.o
      ha_archive::rnd_pos(unsigned char*, unsigned char*)in ha_archive.o
      ha_archive::position(unsigned char const*)in ha_archive.o
      ha_archive::info(unsigned int)in ha_archive.o
      ha_archive::update_create_info(st_ha_create_information*) in ha_archive.o
      ...
  "_my_get_ptr", referenced from:
      ha_archive::rnd_pos(unsigned char*, unsigned char*)in ha_archive.o
  "_my_store_ptr", referenced from:
      ha_archive::position(unsigned char const*)in ha_archive.o
  "__db_pargs_", referenced from:
      ha_archive::info(unsigned int)in ha_archive.o
      ha_archive::open(char const*, int, unsigned int)in ha_archive.o
      ha_archive::rnd_init(bool) in ha_archive.o
      ha_archive::optimize(THD*, st_ha_check_opt*) in ha_archive.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
      ha_archive::init_archive_reader() in ha_archive.o
      ha_archive::init_archive_writer() in ha_archive.o
      ...
  "__db_doprnt_", referenced from:
      ha_archive::info(unsigned int)in ha_archive.o
      ha_archive::open(char const*, int, unsigned int)in ha_archive.o
      ha_archive::rnd_init(bool) in ha_archive.o
      ha_archive::optimize(THD*, st_ha_check_opt*) in ha_archive.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
      ha_archive::init_archive_reader() in ha_archive.o
      ha_archive::init_archive_writer() in ha_archive.o
      ...
  "_my_stat", referenced from:
      ha_archive::info(unsigned int)in ha_archive.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
      archive_discover(handlerton*, THD*, char const*, char const*, unsigned char**, unsigned long*)in ha_archive.o
  "_my_readlink", referenced from:
      ha_archive::update_create_info(st_ha_create_information*) in ha_archive.o
  "_thd_in_lock_tables", referenced from:
      ha_archive::store_lock(THD*, st_thr_lock_data**, thr_lock_type) in ha_archive.o
  "_thd_tablespace_op", referenced from:
      ha_archive::store_lock(THD*, st_thr_lock_data**, thr_lock_type) in ha_archive.o
  "_thr_lock_data_init", referenced from:
      ha_archive::open(char const*, int, unsigned int)in ha_archive.o
  "handler::update_auto_increment()", referenced from:
      ha_archive::write_row(unsigned char*)in ha_archive.o
  "_fn_format", referenced from:
      ha_archive::optimize(THD*, st_ha_check_opt*) in ha_archive.o
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
      ha_archive::get_share(char const*, int*)in ha_archive.o
  "_my_rename", referenced from:
      ha_archive::optimize(THD*, st_ha_check_opt*) in ha_archive.o
  "st_ha_check_opt::init()", referenced from:
      ha_archive::check_and_repair(THD*) in ha_archive.o
  "_my_symlink", referenced from:
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
  "_my_malloc", referenced from:
      ha_archive::create(char const*, TABLE*, st_ha_create_information*)in ha_archive.o
      ha_archive::create_record_buffer(unsigned int)in ha_archive.o
      ha_archive::frm_copy(azio_stream*, azio_stream*)in ha_archive.o
      archive_discover(handlerton*, THD*, char const*, char const*, unsigned char**, unsigned long*)in ha_archive.o
  "_safe_mutex_lock", referenced from:
      _inline_mysql_mutex_lock in ha_archive.o
  "_safe_mutex_unlock", referenced from:
      _inline_mysql_mutex_unlock in ha_archive.o
  "String::real_alloc(unsigned int)", referenced from:
      String::alloc(unsigned int)in ha_archive.o
  "Field_blob::get_length(unsigned char const*, unsigned int)", referenced from:
      Field_blob::get_length(unsigned int)in ha_archive.o
  "Field_blob::store_length(unsigned char*, unsigned int, unsigned int)", referenced from:
      Field_blob::set_ptr_offset(long long, unsigned int, unsigned char*)in ha_archive.o
  "_my_realloc", referenced from:
      ha_archive::fix_rec_buff(unsigned int)in ha_archive.o
  "_my_fstat", referenced from:
      inline_mysql_file_fstat(char const*, unsigned int, int, stat*, int)in ha_archive.o
  "_safe_mutex_destroy", referenced from:
      _inline_mysql_mutex_destroy in ha_archive.o
  "_my_hash_delete", referenced from:
      ha_archive::free_share() in ha_archive.o
  "_thr_lock_delete", referenced from:
      ha_archive::free_share() in ha_archive.o
  "_safe_mutex_init", referenced from:
      _inline_mysql_mutex_init in ha_archive.o
  "_my_hash_search", referenced from:
      ha_archive::get_share(char const*, int*)in ha_archive.o
  "_my_multi_malloc", referenced from:
      ha_archive::get_share(char const*, int*)in ha_archive.o
  "_my_hash_insert", referenced from:
      ha_archive::get_share(char const*, int*)in ha_archive.o
  "_thr_lock_init", referenced from:
      ha_archive::get_share(char const*, int*)in ha_archive.o
  "build_table_filename(char*, unsigned long, char const*, char const*, char const*, unsigned int)", referenced from:
      archive_discover(handlerton*, THD*, char const*, char const*, unsigned char**, unsigned long*)in ha_archive.o
  "_my_hash_free", referenced from:
      archive_db_done(void*) in ha_archive.o
  "_table_alias_charset", referenced from:
      archive_db_init(void*) in ha_archive.o
  "__my_hash_init", referenced from:
      archive_db_init(void*) in ha_archive.o
  "_alloc_root", referenced from:
      Sql_alloc::operator new(unsigned long, st_mem_root*)in ha_archive.o
  "handler::clone(char const*, st_mem_root*)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::print_error(int, int)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::get_error_message(int, String*)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::keyread_time(unsigned int, unsigned int, unsigned long long)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::column_bitmaps_signal()", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::index_read_idx_map(unsigned char*, unsigned int, unsigned char const*, unsigned long, ha_rkey_function)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::index_next_same(unsigned char*, unsigned char const*, unsigned int)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::multi_range_read_info_const(unsigned int, st_range_seq_if*, void*, unsigned int, unsigned int*, unsigned int*, COST_VECT*)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::multi_range_read_info(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int*, unsigned int*, COST_VECT*)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::multi_range_read_init(st_range_seq_if*, void*, unsigned int, unsigned int, st_handler_buffer*)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::multi_range_read_next(void**)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::read_range_first(st_key_range const*, st_key_range const*, bool, bool)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::read_range_next()", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::read_first_row(unsigned char*, unsigned int)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::get_dynamic_partition_info(PARTITION_STATS*, unsigned int)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::use_hidden_primary_key()", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::rename_table(char const*, char const*)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::delete_table(char const*)", referenced from:
      vtable for ha_archivein ha_archive.o
  "handler::drop_table(char const*)", referenced from:
      vtable for ha_archivein ha_archive.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

** BUILD FAILED **

The following build commands failed:
 Ld storage/archive/UninstalledProducts/ha_archive.so normal x86_64
(1 failure)
[sjmudd@m7-en1 mariadb-5.5.23]$

I can try and see if I can patch from 5.5.23 to the end of the 5.5 branch and see if that works but currently for me this doesn't work.

OS: Mac OS X 10.7.3 Lion on Intel
Darwin myhost 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

[sjmudd@m7-en1 src]$ xcodebuild -version
Xcode 4.1
Build version 4B110

So would be nice to get a set of working binaries to allow me to compare 5.5.23 against mysql-5.5-20 which I have working on my Mac at the moment. As I believe this is being worked on this bug report is simply to provide info that might not already be known.

Revision history for this message
Vladislav Vaintroub (wlad-montyprogram) wrote :

I can build without problems from trunk.

If you're trying to apply patches from trunk kill, then you need to kill the previous build completely first. Otherwise you get problems in this particular case with readline, since cmake caches results of system checks, which were not correct for readline.

so my recommendation on building would be this

1. branch from bzr, or download the tarball and apply patches
2. in the directory where you extracted the tarball and applied patches
    mkdir bld
    cd bld
    cmake ..
    make package

This will give you the tarball

How to build with Xcode
If you're only interested in building rather than IDE functionality, I'd recommend the above "Unix Makefiles" build

I'm not very familiar with xcodebuild options, so I'll describe how to build Xcode using generic cmake commands .

From the directory where you extracted tarball or bzr branched

  mkdir bld_xcode
  cd bld_xcode
  cmake .. -G Xcode
  cmake . --build --config RelWithDebInfo --target package

The above works for me on Lion with slightly different Xcode version (4.3.2) and (cmake 2.8.8-rc2)
I do not know what exactly went wrong in your configuration, but I noticed that you seemed to build RelWithDebInfo, and the failing output is definitely from Debug, so there is some kind of mix here

As you see from the above, I'm a fan of out-of-source builds (build directly != ource directory) Of course you can also build in-source, but recovering from failing build here is not as simple as rm -rf build_dir

Anyway, I hope this helps. If so, let me know, I'll add a KB article about it. If it does not help, let me know as well, perhaps there is something I'm missing.

Elena Stepanova (elenst)
Changed in maria:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.