Sat 07 Apr 2012 10:05:35 PM UTC, original submission:
In glib-2.31 and newer, most glib subheaders cannot be included directly; instead, one must #include <glib.h>. Attempting to build gksu-2.0.2 against glib-2.32.0 results in the following error:
In file included from libnautilus-gksu.c:8:0:
/usr/include/glib-2.0/glib/gkeyfile.h:24:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gkeyfile.h:30:0,
from libnautilus-gksu.c:8:
/usr/include/glib-2.0/glib/gerror.h:22:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gerror.h:30:0,
from /usr/include/glib-2.0/glib/gkeyfile.h:30,
from libnautilus-gksu.c:8:
/usr/include/glib-2.0/glib/gquark.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gquark.h:34:0,
from /usr/include/glib-2.0/glib/gerror.h:30,
from /usr/include/glib-2.0/glib/gkeyfile.h:30,
from libnautilus-gksu.c:8:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
from /usr/include/glib-2.0/glib/gtypes.h:34,
from /usr/include/glib-2.0/glib/gquark.h:34,
from /usr/include/glib-2.0/glib/gerror.h:30,
from /usr/include/glib-2.0/glib/gkeyfile.h:30,
from libnautilus-gksu.c:8:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gtypes.h:35:0,
from /usr/include/glib-2.0/glib/gquark.h:34,
from /usr/include/glib-2.0/glib/gerror.h:30,
from /usr/include/glib-2.0/glib/gkeyfile.h:30,
from libnautilus-gksu.c:8:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gtypes.h:36:0,
from /usr/include/glib-2.0/glib/gquark.h:34,
from /usr/include/glib-2.0/glib/gerror.h:30,
from /usr/include/glib-2.0/glib/gkeyfile.h:30,
from libnautilus-gksu.c:8:
/usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
make[2]: *** [libnautilus-gksu.lo] Error 1
|