Bug 977941 - Cannot build simple program using Ruby binding without specifying path to arch dependent config.h
Summary: Cannot build simple program using Ruby binding without specifying path to arc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeroen van Meeuwen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-25 15:39 UTC by Vít Ondruch
Modified: 2013-07-16 01:36 UTC (History)
7 users (show)

Fixed In Version: ruby-2.0.0.247-14.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-16 01:36:22 UTC
Type: Bug


Attachments (Terms of Use)

Description Vít Ondruch 2013-06-25 15:39:05 UTC
This should work but it doesn't due to arch specific config.h, which is not accessible in default headers search path. See [1] for discussion of this issue.

$ cat > rt.c
#include "ruby.h"

int main(int argc, char **argv)
{
  return 0;
}
^D



$ gcc rt.c
In file included from /usr/include/ruby.h:33:0,
                 from rt.c:1:
/usr/include/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
 #include "ruby/config.h"
                         ^
compilation terminated.



[1] https://lists.fedoraproject.org/pipermail/devel/2013-June/184446.html

Comment 1 Fedora Update System 2013-07-02 12:17:20 UTC
ruby-2.0.0.247-11.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-12118/ruby-2.0.0.247-11.fc19

Comment 2 Fedora Update System 2013-07-03 01:44:42 UTC
Package ruby-2.0.0.247-11.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ruby-2.0.0.247-11.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12118/ruby-2.0.0.247-11.fc19
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-07-09 11:07:37 UTC
ruby-2.0.0.247-12.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ruby-2.0.0.247-12.fc19

Comment 4 Fedora Update System 2013-07-16 01:36:22 UTC
ruby-2.0.0.247-14.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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