Bug #5788 Gtkmm 2.4 Error
Submitted: 28 Sep 2004 14:21 Modified: 12 Oct 2004 20:26
Reporter: Matthias-Christian Ott Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.7a-beta OS:Arch Linux 0.7
Assigned to: CPU Architecture:Any

[28 Sep 2004 14:21] Matthias-Christian Ott
Description:
Hi!
I wanted to compile the MySQL Query Browser, but if I tried to compile mysql-gui-common, it says gtkmm is not installed. So I created a patch. I worked, but if try to compile it, this error appears:

myg_gtkutils.cc: In function `void myg_show_mysql_error(Gtk::Window&, const Glib::ustring&, MYSQL*)':
myg_gtkutils.cc:206: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Gtk::Window&, Glib::ustring, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_mysql_error(const Glib::ustring&, MYSQL*)':
myg_gtkutils.cc:221: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Glib::ustring, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_error(Gtk::Window&, const Glib::ustring&)':
myg_gtkutils.cc:235: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_error(const Glib::ustring&)':
myg_gtkutils.cc:245: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(const Glib::ustring&, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_warning(Gtk::Window&, const Glib::ustring&)':
myg_gtkutils.cc:255: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_warning(const Glib::ustring&)':
myg_gtkutils.cc:264: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(const Glib::ustring&, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_info(Gtk::Window&, const Glib::ustring&)':
myg_gtkutils.cc:273: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_info(const Glib::ustring&)':
myg_gtkutils.cc:283: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(const Glib::ustring&, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_xlib_error(Gtk::Window&, const Glib::ustring&, MYX_LIB_ERROR)':
myg_gtkutils.cc:293: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Gtk::Window&, Glib::ustring, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_xlib_error(const Glib::ustring&, MYX_LIB_ERROR)':
myg_gtkutils.cc:304: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Glib::ustring, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_sys_error(Gtk::Window&, const Glib::ustring&, int)':
myg_gtkutils.cc:314: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Gtk::Window&, Glib::ustring, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
myg_gtkutils.cc: In function `void myg_show_sys_error(const Glib::ustring&, int)':
myg_gtkutils.cc:325: error: no matching function for call to `Gtk::MessageDialog::MessageDialog(Glib::ustring, Gtk::MessageType, Gtk::ButtonsType, bool)'
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:179: note: candidates are: Gtk::MessageDialog::MessageDialog(Gtk::Window&, const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:178: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ustring&, bool, Gtk::MessageType, Gtk::ButtonsType, bool)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:148: note:                 Gtk::MessageDialog::MessageDialog(GtkMessageDialog*)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:147: note:                 Gtk::MessageDialog::MessageDialog(const Glib::ConstructParams&)
/usr/include/gtkmm-2.4/gtkmm/messagedialog.h:143: note:                 Gtk::MessageDialog::MessageDialog(const Gtk::MessageDialog&)
make[2]: *** [myg_gtkutils.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

How to repeat:
See in the description

Suggested fix:
--- configure.orig	2004-09-01 07:31:10.000000000 +0200
+++ configure	2004-09-28 15:46:19.000000000 +0200
@@ -271,7 +271,8 @@
 PACKAGE_BUGREPORT=
 
 ac_unique_file="source/linux/myg_gtkutils.cc"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GNOME_CFLAGS GNOME_LIBS GTKMM_CFLAGS GTKMM_LIBS MYSQL_INCLUDE MYSQL_LIBS PCRE_CFLAGS PCRE_LIBS DATADIRNAME MA_COMMONDIR mydatadir LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GNOME_CFLAGS GNOME_LIBS GTKMM_CFLAGS 
+GTKMM_LIBS MYSQL_INCLUDE MYSQL_LIBS PCRE_CFLAGS PCRE_LIBS DATADIRNAME MA_COMMONDIR mydatadir LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -3490,23 +3491,23 @@
   else
      PKG_CONFIG_MIN_VERSION=0.9.0
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
-        echo "$as_me:$LINENO: checking for gtkmm-2.0" >&5
+        echo "$as_me:$LINENO: checking for gtkmm-2.4" >&5
 echo $ECHO_N "checking for gtkmm-2.0... $ECHO_C" >&6
 
-        if $PKG_CONFIG --exists "gtkmm-2.0" ; then
+        if $PKG_CONFIG --exists "gtkmm-2.4" ; then
             echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
             succeeded=yes
 
             echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
 echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
-            GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.0"`
+            GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4"`
             echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
 echo "${ECHO_T}$GTKMM_CFLAGS" >&6
 
             echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
 echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
-            GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.0"`
+            GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4"`
             echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
 echo "${ECHO_T}$GTKMM_LIBS" >&6
         else
@@ -3528,12 +3529,12 @@
 
   if test $succeeded = yes; then
      cat >>confdefs.h <<\_ACEOF
-#define GTKMM_VERSION 20000
+#define GTKMM_VERSION 24000
 _ACEOF
 
   else
-     { { echo "$as_me:$LINENO: error: Library requirements (gtkmm-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
-echo "$as_me: error: Library requirements (gtkmm-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
+     { { echo "$as_me:$LINENO: error: Library requirements (gtkmm-2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
+echo "$as_me: error: Library requirements (gtkmm-2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
    { (exit 1); exit 1; }; }
   fi
[12 Oct 2004 20:26] Alfredo Kojima
Hi Matthias,

Query Browser was written for gtkmm-2.2. gtkmm-2.4 is not backwards compatible with 2.2, so it won't compile (as you've already figured). We will port the tools to gtkmm-2.4 and start using that instead of 2.2 in the future, but meanwhile please build against gtkmm-2.2
[24 Dec 2005 13:22] sagar sonawane
But where can i find those compatible gtkmm libraries..if u could tell me  plz 

reply me at : sonawane.sagar@gmail.com