GNOME Bugzilla – Bug 107152
libgnomeuimm won't compile: app-helper.cc: In method `const class Gnome::UI::Items::InfoData....
Last modified: 2011-01-16 23:41:31 UTC
I am unable to compile gnomemm due to the following error, using gcc 2.95.3 with all the latest gnome libs/packages. I did not get this error compiling gnomemm 1.3.12. ./configure make app-helper.cc: In method `const class Gnome::UI::Items::InfoData * Gnome::UI::Items::Info::get_data_() const': app-helper.cc:123: static_cast from `void *' to `const Gnome::UI::Items::InfoData *' make[5]: *** [app-helper.lo] Error 1 make[5]: Leaving directory `/download/apps/gnomemm-all-1.3.15/libgnomeuimm/libgnomeui/libgnomeuimm' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/download/apps/gnomemm-all-1.3.15/libgnomeuimm/libgnomeui/libgnomeuimm' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/download/apps/gnomemm-all-1.3.15/libgnomeuimm/libgnomeui' make[2]: *** [all] Error 2 make[2]: Leaving directory `/download/apps/gnomemm-all-1.3.15/libgnomeuimm/libgnomeui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/download/apps/gnomemm-all-1.3.15/libgnomeuimm' make: *** [all-recursive] Error 1
I tried to change this myself after refreshing my C++ skills. Now, gnomemm compiles without an error, but I'm not sure if it will work later: To: const InfoData* Info::get_data_() const { return static_cast<InfoData*>(GnomeUIInfo::unused_data); } From: const InfoData* Info::get_data_() const { return static_cast<const InfoData*>(GnomeUIInfo::unused_data); }
What version of gnome-libs do you have?
Sorry, ignore that - I thought you were talking about GNOME 1.4. I'll investigate. Thanks.
Added PATCH keyword so we don't forget about this, but it would be nice to have a real patch. I think the change looks fine.
Applied patch in CVS HEAD