Re: Build Fails on Mac OS 10.5
Dear Alfredo and Co.,
I downloaded the server package, copied the "includes" files to /usr/local/includes and the library files to /usr/local/lib, did a "clean" in Xcode, and recompiled. Compile is still failing. One of the big problems is a missing "wb_config.h" file, which I think should be created in the build process (but is not, apparently).
Here are sample error messages (ignoring the warnings for now):
Building target “mysqlcppconn” of project “MySQLWorkbench” with configuration “Release” — (52 errors)
cd /Users/Shared/Sources/mysql-workbench-oss-5.1.16
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/g++-4.0 -arch ppc -dynamiclib -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/Release -L/usr/local/mysql/lib -F/Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/Release -filelist /Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/MySQLWorkbench.build/Release/mysqlcppconn.build/Objects-normal/ppc/mysqlcppconn.LinkFileList -install_name @executable_path/../Frameworks/mysqlcppconn.dylib -mmacosx-version-min=10.5 -headerpad_max_install_names -lmysqlclient -lsigc-2.0.0.0.0 -Wl,-single_module -compatibility_version 1 -current_version 1 -o /Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/Release/mysqlcppconn.dylib
[**** please note the next line: do I have the wrong library file?***]
ld warning: in /Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/libmysqlclient.dylib, file is not of required architecture
Undefined symbols:
"_mysql_stmt_sqlstate", referenced from:
sql::mysql::MySQL_Connection::prepareStatement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in mysql_connection.o
sql::mysql::MySQL_Connection::prepareStatement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in mysql_connection.o
sql::mysql::MySQL_Prepared_Statement::sendLongDataBeforeParamBind() in mysql_prepared_statement.o
sql::mysql::MySQL_Prepared_Statement::do_query() in mysql_prepared_statement.o
sql::mysql::MySQL_Prepared_Statement::do_query() in mysql_prepared_statement.o
sql::mysql::MySQL_ResultBind::bindResult() in mysql_resultbind.o
sql::mysql::util::throwSQLException(st_mysql_stmt*) in mysql_util.o
"_mysql_next_result", referenced from:
sql::mysql::MySQL_Prepared_Statement::getResultSet() in mysql_prepared_statement.o
sql::mysql::MySQL_Statement::getMoreResults() in mysql_statement.o
(etc.)
Building target “ctemplate” of project “MySQLWorkbench” with configuration “Release” — (2 errors)
cd /Users/Shared/Sources/mysql-workbench-oss-5.1.16
/Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -DENABLE_PYTHON_MODULES -DENABLE_LUA_MODULES -isysroot /Developer/SDKs/MacOSX10.5.sdk -mtune=G5 -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/MySQLWorkbench.build/Release/ctemplate.build/ctemplate-generated-files.hmap -I/Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/MySQLWorkbench.build/Release/ctemplate.build/ctemplate-own-target-headers.hmap -I/Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/MySQLWorkbench.build/Release/ctemplate.build/ctemplate-all-target-headers.hmap -iquote /Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/MySQLWorkbench.build/Release/ctemplate.build/ctemplate-project-headers.hmap -F/Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/Release -I/Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/Release/include -I/Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/prebuilt-macosx -I/Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src -I/usr/local/include -I/usr/local/include/cairo -I/Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/glib-2.0/include -I/usr/local/include/glib-2.0 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include/libxml2 -I/usr/local/include/sigc++-2.0 -I/Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/sigc++-2.0/include -I/Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/MySQLWorkbench.build/Release/ctemplate.build/DerivedSources -c /Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/template_string.cc -o /Users/Shared/Sources/mysql-workbench-oss-5.1.16/build/MySQLWorkbench.build/Release/ctemplate.build/Objects-normal/ppc/template_string.o
/Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/template_string.cc: In function 'uint64 google::MurmurHash64(const char*, size_t)':
/Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/template_string.cc:145: error: 'Need_to_define_BSWAP32_for_your_architecture' was not declared in this scope
/Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/template_string.cc:167: error: 'Need_to_define_BSWAP32_for_your_architecture' was not declared in this scope
/Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/template_string.cc:145: error: 'Need_to_define_BSWAP32_for_your_architecture' was not declared in this scope
/Users/Shared/Sources/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/template_string.cc:167: error: 'Need_to_define_BSWAP32_for_your_architecture' was not declared in this scope
(etc.)
/Users/Shared/Sources/mysql-workbench-oss-5.1.16/backend/wbpublic/grtdb/dbobject_roles.cpp:22:23: error: wb_config.h: No such file or directory
/Users/Shared/Sources/mysql-workbench-oss-5.1.16/backend/wbpublic/grtdb/dbobject_roles.cpp:22:23: error: wb_config.h: No such file or directory
cd /Users/Shared/Sources/mysql-workbench-oss-5.1.16
(etc. -- complaints about the absence of wb_config.h are frequent).
Thanks!
Rich