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 107152 - libgnomeuimm won't compile: app-helper.cc: In method `const class Gnome::UI::Items::InfoData....
libgnomeuimm won't compile: app-helper.cc: In method `const class Gnome::UI::...
Status: RESOLVED FIXED
Product: libgnomeuimm
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-02-26 22:02 UTC by vidvandre
Modified: 2011-01-16 23:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description vidvandre 2003-02-26 22:02:54 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
Comment 1 vidvandre 2003-02-26 23:51:04 UTC
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);
}
Comment 2 Murray Cumming 2003-02-27 21:13:13 UTC
What version of gnome-libs do you have?
Comment 3 Murray Cumming 2003-02-28 07:50:37 UTC
Sorry, ignore that - I thought you were talking about GNOME 1.4. I'll
investigate. Thanks.
Comment 4 Murray Cumming 2003-03-06 16:06:59 UTC
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.
Comment 5 ÉRDI Gergõ 2003-03-08 14:22:07 UTC
Applied patch in CVS HEAD