List:MySQL ODBC« Previous MessageNext Message »
From:Daniel Stenmark Date:August 6 2012 7:36pm
Subject:MySQL ODBC Driver 32-bit compiling woes (OS X)
View as plain text  
I'm trying to compile the ODBC driver on OS X in 32-bit but I keep running into the
following roadblock:

Linking C shared module ../lib/libmyodbc5.so
Apple clang version 4.0 (tags/Apple/clang-418.0.60) (based on LLVM 3.1svn)
Target: i386-apple-darwin12.0.0
Thread model: posix
"/usr/bin/ld" -demangle -dynamic -arch i386 -bundle -macosx_version_min 10.6.0 -o
../lib/libmyodbc5.so -L/usr/local/mysql-5.5.27-osx10.6-x86/lib
-headerpad_max_install_names CMakeFiles/myodbc5.dir/ansi.c.o
CMakeFiles/myodbc5.dir/catalog.c.o CMakeFiles/myodbc5.dir/catalog_no_i_s.c.o
CMakeFiles/myodbc5.dir/connect.c.o CMakeFiles/myodbc5.dir/cursor.c.o
CMakeFiles/myodbc5.dir/desc.c.o CMakeFiles/myodbc5.dir/dll.c.o
CMakeFiles/myodbc5.dir/error.c.o CMakeFiles/myodbc5.dir/execute.c.o
CMakeFiles/myodbc5.dir/handle.c.o CMakeFiles/myodbc5.dir/info.c.o
CMakeFiles/myodbc5.dir/driver.c.o CMakeFiles/myodbc5.dir/options.c.o
CMakeFiles/myodbc5.dir/parse.c.o CMakeFiles/myodbc5.dir/prepare.c.o
CMakeFiles/myodbc5.dir/results.c.o CMakeFiles/myodbc5.dir/transact.c.o
CMakeFiles/myodbc5.dir/unicode.c.o CMakeFiles/myodbc5.dir/my_prepared_stmt.c.o
CMakeFiles/myodbc5.dir/my_stmt.c.o CMakeFiles/myodbc5.dir/utility.c.o -lmysqlclient_r
-lpthread -lm ../lib/libmyodbc3u.a -liodbcinst -lSystem
/usr/bin/../lib/clang/4.0/lib/darwin/libclang_rt.eprintf.a
/usr/bin/../lib/clang/4.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture i386:
 "_dynstr_append", referenced from:
     _build_where_clause in cursor.c.o
    (maybe you meant: _dynstr_append_quoted_name)
 "_dynstr_append_mem", referenced from:
     _mysql_procedure_columns in catalog_no_i_s.c.o
     _build_where_clause in cursor.c.o
     _my_SQLSetPos in cursor.c.o
     _batch_insert in cursor.c.o
     _build_set_clause in cursor.c.o
     _insert_pk_fields in cursor.c.o
     _append_all_fields in cursor.c.o
     ...
 "_dynstr_append_os_quoted", referenced from:
     _mysql_procedure_columns in catalog_no_i_s.c.o
 "_dynstr_free", referenced from:
     _mysql_procedure_columns in catalog_no_i_s.c.o
     _my_SQLSetPos in cursor.c.o
     _do_my_pos_cursor in execute.c.o
 "_dynstr_realloc", referenced from:
     _dynstr_append_quoted_name in utility.c.o
 "_init_dynamic_string", referenced from:
     _mysql_procedure_columns in catalog_no_i_s.c.o
     _my_SQLSetPos in cursor.c.o
     _do_my_pos_cursor in execute.c.o
 "_strfill", referenced from:
     _str_to_ts in utility.c.o
     _get_fractional_part in utility.c.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libmyodbc5.so] Error 1
make[1]: *** [driver/CMakeFiles/myodbc5.dir/all] Error 2
make: *** [all] Error 2
Thread
MySQL ODBC Driver 32-bit compiling woes (OS X)Daniel Stenmark6 Aug