Bug #53668 | Fails to build from source | ||
---|---|---|---|
Submitted: | 15 May 2010 9:00 | Modified: | 14 Jun 2010 10:26 |
Reporter: | Norbert Tretkowski | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S2 (Serious) |
Version: | 5.2.21 | OS: | Linux (Debian unstable) |
Assigned to: | Alfredo Kojima | CPU Architecture: | Any |
[15 May 2010 9:00]
Norbert Tretkowski
[15 May 2010 9:01]
Norbert Tretkowski
Wrong MySQL Workbench version...
[16 May 2010 22:22]
Alfredo Kojima
What version of gcc does debian unstable use?
[17 May 2010 15:23]
Norbert Tretkowski
Debian unstable uses gcc 4.4.4.
[17 May 2010 16:21]
Alfredo Kojima
Hi Do you know if debian has a pre-build ctemplate package? Can you install it instead and build WB with --with-system-ctemplate ?
[18 May 2010 6:44]
Norbert Tretkowski
An initial ctemplate package was uploaded to Debian last week, but it needs to be accepted before it's getting into the archive. I'll test building against Debian's ctemplate package as soon as it's available.
[21 May 2010 11:46]
Alfredo Kojima
Please tell us once you've tried with Debian ctemplate package.
[2 Jun 2010 11:17]
Norbert Tretkowski
I tried building MySQL Workbench 5.2.21 against ctemplate 0.97 using --with-system-ctemplate, but it seems that --with-system-ctemplate option got completely ignored, it still fails with the same error.
[4 Jun 2010 2:44]
Alfredo Kojima
Can you paste the last 20 or so lines from the build log and also the config.log generated when you ran configure with --with-system-ctemplate?
[10 Jun 2010 12:40]
Norbert Tretkowski
config.log
Attachment: config.log (text/x-log), 55.38 KiB.
[10 Jun 2010 13:27]
Norbert Tretkowski
Sorry, the error when using --with-system-ctemplate is not the same: libtool: link: g++ -rdynamic -g -O2 -Wextra -Wall -Wno-unused -Wno-deprecated -o .libs/mysql-workbench-bin main.o program.o main_form.o overview_panel.o model_panel.o model_diagram_panel.o menu_manager.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 sql_snippets_view.o query_sidebar.o sqlide_main.o new_server_instance_wizard.o server_instance_editor.o -pthread -pthread /usr/lib/libpython2.5.so -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/src/.libs/libwbbase.so ../../../library/grt/src/.libs/libgrt.so ../../../library/dbc/.libs/libcdbc.so ../../../library/canvas/src/.libs/libmdcanvasgtk.so ../../../library/canvas/src/.libs/libmdcanvas.so -lctemplate /usr/lib/libglade-2.0.so /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/libgnome-2.so /usr/lib/libpopt.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBit-2.so /usr/lib/libgobject-2.0.so /usr/lib/liblua5.1.so -luuid -L/usr/lib -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,/usr/lib/mysql-workbench ../../../backend/wbpublic/.libs/libwbpublic.so: undefined reference to `ctemplate::Template::ExpandWithData(ctemplate::ExpandEmitter*, ctemplate::TemplateDictionaryInterface const*, ctemplate::PerExpandData*) const' ../../../backend/wbpublic/.libs/libwbpublic.so: undefined reference to `ctemplate::Template::ClearCache()' ../../../backend/wbpublic/.libs/libwbpublic.so: undefined reference to `ctemplate::Template::GetTemplate(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ctemplate::Strip)' collect2: ld returned 1 exit status make[5]: *** [mysql-workbench-bin] Error 1 make[5]: Leaving directory `/tmp/buildd/mysql-workbench-oss-5.2.22/frontend/linux/workbench'
[10 Jun 2010 13:32]
Alfredo Kojima
Hi What version of ctemplate is shipped with Debian?
[10 Jun 2010 13:37]
Norbert Tretkowski
Debian comes with ctemplate 0.97.
[10 Jun 2010 16:08]
Alfredo Kojima
I've fixed a few bugs in the Makefiles which cause the compilation to use ctemplate headers from the wrong place, which can cause the error you're getting. I've also changed the configure script to not require --with-system-ctemplate, and instead detecting the headers automatically.
[10 Jun 2010 18:15]
Norbert Tretkowski
Are your changes already available somewhere, so I can test them?
[11 Jun 2010 17:33]
Johannes Taxacher
changes confirmed in repository. will be included in next release
[14 Jun 2010 10:26]
Tony Bedford
An entry has been added to the 5.2.23 changelog: MySQL Workbench failed to build from source code on Debian Linux. The following error was generated: libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -g -O2 -Wextra -Wall -Wno-unused -Wno-deprecated -c src/template.cc -fPIC -DPIC -o .libs/libctemplate_wb_la-template.o In file included from ./src/ctemplate/per_expand_data.h:48, from ./src/ctemplate/template_modifiers.h:69, from src/template_modifiers_internal.h:53, from src/template.cc:61: ./src/ctemplate/template_string.h:88: error: ISO C++ forbids declaration of 'TemplateId' with no type ./src/ctemplate/template_string.h: In member function 'size_t ctemplate::TemplateIdHasher::operator()(ctemplate::TemplateId) const': ./src/ctemplate/template_string.h:234: warning: right shift count >= width of type ./src/ctemplate/template_string.h: At global scope: ./src/ctemplate/template_string.h:344: warning: overflow in implicit constant conversion src/template.cc: In static member function 'static void ctemplate::Template::AssureGlobalsInitialized()': src/template.cc:2365: warning: comparison between signed and unsigned integer expressions make[5]: *** [libctemplate_wb_la-template.lo] Error 1