Bug #63577 Cannot build MySQL Workbench 5.2.36 on Linux (Debian stable : Squeeze)
Submitted: 4 Dec 2011 15:31 Modified: 17 Jan 2012 20:07
Reporter: Alexandre Tranchant Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.36 OS:Linux (Debian Squeeze)
Assigned to: CPU Architecture:Any
Tags: Debian, gcc, install, python, squeeze

[4 Dec 2011 15:31] Alexandre Tranchant
Description:
Sorry for my english, i'm not fluent in English.

During make step, make halt on these errors :
root@Q4 : /tmp/mysql-workbench-gpl-5.2.36-src
$ ./autogen.sh --prefix=/opt/mysql-workbench-gpl-5.2.36
......
root@Q4 : /tmp/mysql-workbench-gpl-5.2.36-src
$ make
.....
*** Warning: Linking the executable mysql-workbench-bin against the loadable module
*** mysqlcppconn.so is not portable!
libtool: link: g++ -rdynamic -Wextra -Wall -Wno-unused -Wno-deprecated -DTIXML_USE_STL=1 -o .libs/mysql-workbench-bin main.o program.o main_form.o overview_panel.o model_panel.o model_diagram_panel.o mforms_grttreeview.o catalog_tree.o layer_tree.o properties_tree.o history_tree.o navigator_box.o info_box.o documentation_box.o user_types_box.o find_panel.o diagram_size_form.o validation_panel.o sqlide_form.o sqlide_main.o new_server_instance_wizard.o grt_code_editor.o server_instance_editor.o grt_python_debugger.o advanced_sidebar.o snippet_popover.o -pthread -pthread -Wl,--export-dynamic -rdynamic  ../../../library/forms/.libs/libmforms.so ../../../frontend/linux/linux_utilities/.libs/liblinux_utilities.so ../../../frontend/linux/sqlide/.libs/libsqlide.so ../../../backend/wbprivate/libwbprivate.a ../../../backend/wbpublic/.libs/libwbpublic.so ../../../library/base/.libs/libwbbase.so ../../../library/grt/src/.libs/libgrt.so ../../../library/dbc/.libs/libcdbc.so ../../../ext/cppconn/driver/.libs/mysqlcppconn.so ../../../ext/scintilla/gtk/.libs/libwbscintilla.so ../../../library/canvas/src/.libs/libmdcanvasgtk.so ../../../library/canvas/src/.libs/libmdcanvas.so -lctemplate /usr/lib/libgtkmm-2.4.so /usr/lib/libatkmm-1.6.so /usr/lib/libgdkmm-2.4.so /usr/lib/libgiomm-2.4.so /usr/lib/libpangomm-1.4.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libglibmm-2.4.so /usr/lib/libcairomm-1.0.so /usr/lib/libsigc-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/liblua5.1.so -luuid -L/usr/lib -lpython2.6 -lpcre /usr/lib/libgthread-2.0.so /usr/lib/libgmodule-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libxml2.so /usr/lib/libcairo.so -lGL -lzip -lz -L/usr/lib/mysql /usr/lib/libmysqlclient_r.so /usr/lib/libsqlite3.so -lX11 -pthread -Wl,-rpath -Wl,/opt/mysql-workbench-gpl-5.2.36/lib/mysql-workbench
grt_python_debugger.o: In function `PythonDebugger::init_pdb()':
grt_python_debugger.cpp:(.text+0x1c37): undefined reference to `grt::PythonContext::get()'
grt_python_debugger.cpp:(.text+0x1c80): undefined reference to `grt::PythonContext::import_module(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
grt_python_debugger.cpp:(.text+0x1e27): undefined reference to `grt::PythonContext::eval_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
grt_python_debugger.cpp:(.text+0x220d): undefined reference to `grt::PythonContext::set_global(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, _object*)'
../../../backend/wbprivate/libwbprivate.a(wb_tunnel.o): In function `wb::TunnelManager::start()':
wb_tunnel.cpp:(.text+0x18c): undefined reference to `grt::PythonContext::get()'
wb_tunnel.cpp:(.text+0x1a8): undefined reference to `grt::PythonContext::run_file(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
wb_tunnel.cpp:(.text+0x2cf): undefined reference to `grt::PythonContext::eval_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../library/grt/src/.libs/libgrt.so: undefined reference to `grt::PythonModuleLoader::PythonModuleLoader(grt::GRT*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../backend/wbpublic/.libs/libwbpublic.so: undefined reference to `typeinfo for grt::PythonModuleLoader'
../../../library/grt/src/.libs/libgrt.so: undefined reference to `grt::PythonContext::add_module_path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
collect2: ld returned 1 exit status
make[4]: *** [mysql-workbench-bin] Erreur 1
make[4]: quittant le répertoire « /tmp/mysql-workbench-gpl-5.2.36-src/frontend/linux/workbench »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /tmp/mysql-workbench-gpl-5.2.36-src/frontend/linux »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /tmp/mysql-workbench-gpl-5.2.36-src/frontend »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /tmp/mysql-workbench-gpl-5.2.36-src »
make: *** [all] Erreur 2

===================
I saw that : http://bugs.mysql.com/bug.php?id=60925
To answer Alfredo Kojima :

$ gcc --version
gcc (Debian 4.4.5-8) 4.4.5

How to repeat:
./autogen.sh --prefix=/opt/mysql-workbench-gpl-5.2.36
make
[7 Dec 2011 13:00] Mickael Perraud
Same for me
[10 Dec 2011 20:13] Misel Mesnjak
The same is happening to me
[21 Dec 2011 2:56] Alfredo Kojima
Can you attach the config.log file?
[21 Dec 2011 11:52] Mickael Perraud
Config Log file

Attachment: config.log (text/x-log), 51.62 KiB.

[21 Dec 2011 13:10] Alfredo Kojima
Can you redirect the full build log to a file and attach it gzipped?
[21 Dec 2011 13:34] Mickael Perraud
Build log files. Thanks!

Attachment: workbench-build.tar.gz (application/x-gzip, text), 23.46 KiB.

[21 Dec 2011 13:53] Alfredo Kojima
Thanks for the logs, but it seems it's incomplete. Can you type make clean before make > build.log?
Also, seems you're missing libmysqlclient_r, make sure you have all mysql server client lib packages installed.
[21 Dec 2011 14:14] Mickael Perraud
I did the "make clean" before.
I have:
 - libmysqlclient16   (5.1.58-1~dotdeb.1)
 - libmysqlclient18   (5.5.18-1~dotdeb.1)
 - libmysqld-dev      (5.5.18-1~dotdeb.1)
 - libmysqlclient-dev (5.5.18-1~dotdeb.1)
[21 Dec 2011 14:15] Mickael Perraud
To complete, I have:
 - mysql-server (5.1.58-1~dotdeb.1)
 - mysql-client (5.1.58-1~dotdeb.1)
[21 Dec 2011 14:16] Alfredo Kojima
Can you then cd into library/grt before typing make?
[21 Dec 2011 14:47] Mickael Perraud
Build.log for library/grt make

Attachment: library-grt.log.tar.gz (application/x-gzip, text), 2.54 KiB.

[17 Jan 2012 20:07] Alfredo Kojima
We can't repeat/fix this without installing Debian squeeze, but since this is not a supported platform
and installing a new distro takes significant work, we would rather direct effort to other bugs. However, if someone has a patch, feel free to reopen the bug and we can incorporate it. Thanks.
[17 Jan 2012 20:47] Mickael Perraud
Just to complete, I tried on a pure Debian 6.0.3 (no additionnal packages) and I can compile and run without problem the 5.2.37.

On a Debian up-to-date + Dotdeb packages, I still can't.