Bug 250897

Summary: open(3) declaration broken
Product: [Fedora] Fedora Reporter: Enrico Scholz <rh-bugzilla>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-05 17:58:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2007-08-04 19:14:03 UTC
Description of problem:

The open(3) declaration is broken and code like

|  fd = open(file, O_RDONLY);

fails with

| src/vlimit.c: In function 'readFile':
| src/vlimit.c:280: warning: ISO C forbids empty initializer braces
| src/vlimit.c:280: error: zero or negative size array '___arr'
| src/vlimit.c:280: warning: ISO C forbids zero-size array '__open_too_many_args'
| src/vlimit.c:280: warning: ISO C forbids braced-groups within expressions

and lot of bogus "ISO C forbids ..." warnings are cluttering the build.

See http://koji.fedoraproject.org/koji/getfile?taskID=88648&name=build.log
for full log.


Version-Release number of selected component (if applicable):

glibc-2.6.90-2

Comment 1 Jakub Jelinek 2007-08-05 17:58:38 UTC
Should be fixed in glibc-2.6.90-4.