Bug 749224 - #error "Only <glib.h> can be included directly."
Summary: #error "Only <glib.h> can be included directly."
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glib2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-26 14:19 UTC by Tom Lane
Modified: 2013-07-03 03:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-26 14:43:26 UTC
Type: ---


Attachments (Terms of Use)

Description Tom Lane 2011-10-26 14:19:34 UTC
Description of problem:
As of rawhide tip, a distressingly large fraction of glib2-using programs FTBFS with

/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."

or variants of that.  If this isn't an outright bug, it represents a draconian API narrowing that maybe you'd better reconsider.

Version-Release number of selected component (if applicable):
glib2-devel-2.31.0-1.fc17

How reproducible:
100%

Steps to Reproduce:
1.  Try to build a lot of Fedora packages in mock with -r fedora-rawhide-x86_64,
for instance abiword, audacity, gnome-chemistry-utils (there are lots more)

Actual results:
I'm seeing a lot of failures that seem unrelated to what I actually intended to test.

Expected results:
These packages must have built not too long ago.

Additional info:

Comment 1 Matthias Clasen 2011-10-26 14:43:26 UTC
Not a bug, just a change. 
It has been recommended for a long time to that you only include <glib.h>.
This is now being enforced in GLib 2.31


Note You need to log in before you can comment on or make changes to this bug.