Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 449669 - Invalid glib2 headers cause compile errors
Summary: Invalid glib2 headers cause compile errors
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xscorch
Version: 10
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Marcin Garski
QA Contact: Fedora Extras Quality Assurance
URL: http://linux.dell.com/files/fedora/Fi...
Whiteboard:
: 449651 465107 (view as bug list)
Depends On:
Blocks: 449651
TreeView+ depends on / blocked
 
Reported: 2008-06-02 22:55 UTC by Marcin Garski
Modified: 2009-05-26 23:06 UTC (History)
1 user (show)

Fixed In Version: 0.2.1-0.2.pre1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-26 23:06:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marcin Garski 2008-06-02 22:55:46 UTC
Description of problem:
During rawhide rebuild xscorch fail to compile because of bad headers from
glib2-devel pacckage.

Version-Release number of selected component (if applicable):
glib2-devel-2.17.0-1.fc10.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Rebuild xscorch with installed glib2-devel-2.17.0-1.fc10.x86_64

Additional info:
Look at URL for rebuild log.

Comment 1 Matthias Clasen 2008-06-03 00:02:13 UTC
The problem is actually in the xscorch headers, in libj/libj.h


/* unused is a special attribute indicating a function argument is ignored
   within the function; this is useful for functions which MUST accept an
   argument because they escape, but do not actually access the argument. */
#ifndef unused 
#if __GNUC__ && LIBJ_C99_STANDARD
#define  unused                  __attribute__((unused))
#else /* Not C99 code */
#define  unused
#endif /* LIBJ_C99_STANDARD? */  
#endif /* unused undefined? */


doing that is obviously not a good idea. Removing this define makes the errors
in the glib headers go away. Of course, it then fails later on where the xscorch
sources use 'unused'...


Comment 2 Matt Domsch 2008-07-03 17:44:33 UTC
*** Bug 449651 has been marked as a duplicate of this bug. ***

Comment 3 Marcin Garski 2008-10-18 11:51:11 UTC
*** Bug 465107 has been marked as a duplicate of this bug. ***

Comment 4 Bug Zapper 2008-11-26 02:22:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Marcin Garski 2009-05-26 23:06:29 UTC
Fixed by updating to 0.2.1-pre1.


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