Bug 983769
Summary: | compile error including ruby.h in c99 mode: unknown type name ‘fd_set’ | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tim Cuthbertson <tim> |
Component: | ruby | Assignee: | Jeroen van Meeuwen <vanmeeuwen+fedora> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | bkabrda, jeremy, mmorsi, mtasaka, tagoh, vanmeeuwen+fedora, vondruch |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ruby-2.0.0.247-14.fc19 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-07-16 01:36:36 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: |
Description
Tim Cuthbertson
2013-07-11 23:28:18 UTC
--- ruby-devel-2.0.0.195-8.fc19.i686/usr/include/ruby/intern.h 2013-03-20 22:36:23.000000000 +0900 +++ ruby-devel-2.0.0.247-12.fc19.i686/usr/include/ruby/intern.h 2013-06-19 04:18:15.000000000 +0900 @@ -36,6 +36,10 @@ #include <sys/types.h> #endif +#if defined(HAVE_SYS_TIME_H) +#include <sys/time.h> +#endif + #include "ruby/st.h" #if defined __GNUC__ && __GNUC__ >= 4 and with glibc-2.17, time.h includes bits/time.h, which includes sys/select.h, which defines fd_set. According to http://pubs.opengroup.org/onlinepubs/007904975/basedefs/sys/select.h.html , perhaps directly including sys/select.h seems preferable than time.h, however anyway with ruby 2.0.0p249 this is not reproducible. (In reply to Mamoru TASAKA from comment #1) > and with glibc-2.17, time.h includes bits/time.h Before this, sys/time.h includes time.h. There is related command-t bug report: https://wincent.com/issues/2098 And this seems to the fix in Ruby: https://github.com/ruby/ruby/commit/99035ca2621f7128d0e3a7f3a8acd8c3e2323e09#include/ruby/intern.h ruby-2.0.0.247-12.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/FEDORA-2013-12663/ruby-2.0.0.247-12.fc19 Package ruby-2.0.0.247-13.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-13.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12663/ruby-2.0.0.247-13.fc19 then log in and leave karma (feedback). Thanks, this update fixes the issue. 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. |