Bug 429655 - openais build error on ia64: open with O_CREAT needs 3 arguments
Summary: openais build error on ia64: open with O_CREAT needs 3 arguments
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: openais
Version: rawhide
Hardware: ia64
OS: Linux
low
low
Target Milestone: ---
Assignee: Steven Dake
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: fedora-ia64
TreeView+ depends on / blocked
 
Reported: 2008-01-22 07:09 UTC by Zhan, Yi
Modified: 2016-04-26 13:27 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-03-05 22:54:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zhan, Yi 2008-01-22 07:09:17 UTC
Description of problem:

I encountered the build error when try to build openais on IA64. The error is
caused by exec/keygen.c, line 75:

    authkey_fd = open ("/etc/ais/authkey", O_CREAT|O_WRONLY);

Adding the third argument could fix it.

    authkey_fd = open ("/etc/ais/authkey", O_CREAT|O_WRONLY,
S_IRUSR|S_IWUSR|S_IRGRP);

Version-Release number of selected component (if applicable):
openais-0.80.1-6.src.rpm

How reproducible:
always

Steps to Reproduce:
1. rpmbuild --rebuild openais-0.80.1-6.src.rpm
2.
3.
  
Actual results:

/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared
with attribute error: open with O_CREAT in second argument
needs 3 arguments                                                              
                                                         
make[1]: *** [keygen.o] Error 1

Expected results:

Build cleanly

Additional info:

Comment 1 Doug Chapman 2008-03-05 22:54:44 UTC
This is now building cleanly in rawhide.



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