To emerge media-video/xanim with gcc-4 failed. Maybe, it causes xa_ftp_abort()'s traditional C style prototypes in xa_input.c. I have made work-around this issue by the patch. But no check whether it works.
Created attachment 80596 [details] Delete xa_ftp_abort function.
Created attachment 80597 [details] A new ebuild for media-video/xanim-2.80.1-r4
can you post the error message and the output of 'emerge info'? i can't get this to fail with GCC 4.0.2 or 4.1.0 on x86 or amd64.
Created attachment 80828 [details] My emerge --info output.
Created attachment 80829 [details] Error message of emerge xanim when use the ebuild in official portage tree.
Created attachment 80830 [details] Error message of emerge xanim when use the ebuild in official portage tree. Sorry, it's LANG=C output. See this file instead of previous LANG=ja_JP.UTF-8 output.
And then, I tried to emerge with -O3 instead of -Os. Its emerge successfully without patching. So, if this patch is not acceptable, to filer -Os as a CFLAG is required, IMHO.
I've applied the patch, it seems more an hack than a patch, but solves the issue and makes sense, more than filtering -Os probably :) Thanks for submitting.