1. archieval/gzip.c: declaration as 'static int' but implementation as 'static const int' 2. networking/ifupdown.c: 'static char ** environ' conflicts with stddef.h Reproducible: Always Steps to Reproduce: 1.untar 2.'make', when config, check 'Network Utilites->ifupdown' 3.'make' again Actual Results: gcc -I../include -I../include -I../archival -Wall -Wstrict-prototypes -Wshadow -Os -march=i386 -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -c -o ../archival/gzip.o ../archival/gzip.c ../archival/gzip.c:2166: warning: type qualifiers ignored on function return type ../archival/gzip.c:2166: error: conflicting types for 'build_bl_tree' ../archival/gzip.c:1643: error: previous declaration of 'build_bl_tree' was here make: *** [../archival/gzip.o] Error 1 -------------------------------------------------- gcc -I../include -I../include -I../networking -Wall -Wstrict-prototypes -Wshadow -Os -march=i386 -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -c -o ../networking/ifupdown.o ../networking/ifupdown.c ../networking/ifupdown.c:153: error: static declaration of 'environ' follows non-static declaration /usr/include/unistd.h:476: error: previous declaration of 'environ' was here make: *** [../networking/ifupdown.o] Error 1 Expected Results: compiled successfully
Created attachment 60569 [details, diff] a patch that should fix the bug
Created attachment 60594 [details, diff] GCC4 patch from upstream Here's the patch from upstream's CVS.
added to portage