Summary: | sys-apps/netplug fails to compile (gcc 4.3.3 _FORTIFY_SOURCE problem) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joshua S <shoetick> |
Component: | New packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kanelxake |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 259417 | ||
Attachments: |
netplug-1.2.9-warn_unused_result_write_call.patch
the new ebuild which applying patch Remove -Werror |
Description
Joshua S
2009-02-07 00:28:11 UTC
I see someone added "(gcc 4.3.3 _FORTIFY_SOURCE problem)" to the title. So is this a dup? Where should I be looking in order to get this fixed? I googled _FORTIFY_SOURCE but didn't find much. I also looked at the other two bugs with similar _FORTIFY_SOURCE markings and didn't figure it out. Thanks for your help. Please find in attachment a patch which fixs issue and the new ebuild including patch. The problem appended because write POSIX function is declared with attribute "warn_unused_result", causing following warning "main.c:164: error: ignoring return value of 'write', declared with attribute warn_unused_result", and because the sources are compiled with -Werror CFLAGS all warnings are treated as an error, so emerge failed. in patch: i just get the return value of write, i checked if this last was not an error (!= -1) otherwises daemon stops with log_error message. Created attachment 181231 [details, diff]
netplug-1.2.9-warn_unused_result_write_call.patch
Created attachment 181232 [details]
the new ebuild which applying patch
Thanks Perier, The patch+ebuild you provided did the trick. (In reply to comment #5) > Thanks Perier, The patch+ebuild you provided did the trick. > cool, happy to helped you ;). @gentoo dev: the patch seems correct ? (syntaxically) Created attachment 183200 [details]
Remove -Werror
Removing the -Werror in the Makefile fix the probs.
+ 01 Mar 2009; Patrick Lauer <patrick@gentoo.org> + +files/netplug-1.2.9-remove-werror.patch, + +files/netplug-1.2.9-warn_unused_result_write_call.patch, + +netplug-1.2.9-r5.ebuild: + Fix for gcc 4.3.3 / fortify_sources, remove -Werror from Makefile. Patches + by Romain Perier and Magnus Granberg. |