Bug #24428 Compile error on mysql-gui-common
Submitted: 19 Nov 2006 13:46 Modified: 26 Jan 2007 9:19
Reporter: Andre Hinrichs Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S2 (Serious)
Version:5.0r6, 1842 OS:Linux (linux)
Assigned to: CPU Architecture:Any

[19 Nov 2006 13:46] Andre Hinrichs
Description:
On my Gentoo system I can not compile MySQL GUI Tools due to a compile error while compiling mysql-gui-common. I tried to simply do "./autogen.sh ; make" inside the directory. autogen.sh runs (nearly) fine, but make results in an error. To be sure I got the current SVN version 1842. The error says to use -fexception but where can I add this option? Why is are exceptions disabled?

make[3]: Entering directory `/root/workbench-cvs/mysql-gui-common/source/linux'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/cairomm-1.0   -I/usr/include/mysql -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -I../../library/base-library/include -I../../library/utilities/include -I../../library/utilities/shared_include -I../../library/generic-runtime/include -I../../library/sql-parser/include -I../../library/grt-modules/include -I../../library/grt-wb-controller/include -I../../library/generic-canvas/include -I../../library/generic-canvas/ftgl/include -I.. -DDATADIRNAME=\""/usr/local/share"\" -DCOMMONDIRNAME=\"""\"    -Wall -MT MGGladeXML.o -MD -MP -MF ".deps/MGGladeXML.Tpo" -c -o MGGladeXML.o MGGladeXML.cc; \
        then mv -f ".deps/MGGladeXML.Tpo" ".deps/MGGladeXML.Po"; else rm -f ".deps/MGGladeXML.Tpo"; exit 1; fi
MGGladeXML.cc: In constructor 'MGGladeXML::MGGladeXML(const std::string&, const Glib::ustring&, const std::string&)':
MGGladeXML.cc:43: error: exception handling disabled, use -fexceptions to enable
make[3]: *** [MGGladeXML.o] Error 1
make[3]: Leaving directory `/root/workbench-cvs/mysql-gui-common/source/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/workbench-cvs/mysql-gui-common/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/workbench-cvs/mysql-gui-common'
make: *** [all] Error 2

And here is some more information:
# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,objc,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)

Do you need infos about installed libraries? If so, please let me know which ones.

How to repeat:
1. cd to source dir
2. ./autogen.sh
3. make
[25 Nov 2006 9:17] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, from GUI Tools 5.0r6, and inform about the results.
[27 Nov 2006 0:18] Andre Hinrichs
Unfortunately both SVN version 1861 and release R6 fail to compile here with the given install instructions.
However, the ebuild in the gentoo portage tree somehow manages to pass a -fexceptions parameter to the compile process and is at least capable to install mysql-administrator and mysql-query-browser.
Thus, it may be that only the install instructions are wrong.
[23 Dec 2006 13:59] Valeriy Kravchuk
Please, try to repeat with a newer version, from GUI Tools 5.0r8, and inform about the results.
[24 Jan 2007 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[26 Jan 2007 9:19] Andre Hinrichs
Possibly due to changes on my system the error has gone. Even with release 6.
So, currently, I can't reproduce the error and am closing this bug.