After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 131172 - duplicate namespace in atkmm/text.h and gtkmm/enums.h
duplicate namespace in atkmm/text.h and gtkmm/enums.h
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.2
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
: 131926 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-01-11 19:52 UTC by Takashi Takekawa
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix duplicate namespace (736 bytes, patch)
2004-01-11 19:55 UTC, Takashi Takekawa
none Details | Review
fixed patch (1.60 KB, patch)
2004-01-13 06:56 UTC, Takashi Takekawa
none Details | Review

Description Takashi Takekawa 2004-01-11 19:52:16 UTC
Intel compiler (both version 7 and 8) can not compile atk/atkmm/text.cc and
gtk/gtkmm/enums.cc because of the duplicate namespace definitions such as
`namespace Glib { class Glib::XXX; }`.

../../atk/atkmm/text.h(181): error: qualified name is not allowed in
namespace member declaration
  class Glib::Value<Atk::TextAttribute> : public
Glib::Value_Enum<Atk::TextAttribute>
        ^
 
../../atk/atkmm/text.h(181): error: class "Glib::<error>" is not an entity
that can be explicitly specialized
  class Glib::Value<Atk::TextAttribute> : public
Glib::Value_Enum<Atk::TextAttribute>
  ^
 
text.cc(33): error: incomplete type is not allowed
  GType Glib::Value<Atk::TextAttribute>::value_type()
        ^

../../gtk/gtkmm/enums.h(1321): error: qualified name is not allowed in
namespace member declaration
  class Glib::Value<Gtk::IconSize> : public Glib::Value_Enum<Gtk::IconSize>
        ^
 
../../gtk/gtkmm/enums.h(1321): error: class "Glib::<error>" is not an
entity that can be explicitly specialized
  class Glib::Value<Gtk::IconSize> : public Glib::Value_Enum<Gtk::IconSize>
  ^
 
enums.cc(32): error: incomplete type is not allowed
  GType Glib::Value<Gtk::IconSize>::value_type()
        ^
Comment 1 Takashi Takekawa 2004-01-11 19:55:54 UTC
Created attachment 23239 [details] [review]
patch to fix duplicate namespace
Comment 2 Murray Cumming 2004-01-12 08:14:59 UTC
Thanks. I will investigate.

Please see
http://www.gtkmm.org/bugs.shtml
about creating patches. This patch patches generated files, and has no
ChangeLog entry.
Comment 3 Takashi Takekawa 2004-01-13 06:56:27 UTC
Created attachment 23299 [details] [review]
fixed patch
Comment 4 Murray Cumming 2004-01-19 21:36:30 UTC
Thanks. Applied, to both branches, with a mention of the Intel
compiler in the ChangeLog.
Comment 5 Murray Cumming 2004-01-20 11:35:51 UTC
*** Bug 131926 has been marked as a duplicate of this bug. ***