Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260180 - dev-lang/yap-5.1.3-r1 __open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
Summary: dev-lang/yap-5.1.3-r1 __open_missing_mode' declared with attribute error: ope...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prolog project
URL: http://hardened.gentooexperimental.or...
Depends on:
Blocks: fortify-source
  Show dependency tree
Reported: 2009-02-24 20:49 UTC by Magnus Granberg
Modified: 2009-03-02 00:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Build log of yap-5.1.3-r1 (dev-lang_yap-5.1.3-r1.log,16.43 KB, text/plain)
2009-02-24 20:49 UTC, Magnus Granberg

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Granberg gentoo-dev 2009-02-24 20:49:03 UTC
Compile with GCC 4.3.3 and glibc >=2.8 (FORTIFY_SOURCE=2)
man open:
mode specifies the permissions to use in case a new file is created.  This
argument must be supplied when O_CREAT is specified in flags;

Reproducible: Always

Steps to Reproduce:
1.Compile tha package with gcc 4.3.3 and glibc >=2.8 from portage

Actual Results:  
In function 'open',
    inlined from 'ExtendWorkSpace' at ./C/alloc.c:945:
/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: *** [alloc.o] Error 1

Expected Results:  
Would compile fine.
Comment 1 Magnus Granberg gentoo-dev 2009-02-24 20:49:56 UTC
Created attachment 183067 [details]
Build log of yap-5.1.3-r1
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-28 23:23:56 UTC
Comment 3 Patrick Lauer gentoo-dev 2009-03-02 00:27:28 UTC
+  02 Mar 2009; Patrick Lauer <>
+  +files/yap-5.1.3-fortify_sources-ubuntu.patch, +yap-5.1.3-r2.ebuild:
+  Fixing fcc 4.3.3 / fortify_sources error. Patch from Ubuntu. Closes
+  #260180