Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 261145

Summary: sys-block/gpart-0.1h-r1 fails to build with _FORTIFY_SOURCE=2
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: email, ikelos, kogorman, matimatik, mimosinnet, stefano.priore
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 308135    
Bug Blocks: 259417    
Attachments: Build log
fix for O_CREAT bug in gpart.c

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-03-04 10:47:47 UTC
Check attached build log.
Comment 1 Magnus Granberg gentoo-dev 2009-03-04 23:08:47 UTC
I don't see any build.log.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-03-04 23:11:12 UTC
Created attachment 183947 [details]
Build log
Comment 3 Magnus Granberg gentoo-dev 2009-03-10 20:42:11 UTC
Created attachment 184610 [details, diff]
fix for O_CREAT bug in gpart.c
Comment 4 genbug 2009-04-20 20:33:17 UTC
There would seem to be another occurance of this error:


In function 'open',
    inlined from 'make_mbr_backup' at gpart.c:1224,
    inlined from 'main' at gpart.c:1829:
/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]: *** [gpart.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/back/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h/src'
make: *** [gpart] Error 2
 *
 * ERROR: sys-block/gpart-0.1h-r1 failed.


Comment 5 Stefano Priore 2009-10-19 14:49:13 UTC
Bump
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-30 16:23:39 UTC
*** Bug 295142 has been marked as a duplicate of this bug. ***
Comment 7 Fernando (likewhoa) 2010-02-09 02:10:50 UTC
(In reply to comment #4)
> There would seem to be another occurance of this error:
> 
> 
> In function 'open',
>     inlined from 'make_mbr_backup' at gpart.c:1224,
>     inlined from 'main' at gpart.c:1829:
> /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]: *** [gpart.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory
> `/back/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h/src'
> make: *** [gpart] Error 2
>  *
>  * ERROR: sys-block/gpart-0.1h-r1 failed.
> 
I can confirm this on i686/amd64.
Comment 8 mimosinnet 2010-02-19 00:58:38 UTC
(In reply to comment #4)

> In function 'open',
>     inlined from 'make_mbr_backup' at gpart.c:1224,
>     inlined from 'main' at gpart.c:1829:
> /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]: *** [gpart.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory
> `/back/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h/src'
> make: *** [gpart] Error 2
>  *
>  * ERROR: sys-block/gpart-0.1h-r1 failed.
 
I was having the same error. sys-block/gpart-0.1h-r2 emerged with no errors.
Comment 9 SpanKY gentoo-dev 2010-03-07 00:02:33 UTC
*** Bug 307417 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2010-03-07 00:02:58 UTC
as noted, this has been fixed in 0.1h-r2 already