Bug 330971
Summary: | /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rex Dieter <rdieter> |
Component: | kdemultimedia | Assignee: | Than Ngo <than> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 8 | CC: | lynnsheridan132, triage |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | bzcl34nup | ||
Fixed In Version: | kde-3.5.9 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-04-04 21:47:32 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
Rex Dieter
2007-10-13 21:24:25 UTC
Please don't. I haven't found a recent kdemultimedia build in koji, can you post a few lines around this error line? Recent rawhide GCCs should print there also the context, which function called this open, and that's where most probably is a bug - open ("...", O_CREAT | O_RDWR) without third argument is invalid. OK. Full context: In function 'int open(const char*, int, ...)', inlined from 'RawWriter_impl::RawWriter_impl()' at extrastereo_impl.cc:93, inlined from 'virtual Arts::Object_skel* RawWriter_impl_Factory::createInstance()' at extrastereo_impl.cc:150: /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[4]: *** [libartseffects_la.all_cc.lo] Error 1 make[4]: Leaving directory `/builddir/build/BUILD/kdemultimedia-3.5.8-patched/noatun/modules/artseffects' And on line 93 of extrastero_impl.cc: mFd=::open(file.c_str(), O_RDWR | O_CREAT | O_TRUNC); So please fix that bug. http://www.opengroup.org/onlinepubs/009695399/functions/open.html for details, open with O_CREAT must have 3 arguments rather than 2. What exact mode you need depends really on what the file is used for, but no mode, in addition to being undefined behavior, is often security hazard, the file can be created with pretty much random mode, including suid or sgid. Based on the date this bug was created, it appears to have been reported during the development of Fedora 8. In order to refocus our efforts as a project we are changing the version of this bug to '8'. If this bug still exists in rawhide, please change the version back to rawhide. (If you're unable to change the bug's version, add a comment to the bug and someone will change it for you.) Thanks for your help and we apologize for the interruption. The process we're following is outlined here: http://fedoraproject.org/wiki/BugZappers/F9CleanUp We will be following the process here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this doesn't happen again. it's already fixed in 3.5.9. (In reply to comment #3) > And on line 93 of extrastero_impl.cc: > > mFd=::open(file.c_str(), O_RDWR | O_CREAT | O_TRUNC); > yeah i had this compiling gcc 3.4.6, i did the equivalent of mFd=::open(file.c_str(), O_RDWR , O_CREAT | O_TRUNC); |