GNOME Bugzilla – Bug 137634
Build fails with latest glibmm
Last modified: 2011-01-16 23:36:10 UTC
The build dies here: eps/transfer.TPlo -fPIC -DPIC -o .libs/transfer.o /usr/include/glibmm-2.3/glibmm/containerhandle_shared.h: In static member function `static T::BaseObjectType* Glib::Container_Helpers::TypeTraits<Glib::RefPtr<T_CppObject> >::to_c_type(const Glib::RefPtr<T_CppObject>&) [with T = const Gnome::Vfs::Uri]': /usr/include/glibmm-2.3/glibmm/listhandle.h:47: instantiated from `GList* Glib::Container_Helpers::create_list(Bi, Bi, Tr) [with Bi = std::_List_iterator<Glib::RefPtr<Gnome::Vfs::Uri>, const Glib::RefPtr<Gnome::Vfs::Uri>&, const Glib::RefPtr<Gnome::Vfs::Uri>*>, Tr = Glib::Container_Helpers::TypeTraits<Glib::RefPtr<const Gnome::Vfs::Uri> >]' /usr/include/glibmm-2.3/glibmm/listhandle.h:81: instantiated from `static GList* Glib::Container_Helpers::ListSourceTraits<Tr, Cont>::get_data(const Cont&) [with Tr = Glib::Container_Helpers::TypeTraits<Glib::RefPtr<const Gnome::Vfs::Uri> >, Cont = Gnome::Vfs::Transfer::transfer_list(const Glib::StringArrayHandle&, const Glib::StringArrayHandle&, Gnome::Vfs::TransferOptions, Gnome::Vfs::ErrorMode, Gnome::Vfs::OverwriteMode, const Gnome::Vfs::Transfer::SlotProgress&)::uri_list]' transfer.cc:272: instantiated from `Glib::ListHandle<T, Tr>::ListHandle(const Cont&) [with Cont = Gnome::Vfs::Transfer::transfer_list(const Glib::StringArrayHandle&, const Glib::StringArrayHandle&, Gnome::Vfs::TransferOptions, Gnome::Vfs::ErrorMode, Gnome::Vfs::OverwriteMode, const Gnome::Vfs::Transfer::SlotProgress&)::uri_list, T = Glib::RefPtr<const Gnome::Vfs::Uri>, Tr = Glib::Container_Helpers::TypeTraits<Glib::RefPtr<const Gnome::Vfs::Uri> >]' transfer.cc:101: instantiated from here /usr/include/glibmm-2.3/glibmm/containerhandle_shared.h:203: invalid conversion from `const GnomeVFSURI*' to `GnomeVFSURI*' make[3]: *** [transfer.lo] Error 1 I looked it over and couldn't figure out how to fix it.
It works for me. What compiler is this? Is this the latest cvs glibmm? Have you tried a fresh checkout? Are you sure you don't have any local changes?
Compiler: gcc 3.2 This happens with both the latest release of glibmm and cvs head of glibmm
I have tried a fresh checkout and it still happens there are no local changes to either tree
Downgrading glibmm to 2.3.6 (the release before the current release 2.3.7) allows gnome-vfsmm to compile.
I fixed this a few days ago in glibmm.