[Bug 849842] New: OpenSUSE 13.1: glibconfig.h incompatible with other GLIB headers
https://bugzilla.novell.com/show_bug.cgi?id=849842 https://bugzilla.novell.com/show_bug.cgi?id=849842#c0 Summary: OpenSUSE 13.1: glibconfig.h incompatible with other GLIB headers Classification: openSUSE Product: openSUSE 13.1 Version: RC 1 Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: giles.atkinson@eu.citrix.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 Attempting to compile code that includes glibconfig.h fails: /tmp> cat /etc/issue Welcome to openSUSE 13.1 "Bottle" - Kernel \r (\l). /tmp> cat t.c #include <glibconfig.h> /tmp> gcc `pkg-config --cflags glib-2.0` t.c In file included from /usr/lib/glib-2.0/include/glibconfig.h:9:0, from t.c:1: /usr/include/glib-2.0/glib/gmacros.h:35:2: error: #error "Only <glib.h> can be included directly." #error "Only <glib.h> can be included directly." ^ Reproducible: Always Steps to Reproduce: 1.As above. 2. 3. Actual Results: As above. Expected Results: Compilation fails at links stage. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849842 https://bugzilla.novell.com/show_bug.cgi?id=849842#c1 Thorsten Kukuk <kukuk@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Thorsten Kukuk <kukuk@suse.com> 2013-11-12 08:32:52 UTC --- So please fix your code. The error message is very clear: only glib.h should be directly included by C source code, not one of the internal header files. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849842 https://bugzilla.novell.com/show_bug.cgi?id=849842#c2 Giles Atkinson <giles.atkinson@eu.citrix.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from Giles Atkinson <giles.atkinson@eu.citrix.com> 2013-11-12 17:14:20 UTC --- It seems hardly worth bothering to reply in such a trivial and patronising fashion. Of course I would "fix" the code if it were straightforward to do so. The header is included to for a reason: we build on a variety of environments and it needs to be explicitly included to detect quirky behaviour of Linaro, the dominant environment on ARM hard-float systems. What suggests that this is an OpenSUSE 13.1 bug is that the problem does not occur with Debian 7, Ubuntu 13.10 and OpenSUSE 12.x. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849842 https://bugzilla.novell.com/show_bug.cgi?id=849842#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |os.gnome.maintainers@gmail. |ovo.novell.com |com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849842 https://bugzilla.novell.com/show_bug.cgi?id=849842#c3 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |dimstar@opensuse.org Resolution| |WONTFIX --- Comment #3 from Dominique Leuenberger <dimstar@opensuse.org> 2014-01-18 14:20:33 UTC --- Giles, The fact that you're no longer allowed to include individual headers of GLIB2 is NOT an openSUSE issue. GLIB, since version 2.31, disallows (beofre that, discouraged) the inclusion of individual headers. The only header that is VALID to be explicitly included is glib.h; all others are implicit. For gmacros.h specifically, this was enforced with the commit https://git.gnome.org/browse/glib/commit/glib/gmacros.h?id=7455dd370eb37ce3b... (Back in October 2011!) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com