Bug 644853

Summary: Syntax error in package glib2-devel, file gdbusintrospection.h
Product: [openSUSE] openSUSE 11.4 Reporter: Ilya Chernykh <anixx>
Component: BasesystemAssignee: E-mail List <gnome-bugs>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: dimstar
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ilya Chernykh 2010-10-08 07:32:07 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.13) Gecko/20100914 SUSE/2.0.8-57.3 SeaMonkey/2.0.8

I encountered the following error while compipiling a package depended on glib2-devel:

/usr/include/glib-2.0/gio/gdbusintrospection.h: At global scope:
/usr/include/glib-2.0/gio/gdbusintrospection.h:151:25: error: expected unqualified-id before 'protected'
/usr/include/glib-2.0/gio/gdbusintrospection.h:151:25: error: expected ';' before 'protected'



Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Ilya Chernykh 2010-10-08 07:33:27 UTC
Under 11.3 the same package builds well.
Comment 2 Ilya Chernykh 2010-12-19 09:47:30 UTC
Does anybody plan to revisit this bug?
Comment 3 Dominique Leuenberger 2010-12-19 20:27:07 UTC
Please provide a test case where this could be verified (which package for example fails with this error).

glib2-devel is being used by dozens of packages in openSUSE.
Comment 5 Dominique Leuenberger 2010-12-20 12:26:02 UTC
Thanks... This helped me drill down.

Still: not exactly an error in glib itself, but actually a conflict between glib and Qt.

Both define "signals", but different.

you could add this patch to this package to resolve the issue:
Index: gtk-qt-engine-0.8svn20071009/src/qt_qt_wrapper.cpp
===================================================================
--- gtk-qt-engine-0.8svn20071009.orig/src/qt_qt_wrapper.cpp
+++ gtk-qt-engine-0.8svn20071009/src/qt_qt_wrapper.cpp
@@ -15,6 +15,11 @@
 #include <qapplication.h>
 #include <qdir.h>
 #include <qregexp.h>
+
+//work around compile issue with glib >= 2.25
+#ifdef signals
+ #undef signals
+#endif
 #include <gdk/gdkx.h>
 
 #include <cstdlib>
Comment 6 Ilya Chernykh 2010-12-20 15:10:05 UTC
I cannot patch, it says the hunks failed. Can you submit the patch to KDE:KDE3 repository please?
Comment 7 Dominique Leuenberger 2010-12-20 16:04:53 UTC
created request id 56432

closing, as there was no error in glib2-devel.
Comment 8 Ilya Chernykh 2010-12-20 16:13:27 UTC
Thank you very much.