Bug 872336 - Wrong definition of O_RSYNC in /usr/include/bits/fcntl-linux.h
Summary: Wrong definition of O_RSYNC in /usr/include/bits/fcntl-linux.h
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Law
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-01 20:08 UTC by Tomas Mraz
Modified: 2016-11-24 16:12 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-02 20:14:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas Mraz 2012-11-01 20:08:16 UTC
In the current glibc headers package in rawhide the O_RSYNC is defined as __O_SYNC in /usr/include/bits/fcntl-linux.h but the __O_SYNC is defined only in linux kernel private headers. I suppose the O_SYNC without underscore should be used instead as it was done in previous glibc headers package releases.

Comment 1 Jeff Law 2012-11-02 05:05:21 UTC
Yea, all this stuff is in a significant state of flux; it looks like this particular problem has already been fixed upstream.  For reasons unknown I can't upload new sources to Fedora rawhide right now.

Regardless, I'll have it fixed soon.

Comment 2 Vít Ondruch 2012-11-02 07:04:27 UTC
I hope that the upstream fix will apply also for Ruby:

compiling io.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fPIC -m64 -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT   -I. -I.ext/include/x86_64-linux -I./include -I. -o io.o -c io.c
io.c: In function 'Init_IO':
io.c:11670:45: error: '__O_SYNC' undeclared (first use in this function)
io.c:11670:45: note: each undeclared identifier is reported only once for each function it appears in
make: *** [io.o] Error 1
make: *** Waiting for unfinished jobs....

Comment 3 Vít Ondruch 2012-11-02 11:02:06 UTC
(In reply to comment #1)
> For reasons unknown I can't upload new sources to Fedora rawhide right now.

https://bugzilla.redhat.com/show_bug.cgi?id=872124

Comment 4 Jeff Law 2012-11-02 20:14:49 UTC
I updated rawhide's glibc which should fix this problem.


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