Hide Forgot
Building systemtap(-grapher) from rawhide src.rpm source fails because it uses -Werror, and suffers from new deprecation related warnings from gtkmm24 <-> glib2-devel conflicts: CXX stapgraph-grapher.o In file included from /usr/include/glibmm-2.4/glibmm.h:125:0, from /usr/include/gtkmm-2.4/gtkmm.h:87, from GraphWidget.hxx:16, from grapher.cxx:9: /usr/include/glibmm-2.4/glibmm/thread.h: In function ‘void Glib::thread_init(GThreadFunctions*)’: /usr/include/glibmm-2.4/glibmm/thread.h:786:3: error: ‘void g_thread_init(gpointer)’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Werror=deprecated-declarations] /usr/include/glibmm-2.4/glibmm/thread.h:786:23: error: ‘void g_thread_init(gpointer)’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Werror=deprecated-declarations] /usr/include/glibmm-2.4/glibmm/thread.h: In member function ‘T* Glib::StaticPrivate<T>::get()’: /usr/include/glibmm-2.4/glibmm/thread.h:1050:26: error: ‘void* g_static_private_get(GStaticPrivate*)’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:245): Use 'g_private_get' instead [-Werror=deprecated-declarations] /usr/include/glibmm-2.4/glibmm/thread.h: In member function ‘void Glib::StaticPrivate<T>::set(T*, Glib::StaticPrivate<T>::DestroyNotifyFunc)’: /usr/include/glibmm-2.4/glibmm/thread.h:1056:3: error: ‘void g_static_private_set(GStaticPrivate*, gpointer, GDestroyNotify)’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:248): Use 'g_private_set' instead [-Werror=deprecated-declarations] /usr/include/glibmm-2.4/glibmm/thread.h: In constructor ‘Glib::Private<T>::Private(Glib::Private<T>::DestructorFunc)’: /usr/include/glibmm-2.4/glibmm/thread.h:1072:13: error: ‘GPrivate* g_private_new(GDestroyNotify)’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:231) [-Werror=deprecated-declarations] cc1plus: all warnings being treated as errors
Thank you for reporting this issue, i updated rawhide glibmm24 to upstream 2.31.2 which should not use deprecated API anymore. Could you confirm us that the latest glibmm24 package have fixed your build ?
The new code still makes reference to g_static_private_{get,set} and g_private_new in glibmm/thread.h, so those warnings are still present.
See also http://developer.gnome.org/glib/2.31/glib-Deprecated-Thread-APIs.html
I was able to build systemtap-grapher using a patched glibmm24 2.31.2. Could you confirm that this scratch build do fix your issue ? http://koji.fedoraproject.org/koji/taskinfo?taskID=3561933 For the record, a patch was submitted upstream to fix this issue (GNOME BZ #662374 -- https://bugzilla.gnome.org/show_bug.cgi?id=662374)
> I was able to build systemtap-grapher using a patched glibmm24 2.31.2. Could > you confirm that this scratch build do fix your issue ? Confirmed.
patch accepted upstream http://git.gnome.org/browse/glibmm/commit/?id=ce45ebe8f61ce55230ef15947612c61c7f283bd2