mate-desktop/mate-system-monitor — Issue #2: build error with glib2-2.31
Author: NiceandGently
Created: 2012-03-08 08:14:44+00:00
State: open

Building mate-system-monitor against glib2-31 which is include the upcoming fedora 17 release ends up in following errors.

size=4 -m64 -mtune=generic -c -o load-graph.o load-graph.cpp
DEBUG: In file included from load-graph.h:4:0,
DEBUG: from procman.cpp:39:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: In file included from interface.h:23:0,
DEBUG: from procman.cpp:41:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: In file included from interface.h:23:0,
DEBUG: from interface.cpp:35:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: In file included from load-graph.h:4:0,
DEBUG: from interface.cpp:38:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: In file included from interface.h:23:0,
DEBUG: from callbacks.cpp:29:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: In file included from openfiles.h:4:0,
DEBUG: from callbacks.cpp:35:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: In file included from load-graph.h:4:0,
DEBUG: from callbacks.cpp:36:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: In file included from lsof.h:4:0,
DEBUG: from callbacks.cpp:38:
DEBUG: /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only can be included directly."
DEBUG: In file included from load-graph.h:4:0,
DEBUG: from load-graph.cpp:27:
DEBUG: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only can be included directly."
DEBUG: make[2]: *** [interface.o] Error 1
DEBUG: make[2]: *** Waiting for unfinished jobs....
DEBUG: make[2]: *** [procman.o] Error 1
DEBUG: make[2]: *** [load-graph.o] Error 1
DEBUG: make[2]: *** [callbacks.o] Error 1

I found this solution for mysql http://lists.opensuse.org/opensuse-factory/2012-01/msg00261.html
The patch file:
http://dl.dropbox.com/u/49862637/Mate-desktop/mate-system-monitor_glib-2.31.patch

Compiling with a patch source against glib2-2.30 is no problem.