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 586889 - solaris 10 (and earlier) Forte CC cannot compile glibmm
solaris 10 (and earlier) Forte CC cannot compile glibmm
Status: RESOLVED INCOMPLETE
Product: glibmm
Classification: Bindings
Component: build
2.20.x
Other opensolaris
: Normal blocker
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-06-24 20:59 UTC by The Written Word
Modified: 2010-09-01 19:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description The Written Word 2009-06-24 20:59:23 UTC
this part of refptr.h (around line 214):

template <class T_CppObject>
 template <class T_CastFrom>
inline RefPtr<T_CppObject>::RefPtr(const RefPtr<T_CastFrom>& src)
:
 pCppObject_ (src.operator->())
{
 if(pCppObject_)
   pCppObject_->reference();
}

causes the Forte compiler to barf thus:

"../../glib/glibmm/refptr.h", line 214: Error: Cannot use const Gio::File* to initialize Gio::File*.

Removing the 'const' keyword results in this error instead:

"../../glib/glibmm/refptr.h", line 214: Error: Could not find a match for Glib::RefPtr<Glib::T_CppObject>::RefPtr(Glib::RefPtr<Glib::RefPtr<Glib::T_CppObject>::T_CastFrom>&).

Using pCppObject_ (const_cast<T_CppObject*>(src.operator->())), does allow compilation of glibmm to succeed.  But then gtkmm fails to compile with:

/usr/local/include/glibmm/refptr.h: In constructor 'Glib::RefPtr<T_CppObject>::RefPtr(const Glib::RefPtr<T_CastFrom>&) [with T_CastFrom = Gtk::ListStore, T_CppObject = Gtk::TreeModel]':
comboboxtext.cc:35:   instantiated from here
/usr/local/include/glibmm/refptr.h:214: error: invalid const_cast from type 'Gtk::ListStore*' to type 'Gtk::TreeModel*'
Comment 1 Jonathon Jongsma 2010-01-06 05:54:25 UTC
Can you explain where the first error you mentioned was coming from?  Which line was trying to instantiate the Gio::File refptr?
Comment 2 Jonathon Jongsma 2010-04-22 02:45:07 UTC
It's been several months without feedback, are you still unable to compile glibmm?
Comment 3 Murray Cumming 2010-04-22 06:51:29 UTC
This looks a lot like similar problem we've had before. We have a SUN-specific macro in our convert*.m4 files that we use sometimes for this. But we need to know where this is instantiated. That means, we need to see the whole compiler error.
Comment 4 Tobias Mueller 2010-09-01 19:24:12 UTC
Closing as no further information has been provided. Please reopen if you can obtain the full compiler error. Thanks in advance.