Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 860031

Summary: headers use G_GNUC_DEPRECATED_FOR which is glib >= 2.26 only
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Berrangé <berrange>
Component: spice-gtkAssignee: Christophe Fergeau <cfergeau>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.4CC: acathrow, cfergeau, dblechte, dyasny, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spice-gtk-0.14-2.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-15 20:45:42 UTC Type: Bug
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: 854318    

Description Daniel Berrangé 2012-09-24 16:49:35 UTC
Description of problem:
I am attempting to rebuild virt-viewer 0.5.2 against spice-gtk 0.14-1.el6 in order to address bug 854318. Unfortunately the spice-gtk 0.14 header files appear to use the G_GNUC_DEPRECATED_FOR() macros, which is only available in glib >= 2.26.  RHEL-6 onl has version 2.22, leading to fail

https://brewweb.devel.redhat.com//getfile?taskID=4902863&name=build.log


  CC     virt_viewer-virt-viewer-session.o
In file included from /usr/include/spice-client-glib-2.0/spice-client.h:35,
                 from /usr/include/spice-client-gtk-2.0/spice-widget.h:21,
                 from virt-viewer-session-spice.h:28,
                 from virt-viewer-app.c:62:
/usr/include/spice-client-glib-2.0/channel-main.h:84: warning: return type defaults to 'int'
/usr/include/spice-client-glib-2.0/channel-main.h:83: warning: no previous prototype for 'G_GNUC_DEPRECATED_FOR'
/usr/include/spice-client-glib-2.0/channel-main.h: In function 'G_GNUC_DEPRECATED_FOR':
/usr/include/spice-client-glib-2.0/channel-main.h:85: error: expected declaration specifiers before 'G_GNUC_DEPRECATED_FOR'
/usr/include/spice-client-glib-2.0/channel-main.h:87: error: expected declaration specifiers before 'G_GNUC_DEPRECATED_FOR'
/usr/include/spice-client-glib-2.0/channel-main.h:89: error: expected declaration specifiers before 'G_GNUC_DEPRECATED_FOR'


The spice-gtk package has back compatibility support for this via its glib-compat.h header file, but this is broken, because the compat file is being used by the .c files, instead of by the .h files. Thus although spice-gtk itself builds fine, all apps using spice-gtk are fubar.

Version-Release number of selected component (if applicable):
0.14-1.el6

How reproducible:
Always

Steps to Reproduce:
1. Attempt to build any app using spice-gtk

Comment 2 Christophe Fergeau 2012-09-24 17:16:41 UTC
Oops, we forgot to commit http://lists.freedesktop.org/archives/spice-devel/2012-September/010788.html
I'll readd it to spice-gtk tomorrow.

Comment 3 Christophe Fergeau 2012-09-25 08:44:29 UTC
I've pushed a -2 build with this fixed. I've associated the fixes with spice-gtk rebase bug as this is a build regression introduced by the rebase.

Comment 5 Christophe Fergeau 2012-10-15 20:45:42 UTC
This one was addressed as part of the spice-gtk rebase bug (bug #842354) as the regression was caused by the rebase, I forgot there was this more specific bug. I'm marking it as a duplicate even though it would have been nicer to keep track of this with this bug.

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