Bug 750023
Summary: | references to glib headers other than glib.h | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rex Dieter <rdieter> |
Component: | meanwhile | Assignee: | Josh Boyer <jwboyer> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | anto.trande, jwboyer, kevin |
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-11-18 19:00:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 750024 |
Description
Rex Dieter
2011-10-30 02:09:21 UTC
Should be fixed in rawhide I have the below error; is it the same bug ? ... make all-recursive make[1]: Entering directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9' Making all in src make[2]: Entering directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9/src' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9/src' Making all in engines make[2]: Entering directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9/engines' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9/engines' Making all in external make[2]: Entering directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9/external' gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../src -g -O2 -Wall -Wpointer-arith -MT rccexternal.o -MD -MP -MF .deps/rccexternal.Tpo -c -o rccexternal.o rccexternal.c In file included from rccexternal.c:59:0: /usr/include/glib-2.0/glib/gthread.h:28:2: error: #error "Only <glib.h> can be included directly." In file included from /usr/include/glib-2.0/glib/gthread.h:34:0, from rccexternal.c:59: /usr/include/glib-2.0/glib/gatomic.h:23:2: error: #error "Only <glib.h> can be included directly." In file included from /usr/include/glib-2.0/glib/gatomic.h:29:0, from /usr/include/glib-2.0/glib/gthread.h:34, from rccexternal.c:59: /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/gatomic.h:29, from /usr/include/glib-2.0/glib/gthread.h:34, from rccexternal.c:59: /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/gatomic.h:29, from /usr/include/glib-2.0/glib/gthread.h:34, from rccexternal.c:59: /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/gatomic.h:29, from /usr/include/glib-2.0/glib/gthread.h:34, from rccexternal.c:59: /usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly." In file included from /usr/include/glib-2.0/glib/gthread.h:35:0, from rccexternal.c:59: /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/gthread.h:35, from rccexternal.c:59: /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/gthread.h:35, from rccexternal.c:59: /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly." rccexternal.c: In function ‘main’: rccexternal.c:173:3: warning: implicit declaration of function ‘g_thread_create’ [-Wimplicit-function-declaration] make[2]: *** [rccexternal.o] Error 1 make[2]: Leaving directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9/external' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/sagitter/rpmbuild/SOURCES/librcc-0.2.9' make: *** [all] Error 2 Yours is a different problem, newer versions of glib2 don't allow apps to #include anything but glib.h anymore. You'll need to patch the app to drop references to things like gthread.h gerror.h, etc... and only use #include <glib.h> Sorta. It's the same problem, but in a different codebase. Unfortunately, every package including individual GLib headers directly needs to be fixed separately. (It's sad that GLib decided to gratuitously break backwards compatibility this way, but it's intentional and they will not change it.) |