Bug 872336

Summary: Wrong definition of O_RSYNC in /usr/include/bits/fcntl-linux.h
Product: [Fedora] Fedora Reporter: Tomas Mraz <tmraz>
Component: glibcAssignee: Jeff Law <law>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, jakub, law, ovasik, pfrankli, praiskup, rjones, schwab, spoyarek, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-02 20:14:49 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 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.