Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 728744 - /usr/include/ObjectiveC2/blocks_runtime.h #includes Availability.h which is not provided
Summary: /usr/include/ObjectiveC2/blocks_runtime.h #includes Availability.h which is n...
Alias: None
Product: Fedora
Classification: Fedora
Component: gnustep-base
Version: 15
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jochen Schmitt
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-07 00:27 UTC by Nick Urbanik
Modified: 2012-08-07 16:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-08-07 16:36:43 UTC
Type: ---

Attachments (Terms of Use)

Description Nick Urbanik 2011-08-07 00:27:29 UTC
Description of problem:
/usr/include/ObjectiveC2/blocks_runtime.h includes "ObjectiveC2/Availability.h" which is not provided in gnustep-base-devel nor in any other package.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. compile a program that includes ObjectiveC2/blocks_runtime.h
2. see error:
/usr/include/objc/blocks_runtime.h:5:10: fatal error: 
      'ObjectiveC2/Availability.h' file not found
#include "ObjectiveC2/Availability.h"
3. see "No Matches found" from sudo yum whatprovides '*/Availability.h' 
Actual results:
program does not compile, showing error from step 2 above.

Expected results:
program can compile.

Additional info:
Am trying to compile EtoileText which is in revision 7175 of
svn co svn://svn.gna.org//etoile/trunk
I have sourced /usr/lib64/GNUstep/Makefiles/GNUstep.sh

The code includes "objc/blocks_runtime.h", and I did ln -s /usr/include/ObjectiveC2 /usr/include/objc, hence the odd location given in the error message.

$ rpm -ql gnustep-base-devel-1.22.0-2.fc15.x86_64 | grep /include/ObjectiveC
$ grep -C1 Availability /usr/include/ObjectiveC2/blocks_runtime.h

#include "ObjectiveC2/Availability.h"
#ifdef __cplusplus

Comment 1 Nick Urbanik 2011-08-07 00:37:29 UTC
shows a file with all code commented out.
Touching a file /usr/include/ObjectiveC2/Availability.h works around the problem.
The proper solution is to either:
provide a file /usr/include/ObjectiveC2/Availability.h (with all code commented out?  Why?)
Or perhaps simply remove the line
#include "ObjectiveC2/Availability.h"
from /usr/include/ObjectiveC2/blocks_runtime.h.

Comment 2 Nick Urbanik 2011-08-07 01:10:09 UTC
Another problem with the same file:
In file included from /usr/include/GNUstepBase/GSVersionMacros.h:287:
/usr/include/objc/blocks_runtime.h:14:51: error: expected function body after
      function declarator
BLOCKS_EXPORT const char *_Block_get_types(void*) OBJC_NONPORTABLE;
$ rpm -ql gnustep-base-devel-1.22.0-2.fc15.x86_64 | xargs grep OBJC_NONPORTABLE/usr/include/ObjectiveC2/blocks_runtime.h:BLOCKS_EXPORT const char *_Block_get_types(void*) OBJC_NONPORTABLE;

Comment 3 Nick Urbanik 2011-08-07 01:15:40 UTC
In the copy/paste in https://bugzilla.redhat.com/show_bug.cgi?id=728744#c2, a newline is missing from the grep; the grep is for OBJC_NONPORTABLE;what comes after is output that belongs on the next line.

Looks like a build regression test could help prevent these bugs.

Comment 4 Fedora End Of Life 2012-08-07 16:36:45 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:

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