Bug 977941

Summary: Cannot build simple program using Ruby binding without specifying path to arch dependent config.h
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: rubyAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bkabrda, jeremy, mmorsi, mtasaka, tagoh, vanmeeuwen+fedora, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: ruby- Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-16 01:36:22 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:

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;

$ 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- has been submitted as an update for Fedora 19.

Comment 2 Fedora Update System 2013-07-03 01:44:42 UTC
Package ruby-
* 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-'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-07-09 11:07:37 UTC
ruby- has been submitted as an update for Fedora 19.

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