Summary: | sys-fs/avfs fails to build with gcc-4.3.3 ( DFORTIFY_SOURCE=2 ) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Boney McCracker <brendlerjg> |
Component: | Current packages | Assignee: | Peter Hyman <pete4abw> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | genstef, kernel-misc |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 259417 | ||
Attachments: |
patch which 'll solve the bug (missing 3nde argument to open call)
new ebuild revision (including epatch call in src_compile subroutine) |
Description
Boney McCracker
2009-02-09 04:56:30 UTC
Issue is simple, the problem is caused by "warn_unused_result" attribute provided by gcc 4.3 on severals POSIX function (as open or write for example), when O_CREAT mode flags is specified a third is needed to explicitly says file permissions to open. in attachment, please find a patch which'll solve the problem, and a new revision of the ebuild including this patch. Created attachment 181430 [details, diff]
patch which 'll solve the bug (missing 3nde argument to open call)
Created attachment 181431 [details]
new ebuild revision (including epatch call in src_compile subroutine)
Patch and ebuild work for me. Thank you kindly, sir. Leaving open for maintainer. happy to helped you ;) +*avfs-0.9.8-r1 (01 Mar 2009) + + 01 Mar 2009; Patrick Lauer <patrick@gentoo.org> + +files/avfs-0.9.8-gcc43_fix_open_missing_mode.patch, + +avfs-0.9.8-r1.ebuild: + Fix for gcc 4.3.3 / fortify_sources. Patch by Romain Perier. |