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 155435 - failed to compile gtkmm 2.2/2.4 program using gcc 3.4
failed to compile gtkmm 2.2/2.4 program using gcc 3.4
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-10-14 23:16 UTC by daniel Zhou
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description daniel Zhou 2004-10-14 23:16:25 UTC
compile a gtkmm project (say regexxer) from source, using gcc 3.4.2.
The compiler reports some casting errors, such as:
(gtkmm2.4)
> filebuffer.cc:799:   instantiated from here
> /usr/include/glibmm-2.4/glibmm/refptr.h:199: error:
> invalid conversion from `const Gtk::TextMark*' to
> `Gtk::TextMark*'
(gtkmm2.2)
> instantiated from here
>/usr/include/gtkmm-2.0/glibmm/containerhandle_shared.h:205: error: cannot
>convert `GdkPixbuf*' to `GObject*' for argument `1' to
>`Glib::RefPtr<Glib::Object> Glib::wrap(GObject*, bool)'
Comment 1 daniel Zhou 2004-10-14 23:17:53 UTC
Everything is fine when using gcc 3.3.4.
Comment 2 Alberto Paro 2004-11-10 21:27:24 UTC
Compile without problems with:
gcc 3.4.2
glibmm 2.4.4
gtkmm 2.5.0
bakery 2.3.8
libxml++ 2.8.0
gconfmm 2.8.0
libglademm 2.4.1
libgnomemm 2.8.0
Comment 3 Murray Cumming 2004-12-01 20:10:30 UTC
Yeah, I also have no problem building regexxer (from cvs) with the g++ 3.4 that
is in Fedora core 3:
[murrayc@localhost regexxer]$ g++ --version
g++ (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

Do you have another test case?
Comment 4 daniel Zhou 2004-12-08 21:19:37 UTC
I compiled the program using the gcc 3.4 compiler with Fedora Core 3
successfully. But it still reported errors as what I reported using gcc 3.4.2 in
my Gentoo box. So it seems to be the problem of tool chain in my Gentoo system.
Sorry about the false alarm.
Comment 5 daniel Zhou 2004-12-08 21:28:03 UTC
Those error messages all have something to do with type casting. Is there any
gcc flag that can harden or loose this kind of check?
Comment 6 Murray Cumming 2004-12-09 08:34:16 UTC
Closing, because it can not be reproduced on a mainstream distro.