Description:
I tried to install the pre-built MySQL Query Browser 1.1.6 on Linux, but quickly found that it had been linked with (at least) newer versions of libstdc++ and libc than are available to me:
have: libc 2.3.2; need libc 2.3.4
have: libstdc++ 5; need libstdc++ 6
so I decided to build from source, using gcc-3.4.3 (which is the stable version as I write)
$ tar xvfz mysql-query-browser-1.1.6.tar.gz
$ cd mysql-query-browser-1.1.6/mysql-gui-common
$ ./configure --prefix=/usr/local/mysql-query-browser-1.1.6
...
$ make
...
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mysql-gui-common\" -DVERSION=\"0.5.1\" -DGTKMM_VERSION=20000 -I. -I. -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtkmm-2.2 -I/usr/lib/gtkmm-2.2/include -I/usr/include/glibmm-2.2 -I/usr/lib/glibmm-2.2/include -I/usr/include/gdkmm-2.2 -I/usr/lib/gdkmm-2.2/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/mysql -march=i486 -mcpu=i686 -I../../library/include -I../../library/shared_include -DDATADIRNAME=\""share"\" -DCOMMONDIRNAME=\"""\" -g -O2 -MT myg_gtkutils.o -MD -MP -MF ".deps/myg_gtkutils.Tpo" -c -o myg_gtkutils.o myg_gtkutils.cc; \
then mv -f ".deps/myg_gtkutils.Tpo" ".deps/myg_gtkutils.Po"; else rm -f ".deps/myg_gtkutils.Tpo"; exit 1; fi
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from myg_gtkutils.cc:27:
myg_gtkutils.h:89: error: expected unqualified-id before '<' token
myg_gtkutils.h:89: error: expected `,' or `...' before '<' token
myg_gtkutils.h:89: error: ISO C++ forbids declaration of `parameter' with no type
...
If I do the same using the older gcc-3.3.4 instead, the same compilation produces:
...
In file included from myg_gtkutils.cc:27:
myg_gtkutils.h:89: error: parse error before `<' token
...
I think that these are g++ problems; the last looks somewhat similar to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10959. If the error messages from gcc 3.4.3 are correct - the result of a correction to gcc 3.3.4 - does this mean that the source of mysql-gui-common from mysql-query-browser 1.1.6 is in error?
Is there a beta version of the Query Browser source which fixes this problem?
John A. Murdie
Department of Computer Science
University of York
UK
How to repeat:
Build mysql-gui-common as above.