Bug 759644

Summary: build conflict with glib2-devel-2.31.2-2.fc17.x86_64
Product: [Fedora] Fedora Reporter: Frank Ch. Eigler <fche>
Component: glibmm24Assignee: Kalev Lember <kalevlember>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kalevlember, karlthered
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-10 19:00:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Frank Ch. Eigler 2011-12-02 22:18:41 UTC
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

Comment 1 Haïkel Guémar 2011-12-03 03:08:32 UTC
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 ?

Comment 2 Frank Ch. Eigler 2011-12-03 12:32:33 UTC
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.

Comment 3 Frank Ch. Eigler 2011-12-03 13:17:52 UTC
See also http://developer.gnome.org/glib/2.31/glib-Deprecated-Thread-APIs.html

Comment 4 Haïkel Guémar 2011-12-04 20:35:24 UTC
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)

Comment 5 Frank Ch. Eigler 2011-12-04 23:17:12 UTC
> 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.

Comment 6 Haïkel Guémar 2011-12-10 19:00:39 UTC
patch accepted upstream
http://git.gnome.org/browse/glibmm/commit/?id=ce45ebe8f61ce55230ef15947612c61c7f283bd2