Bug #18512 Fails to compile with g++ 4.1
Submitted: 26 Mar 2006 2:33 Modified: 4 Apr 2006 19:10
Reporter: [ name withheld ] Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.1.18 OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[26 Mar 2006 2:33] [ name withheld ]
Description:
This is a forwarded bug report from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357334

-----------------------------

> Automatic build of mysql-query-browser_1.1.18-2 on bigsur by sbuild/mips 1.94
...
> mips-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DXTHREADS -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/X11R6/include -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/mysql -DBIG_JOINS=1 -I../../library/include -I../../library_util/include -I../../library_util/shared_include -I../../library_grt/include -I../../library_grt_modules/include -I../../library_grt_workbench/include -I../../library_gc/include -I../../library_gc/ftgl/include -I.. -DDATADIRNAME=\""share"\" -DCOMMONDIRNAME=\"""\"    -g -O2 -c -o MGConnectDialog.o MGConnectDialog.cc

> MGPreferences.h:43: error: extra qualification 'MGOptions::' on member 'find_values'
> make[4]: *** [MGConnectDialog.o] Error 1

How to repeat:
Compile with g++ 4.1

Suggested fix:
--- ./mysql-gui-common/tags/linux-before-gtkmm2.4/MGPreferences.h~	2006-03-16 19:17:07.000000000 +0000
+++ ./mysql-gui-common/tags/linux-before-gtkmm2.4/MGPreferences.h	2006-03-16 19:17:13.000000000 +0000
@@ -40,7 +40,7 @@
     virtual MYX_APPLICATION_OPTIONS *prepare_options()= 0;
 
     const char *find_value(MYX_OPTION_GROUP *group, const char *name);
-    std::list<const char *>MGOptions::find_values(MYX_OPTION_GROUP *group, const char *name);
+    std::list<const char *>find_values(MYX_OPTION_GROUP *group, const char *name);
 
     void add_group(MYX_APPLICATION_OPTIONS *options, const char *name,
                    const std::list<ValuePair> &values);

--- ./mysql-gui-common/source/linux/MGPreferences.h~	2006-03-16 19:16:51.000000000 +0000
+++ ./mysql-gui-common/source/linux/MGPreferences.h	2006-03-16 19:16:57.000000000 +0000
@@ -40,7 +40,7 @@
     virtual MYX_APPLICATION_OPTIONS *prepare_options()= 0;
 
     const char *find_value(MYX_OPTION_GROUP *group, const char *name);
-    std::list<const char *>MGOptions::find_values(MYX_OPTION_GROUP *group, const char *name);
+    std::list<const char *>find_values(MYX_OPTION_GROUP *group, const char *name);
 
     void add_group(MYX_APPLICATION_OPTIONS *options, const char *name,
                    const std::list<ValuePair> &values);
[31 Mar 2006 12:32] Paul Banks
Dupe of

http://bugs.mysql.com/bug.php?id=16935
[4 Apr 2006 19:10] MySQL Verification Team
Thank you for the bug report. How mentioned before duplicate of bug:
http://bugs.mysql.com/bug.php?id=16935