Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 412797

Summary: x11-wm/awesome-3.4.11 #error "Only <glib.h> can be included directly."
Product: Gentoo Linux Reporter: Anton Kochkov <anton.kochkov>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: full build log

Description Anton Kochkov 2012-04-20 17:01:52 UTC
Created attachment 309639 [details]
full build log

[0m[ 41%] [32mBuilding C object CMakeFiles/awesome.dir/spawn.c.o
[0mIn file included from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:0:
/usr/include/glib-2.0/glib/gspawn.h:22:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gspawn.h:28:0,
                 from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:
/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/gspawn.h:28,
                 from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:
/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/gspawn.h:28,
                 from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:
/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/gspawn.h:28,
                 from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:
/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/gspawn.h:28,
                 from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:
/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/gspawn.h:28,
                 from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:
/usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
make[2]: *** [CMakeFiles/awesome.dir/spawn.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 1 Anton Kochkov 2012-04-20 17:02:44 UTC
emerge --info output: https://bugs.gentoo.org/attachment.cgi?id=309573
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-20 17:11:10 UTC

*** This bug has been marked as a duplicate of bug 396417 ***